[ 
https://issues.apache.org/jira/browse/XERCESC-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16992518#comment-16992518
 ] 

João M. S. Silva commented on XERCESC-2175:
-------------------------------------------

I made some experiments that could have led to this Valgrind report but could 
not reproduce it.

> Source and destination overlap in memcpy
> ----------------------------------------
>
>                 Key: XERCESC-2175
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2175
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 3.2.0, 3.2.1, 3.2.2
>            Reporter: João M. S. Silva
>            Priority: Major
>             Fix For: 3.2.3
>
>
> 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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to