Bug 688224 - Overlapping memcpy() blocks in Ins_MINDEX().
Summary: Overlapping memcpy() blocks in Ins_MINDEX().
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC Linux
: P3 normal
Assignee: Stefan Kemper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 20:25 UTC by Alex Cherepanov
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
patch (540 bytes, patch)
2005-07-20 20:28 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cherepanov 2005-07-20 20:25:56 UTC
Valgrind reports

Source and destination overlap in memcpy(0x1C0EFB64, 0x1C0EFB68, 12)
   at 0x1B904A60: memcpy (mac_replace_strmem.c:113)
   by 0x807096A: Ins_MINDEX (./src/ttinterp.c:1696)
   by 0x80739A3: RunIns (./src/ttinterp.c:5199)
   by 0x807509D: Instance_Reset (./src/ttobjs.c:802)

on the sample file from the bug 688222.
We know already, that this is significant for the HP C compiler.
Comment 1 Alex Cherepanov 2005-07-20 20:28:02 UTC
Created attachment 1553 [details]
patch

s/memcpy/memmove/ in Ins_MINDEX().
Comment 2 Alex Cherepanov 2005-07-21 12:55:19 UTC
The fix is committed to HEAD branch.
See the comment 3 of the bug 688225 for the code review.