From kwaclaw at users.sourceforge.net Thu Nov 12 17:51:43 2009 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Thu, 12 Nov 2009 16:51:43 +0000 Subject: [Expat-checkins] expat/xmlwf readfilemap.c,1.14,1.15 Message-ID: Update of /cvsroot/expat/expat/xmlwf In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv7653 Modified Files: readfilemap.c Log Message: Fix for issue # 2895533. Index: readfilemap.c =================================================================== RCS file: /cvsroot/expat/expat/xmlwf/readfilemap.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- readfilemap.c 5 Aug 2006 22:43:57 -0000 1.14 +++ readfilemap.c 12 Nov 2009 16:51:39 -0000 1.15 @@ -58,10 +58,12 @@ } if (fstat(fd, &sb) < 0) { perror(name); + close(fd); return 0; } if (!S_ISREG(sb.st_mode)) { fprintf(stderr, "%s: not a regular file\n", name); + close(fd); return 0; } nbytes = sb.st_size; From kwaclaw at users.sourceforge.net Fri Nov 27 14:34:32 2009 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Fri, 27 Nov 2009 13:34:32 +0000 Subject: [Expat-checkins] expat/lib xmlparse.c,1.164,1.165 Message-ID: Update of /cvsroot/expat/expat/lib In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12678 Modified Files: xmlparse.c Log Message: Fix for issue# 2894085. Removed update to next pointer. It did not seem right to force it to point somewhere between token boundaries, since that could lead the tokenizer to not recognize an end of token. Index: xmlparse.c =================================================================== RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v retrieving revision 1.164 retrieving revision 1.165 diff -u -d -r1.164 -r1.165 --- xmlparse.c 29 Sep 2009 02:49:16 -0000 1.164 +++ xmlparse.c 27 Nov 2009 13:34:29 -0000 1.165 @@ -3723,7 +3723,6 @@ return XML_ERROR_NO_ELEMENTS; default: tok = -tok; - next = end; break; } }