Module Name: src Committed By: jruoho Date: Sun Dec 19 08:28:40 UTC 2010
Modified Files: src/lib/libc/ssp: ssp.3 Log Message: Small modifications to wording, tidy up SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc/ssp/ssp.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/ssp/ssp.3 diff -u src/lib/libc/ssp/ssp.3:1.4 src/lib/libc/ssp/ssp.3:1.5 --- src/lib/libc/ssp/ssp.3:1.4 Sun May 25 20:07:14 2008 +++ src/lib/libc/ssp/ssp.3 Sun Dec 19 08:28:40 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: ssp.3,v 1.4 2008/05/25 20:07:14 wiz Exp $ +.\" $NetBSD: ssp.3,v 1.5 2010/12/19 08:28:40 jruoho Exp $ .\" .\" Copyright (c) 2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" POSSIBILITY OF SUCH DAMAGE. .\" .\" -.Dd May 23, 2007 +.Dd December 19, 2010 .Dt SSP 3 .Os .Sh NAME @@ -82,13 +82,13 @@ .Dv _FORTIFY_SOURCE bounds checking is enabled as described below, the above functions get overwritten to use the -.Xr gcc 1 .Xr __builtin_object_size 3 function to compute the size of -.Fa str -if known at compile time and perform bounds check on it in order +.Fa str , +if known at compile time, +and perform bounds check on it in order to avoid data buffer or stack buffer overflows. -If an overflow is detected the routines will call +If an overflow is detected, the routines will call .Xr abort 3 . .Pp To enable these function overrides the following should be added to the @@ -110,13 +110,10 @@ it will compute the minimum buffer size. .Sh SEE ALSO .Xr gcc 1 , -.Xr read 2 , -.Xr readlink 2 , .Xr __builtin_object_size 3 , -.Xr abort 3 , -.Xr getcwd 3 , .Xr stdio 3 , -.Xr string 3 +.Xr string 3 , +.Xr security 8 .Sh HISTORY The .Nm ssp