[Bug c/67610] strcpy BUG
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 17 15:40:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67610
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|cp-tools |c
Version|unspecified |4.2.1
Resolution|--- |INVALID
Product|classpath |gcc
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Strcpy has undefined behavior if the input and output arrays overlap. Use
memmove instead.
Also this would not be a gcc bug as gcc does provide strcpy.
More information about the Gcc-bugs
mailing list