[Bug string/16004] memcpy/strcpy: detect memory overlap and crash when error is detected

joseph at codesourcery dot com sourceware-bugzilla@sourceware.org
Mon Aug 22 22:05:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=16004

--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
GCC may generate code that assumes the p == q case works, so that a 
conditional isn't needed when converting a struct assignment to memcpy.  I 
think it would be reasonable for fortification to check for cases of 
overlap other than exact overlap.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list