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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to