You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/09/09 22:11:02 UTC
DO NOT REPLY [Bug 12455] New: -
transcode stills owns char* 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=12455>.
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=12455
transcode stills owns char* string
Summary: transcode stills owns char* string
Product: Xerces-C++
Version: 2.1.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: Utilities
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: KingGeoffrey@yahoo.com
The following causes a crash:
char* s= XMLString::transcode(n->getNodeName());
cout << s << endl;
delete [] s;
According to the documentation XMLString::transcode is an allocated buffer,
therefore i expect delete [] should work on it. Did i miss something?
To reproduce the crash, paste those lines into:
countChildElements()
of
$Id: DOMCount.cpp,v 1.27 2002/07/17 18:58:35 tng Exp $
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org