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/05/03 11:59:00 UTC
DO NOT REPLY [Bug 8769] New: -
UMR (uninitialized memory read) detected by memory tool
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=8769>.
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=8769
UMR (uninitialized memory read) detected by memory tool
Summary: UMR (uninitialized memory read) detected by memory tool
Product: Xerces-C++
Version: 1.6.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Validating Parser (DTD)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: kenneth.palsson@ks.ericsson.se
When using "Purify 2002a.06.00" on "SunOS 5.7" a I got UMR (unitialized memory
read). After further investigations I found that the variable curType
DTDScanner::scanChildren is used on lines 1267 and 1319 without having been
initialized.
I corrected the defect by initializing curType on line 1177 to
ContentSpecNode::UnknownType, as by the diff output below.
1177c1177
< ContentSpecNode::NodeTypes curType;
---
> ContentSpecNode::NodeTypes curType = ContentSpecNode::UnknownType;
After this change Purify did not report any UMR.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org