(Bugzilla appears to be down)
In XMLScanner::scanProlog(), to detect an xml decl, the following code is used:
fReaderMgr.skippedString(XMLUni::fgXMLDeclStringSpace)
I believe this is incorrect. If there is a whitespace other than the space
character 0x20 following "<?xml", it will not be recognized as the
beginning of an xml decl. (The other valid white space characters are 0x9
0xA 0xD)
A test case would be (with no trailing space on the first line)
<?xml
version='1.0'?><a/>
XMLUni::fgXMLDeclStringSpace seems like a dangerous thing to have around, I
don't know if it is used anywhere else, but it probably shouldn't be.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]