diff options
| author | Chris Costello <chris@FreeBSD.org> | 2002-06-13 23:35:22 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2002-06-13 23:35:22 +0000 |
| commit | 7bc7869122f6638be6448e662d803d10331c09bf (patch) | |
| tree | 0832619f8642e3e0ff7b7a8a9d77c227aa64c8a9 /lib/libc/stdio | |
| parent | a3cce19f7d62062ee2f605d65189977e045fa130 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/printf.3 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index c46284ee1a31..3f5f8b4bc99c 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -700,6 +700,27 @@ a buffer overflow attack. the FSA and .Sx EXAMPLES . ) +.Pp +.\" XXX - rewrite after FSA +The +.Fn printf +and +.Fn vprintf +functions are also easily misused in a manner allowing malicious users +to arbitrarily change a running program's functionality by either +causing the program to print potentially sensitive data +.Dq "left on the stack," +or causing it to generate a memory fault or bus error +by dereferencing an invalid pointer. +.Pp +Never, under any circumstances pass a string obtained from the network, +a file, or any user as a format string to a +.Fn printf +or +.Fn sprintf +function. +.Xc +.Ec .Sh SEE ALSO .Xr printf 1 , .Xr scanf 3 , |
