cvs commit: src/lib/libc/gen getbsize.c
Colin Percival
cperciva at FreeBSD.org
Mon Aug 4 06:53:16 UTC 2008
cperciva 2008-08-04 06:53:13 UTC
FreeBSD src repository
Modified files:
lib/libc/gen getbsize.c
Log:
SVN rev 181280 on 2008-08-04 06:53:13Z by cperciva
Set "max" to a reasonable value if BLOCKSIZE has a bogus unit. Prior
to this commit, "env BLOCKSIZE=4X df" prints not only "4X: unknown
blocksize" as expected, but sometimes also "maximum blocksize is 1G"
and "minimum blocksize is 512" depending on what happened to be on
the stack.
Found by: LLVM/Clang Static Checker
Revision Changes Path
1.9 +1 -0 src/lib/libc/gen/getbsize.c
More information about the cvs-src
mailing list