Bug 688224

Summary: Overlapping memcpy() blocks in Ins_MINDEX().
Product: Ghostscript Reporter: Alex Cherepanov <alex>
Component: GeneralAssignee: Stefan Kemper <stefan.kemper>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P3    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: patch

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.