oleaut32: Fix memcpy overlapping ranges in SysReAllocStringLen (valgrind)

Jon Griffiths jon_p_griffiths at yahoo.com
Mon Jun 16 11:54:31 CDT 2008


Hi,

Since HeapReAlloc() may return us the same block, memcpy may overlap, so use memmove instead. Fixes:

Source and destination overlap in memcpy at memcpy
by SysReAllocStringLen (oleaut.c:304)
by test_SysReAllocStringLen (vartype.c:5258)

Cheers
Jon



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OLEAUT32_fix_SysReAllocStringLen_overlap.diff
Type: text/x-diff
Size: 508 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080616/0a00e675/attachment.diff 


More information about the wine-patches mailing list