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

Source and destination overlap in memcpy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0, 3.2.1, 3.2.2, 3.2.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      I get this Valgrind error:

      ==5331== Source and destination overlap in memcpy(0x38f870c0, 0x38f870c2, 70)
      ==5331== at 0x442F0C8: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1033)
      ==5331== by 0x4999F77: xercesc_3_1::XMLString::collapseWS(unsigned short*, xercesc_3_1::MemoryManager*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AA78A4: xercesc_3_1::TraverseSchema::getElementAttValue(xercesc_3_1::DOMElement const*, unsigned short const*, xercesc_3_1::DatatypeValidator::ValidatorType) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4ABCC76: xercesc_3_1::TraverseSchema::traverseElementDecl(xercesc_3_1::DOMElement const*, bool) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AB819E: xercesc_3_1::TraverseSchema::traverseChoiceSequence(xercesc_3_1::DOMElement const*, int, bool&) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AB8C55: xercesc_3_1::TraverseSchema::processComplexContent(xercesc_3_1::DOMElement const*, unsigned short const*, xercesc_3_1::DOMElement const*, xercesc_3_1::ComplexTypeInfo*, unsigned short const*, bool, bool) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AB9F39: xercesc_3_1::TraverseSchema::traverseComplexTypeDecl(xercesc_3_1::DOMElement const*, bool, unsigned short const*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AC02C1: xercesc_3_1::TraverseSchema::processChildren(xercesc_3_1::DOMElement const*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AC0F60: xercesc_3_1::TraverseSchema::traverseInclude(xercesc_3_1::DOMElement const*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4ABFD6B: xercesc_3_1::TraverseSchema::processChildren(xercesc_3_1::DOMElement const*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AC0A55: xercesc_3_1::TraverseSchema::doTraverseSchema(xercesc_3_1::DOMElement const*) (in /usr/lib64/libxerces-c-3.1.so)
      ==5331== by 0x4AC3FB1: xercesc_3_1::TraverseSchema::TraverseSchema(xercesc_3_1::DOMElement*, xercesc_3_1::XMLStringPool*, xercesc_3_1::SchemaGrammar*, xercesc_3_1::GrammarResolver*, xercesc_3_1::RefHash2KeysTableOf<xercesc_3_1::SchemaInfo, xercesc_3_1::StringHasher>, xercesc_3_1::RefHash2KeysTableOf<xercesc_3_1::SchemaInfo, xercesc_3_1::StringHasher>, xercesc_3_1::XMLScanner*, unsigned short const*, xercesc_3_1::XMLEntityHandler*, xercesc_3_1::XMLErrorReporter*, xercesc_3_1::MemoryManager*, bool) (in /usr/lib64/libxerces-c-3.1.so)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmss João M. S. Silva
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: