[
https://issues.apache.org/jira/browse/XERCESC-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alberto Massari resolved XERCESC-2049.
--------------------------------------
Resolution: Fixed
Fix Version/s: 3.2.0
3.1.3
Assignee: Alberto Massari
> memcpy used on overlapping memory regions causes sanity test failure
> --------------------------------------------------------------------
>
> Key: XERCESC-2049
> URL: https://issues.apache.org/jira/browse/XERCESC-2049
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 3.1.2
> Environment: Debian unstable (sid) and Debian stable (jessie) on amd64
> Reporter: Bill Blough
> Assignee: Alberto Massari
> Fix For: 3.1.3, 3.2.0
>
> Attachments: moveChars_overlap.diff
>
>
> On Debian Jessie (libc6 2.19, libstdc++ 4.9.2) and newer, sanityTest.pl fails
> its tests of XMLString::collapseWS.
> Tracing with GDB shows that XMLString::moveChars is corrupting the string. I
> think this is likely due to memcpy being used on overlapping memory regions.
> Replacing the memcpy in moveChars with memmove fixes the issue on my
> systems.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]