[ expat-Bugs-414453 ] Segmentation fault on UTF-8 BOM

noreply@sourceforge.net noreply@sourceforge.net
Wed, 18 Apr 2001 13:36:48 -0700


Bugs item #414453, was updated on 2001-04-06 17:03
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=414453&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Condit (jcondit)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Segmentation fault on UTF-8 BOM

Initial Comment:
It appears that expat will crash when parsing any 
document that begins with a UTF-8 BOM (0xefbbbf).  
When initScan() sees this sequence of characters at 
the beginning of a document, it does not set 
*nextTokPtr, so the next iteration of prologProcessor
() uses a bogus pointer, ultimately causing a crash.

This could be related to bug #214050 (Segmentation 
fault in libxmltok).

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-04-18 13:36

Message:
Logged In: YES 
user_id=3066

What version were you using?  I checked in a fix for a problem matching this description since the 1.95.1 release.  Can you reproduce the bug using the CVS version of Expat?

Thanks.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=414453&group_id=10127