Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-441

UMR (uninitialized memory read) detected by memory tool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • None
    • Operating System: All
      Platform: All
    • 8769

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kenneth.palsson@ks.ericsson.se Kenneth PĂ„lsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: