diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-07-22 17:11:59 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-07-22 17:11:59 +0000 |
commit | a2b1df94ad3af9d024aee5d5312d143cfbd269d3 (patch) | |
tree | 924fff0acbac2c8cf455d51052bd7940cde739c5 /usr.bin/jot/jot.1 | |
parent | 98a98ed10e1486786c861b627220276b58eca27a (diff) | |
download | FreeBSD-src-a2b1df94ad3af9d024aee5d5312d143cfbd269d3.zip FreeBSD-src-a2b1df94ad3af9d024aee5d5312d143cfbd269d3.tar.gz |
Improve printf(3) conversion specifier parsing so that silly formats
aren't allowed and the right casts can be used for printf() statements.
Document the conversion specifier limitations and the fact that
arithmetic overflow causes a fatal error.
PR: 12611
Reported by: Frode Vatvedt Fjeld <frodef@acm.org>
Reviewed by: bde
Diffstat (limited to 'usr.bin/jot/jot.1')
-rw-r--r-- | usr.bin/jot/jot.1 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.bin/jot/jot.1 b/usr.bin/jot/jot.1 index da39283..d0f0ce4 100644 --- a/usr.bin/jot/jot.1 +++ b/usr.bin/jot/jot.1 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)jot.1 8.1 (Berkeley) 6/6/93 -.\" $Id$ +.\" $Id: jot.1,v 1.5 1999/07/12 20:23:37 nik Exp $ .\" .Dd June 6, 1993 .Dt JOT 1 @@ -191,3 +191,17 @@ and to print all lines 80 characters or longer, .Xr yes 1 , .Xr printf 3 , .Xr random 3 +.Sh BUGS +Conversion format specifiers for +.Xr printf 3 +are limited to those of the form +.Dl %[#][ ][{+,-}][0-9]*[.[0-9]*]? +where +.Dq ? +must be one of +.Dl [l]{d,i,o,u,x} +or +.Dl {c,e,f,g,D,E,G,O,U,X} +.Pp +No bounds-checking is performed on numeric values, so arithmetic overflow +will cause a fatal error. |