Subject: CVS commit: src/lib/libssp
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 11/08/2006 19:52:11
Module Name:	src
Committed By:	christos
Date:		Wed Nov  8 19:52:11 UTC 2006

Added Files:
	src/lib/libssp: Makefile fgets_chk.c gets_chk.c memcpy_chk.c
	    memmove_chk.c memset_chk.c snprintf_chk.c sprintf_chk.c
	    strcat_chk.c strcpy_chk.c strncat_chk.c strncpy_chk.c
	    vsnprintf_chk.c vsprintf_chk.c
	src/lib/libssp/ssp: ssp.h stdio.h string.h unistd.h

Log Message:
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 :-)]


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/lib/libssp/Makefile src/lib/libssp/fgets_chk.c \
    src/lib/libssp/gets_chk.c src/lib/libssp/memcpy_chk.c \
    src/lib/libssp/memmove_chk.c src/lib/libssp/memset_chk.c \
    src/lib/libssp/snprintf_chk.c src/lib/libssp/sprintf_chk.c \
    src/lib/libssp/strcat_chk.c src/lib/libssp/strcpy_chk.c \
    src/lib/libssp/strncat_chk.c src/lib/libssp/strncpy_chk.c \
    src/lib/libssp/vsnprintf_chk.c src/lib/libssp/vsprintf_chk.c
cvs rdiff -r0 -r1.1 src/lib/libssp/ssp/ssp.h src/lib/libssp/ssp/stdio.h \
    src/lib/libssp/ssp/string.h src/lib/libssp/ssp/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.