[Bug middle-end/86311] gcc_qsort calls memcpy with overlaps

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:47:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86311

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Thanks! Fixed by using memmove where memcpy might have been called with
dst==src.


More information about the Gcc-bugs mailing list