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

DFAContentModel::buildDFA(): correctly zero-initialize fFollowList

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4, 4.0.0
    • None
    • None

    Description

      Due to a copy&paste issue, the intended zero-initialization of
      fFollowList wasn't done (copy&paste issue), and thus in case of
      OutOfMemory exception when initializing the array, the memory freeing in
      cleanup() could access uninitialized elements.

      Follow-up of https://github.com/apache/xerces-c/pull/40 / a65990d79d3fc333d7481f010da4e165a88b6cb3

      Fixes GDAL's https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42636

      Attachments

        Issue Links

          Activity

            People

              scantor Scott Cantor
              rouault Even Rouault
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: