[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-c-dev
Subject: [jira] [Created] (XERCESC-2049) memcpy used on overlapping memory regions causes sanity test failure
From: "Bill Blough (JIRA)" <xerces-c-dev () xml ! apache ! org>
Date: 2015-05-02 4:15:08
Message-ID: JIRA.12826698.1430540072000.55929.1430540108222 () Atlassian ! JIRA
[Download RAW message or body]
Bill Blough created XERCESC-2049:
------------------------------------
Summary: 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
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic