CVSROOT: /cvs Module name: src Changes by: marty...@cvs.openbsd.org 2013/12/27 19:14:32
Modified files: regress/gnu/egcs: Makefile Added files: regress/gnu/egcs/gcc-builtins: Makefile sprintf-1.c sprintf-1.c.exp sprintf-2.c sprintf-2.c.exp sprintf-3.c sprintf-3.c.exp stpcpy-1.c stpcpy-1.c.exp stpcpy-2.c stpcpy-2.c.exp strcat-1.c strcat-1.c.exp strcat-2.c strcat-2.c.exp strcpy-1.c strcpy-1.c.exp strcpy-2.c strcpy-2.c.exp strncat-1.c strncat-1.c.exp vsprintf-1.c vsprintf-1.c.exp vsprintf-2.c vsprintf-2.c.exp vsprintf-3.c vsprintf-3.c.exp Log message: Add regression tests to check whether GCC folds unsafe builtins and actually shows the security warning. Also add some other cases where GCC used to yield the warning but shouldn't (e.g. strncat simplified into strcat).