Commit Graph

1 Commits

Author SHA1 Message Date
christos f499cd524a Add a BSD-licensed re-implementation of the gcc-4.1 libssp.
This adds bounds checking for the following functions:

    memset, fgets, gets, memcpy, memmove, memset, snprintf, sprintf, strcat,
    strcpy, strncat, strncpy, vsnprintf, vsprintf

This functionality is enabled by compiling with:

	gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=<1|2> -lssp

Eventually gcc will provide -ffortify-source or something to automate this
[we hope :-)]
2006-11-08 19:52:11 +00:00