[ http://issues.apache.org/jira/browse/XERCESC-936?page=all ]
Alberto Massari resolved XERCESC-936:
-------------------------------------
Assign To: (was: Xerces-C Developers Mailing List)
Resolution: Duplicate
patternMatch should have been fixed as part of XERCESC-595; please verify.
Alberto
> xerces/util/XMLString::patternMatch bug (C++)
> ---------------------------------------------
>
> Key: XERCESC-936
> URL: http://issues.apache.org/jira/browse/XERCESC-936
> Project: Xerces-C++
> Type: Bug
> Components: DOM
> Versions: 2.1.0
> Environment: Operating System: Solaris
> Platform: Sun
> Reporter: Louise Dong
>
> -----------
> problem:
> -----------
> when using DOMWriter
> with setFeature(XMLUni::fgDOMWRTSplitCdataSections, false);
> The following xml could not be parsed (parse error: nestedCDATA):
> "<!DOCTYPE doc [<!ENTITY ast \"*\"><!ENTITY nbsp \" \">]
> ><doc>abce</doc>"
> -------------------
> code fix:
> -------------------
> file name: util/XMLString.cpp
> func name: XMLString::patternMatch
> origional code:
> /////////////////////////////////////////////////////////////
> if (!patnMatch)
> {
> patnIndex = 0;
> patnMatch = (*srcPtr == pattern[patnIndex++]);
> }
> /////////////////////////////////////////////////////////////
> should be replaced with
> /////////////////////////////////////////////////////////////
> if (!patnMatch)
> {
> patnIndex = 0;
> continue;
> }
> /////////////////////////////////////////////////////////////
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]