You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/04/03 05:40:28 UTC
DO NOT REPLY [Bug 18638] New: -
XalanDOMString::insert fails with insertions into empty string
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18638>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18638
XalanDOMString::insert fails with insertions into empty string
Summary: XalanDOMString::insert fails with insertions into empty
string
Product: XalanC
Version: 1.4.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: mark@npsl.co.uk
The reason for this seems to be that XalanDOMString internally uses a vector
data buffer which is either empty, or has an extra NULL character in it. The
insert functions do not take account of inserting into an empty string, and give
rise to assertions in invariants() (and more seriously, incorrect behaviour with
c_str()).
Also applies to 1.5rc1, but in this case the new XalanParsedURI triggers the
bug.