[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    [jira] [Updated] (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:22:08
Message-ID: JIRA.12826698.1430540072000.56067.1430540528241 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XERCESC-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Bill Blough updated XERCESC-2049:
---------------------------------
    Attachment: moveChars_overlap.diff

> 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
> 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: 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