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

Uninitialized variable read in XMLUTF8Transcoder::transcodeFrom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 3.0.1
    • None
    • None

    Description

      Valgrind complains about a "Conditional jump or move depends on uninitialised value(s)" in xercesc_2_7::XMLUTF8Transcoder::transcodeFrom

      From the valgring log:

      ==11947== Conditional jump or move depends on uninitialised value(s)
      ==11947== at 0x42AB86A: xercesc_2_7::XMLUTF8Transcoder::transcodeFrom(unsigned char const*, unsigned, unsigned short*, unsigned, unsigned&, unsigned char*) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x42950AF: xercesc_2_7::XMLReader::xcodeMoreChars(unsigned short*, unsigned char*, unsigned) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x42937BC: xercesc_2_7::XMLReader::refreshCharBuffer() (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x4208C07: xercesc_2_7::ReaderMgr::peekNextChar() (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x42999A3: xercesc_2_7::XMLScanner::scanProlog() (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x42986C7: xercesc_2_7::XMLScanner::scanFirst(xercesc_2_7::InputSource const&, xercesc_2_7::XMLPScanToken&) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x42985AC: xercesc_2_7::XMLScanner::scanFirst(unsigned short const*, xercesc_2_7::XMLPScanToken&) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x4298625: xercesc_2_7::XMLScanner::scanFirst(char const*, xercesc_2_7::XMLPScanToken&) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x421F92D: xercesc_2_7::SAXParser::parseFirst(char const*, xercesc_2_7::XMLPScanToken&) (in /usr/local/lib/libxerces-c.so.27.0)
      ==11947== by 0x80553F7: AppManager::loadRecordingServers() (AppManager.cpp:477)
      ==11947== by 0x805419C: AppManager::start(common::SocketConnection*, common::SocketListener*, common::SocketListener*) (AppManager.cpp:235)
      ==11947== by 0x8050346: main (Main.cpp:443)

      Attachments

        Activity

          People

            Unassigned Unassigned
            garyb Gary Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: