https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98404
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- NOT A BUG. GCC implements non-freestanding implementation of the C langauge which means it can emit memcpy/memmove and other functions that part of the C language. If your libc has a bug in it, it is not a GCC bug as you found out. The security bug happens only if your libc has a bug.