[Expat-checkins] CVS: expat/lib xmltok.c,1.5,1.6
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 16 Feb 2001 10:12:51 -0800
Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv28058
Modified Files:
xmltok.c
Log Message:
Fix SF bug #123767: segfault on UTF-8 BOM.
(Reported with fix by Bruce Kaskel.)
Index: xmltok.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmltok.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** xmltok.c 2000/10/22 19:20:23 1.5
--- xmltok.c 2001/02/16 18:12:49 1.6
***************
*** 1501,1504 ****
--- 1501,1505 ----
return XML_TOK_PARTIAL;
if ((unsigned char)ptr[2] == 0xBF) {
+ *nextTokPtr = ptr + 3;
*encPtr = encodingTable[UTF_8_ENC];
return XML_TOK_BOM;