]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shred: fix overflow checking of command-line options
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 May 2014 18:42:38 +0000 (11:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 May 2014 18:43:15 +0000 (11:43 -0700)
commita7603fa6527cf53a22d5072acb454f65303a3874
treed02322b3f63955edab8ae3bb25375ebede1577b6
parent03440189a01139418fd554f40ec6e86f3ca143dc
shred: fix overflow checking of command-line options

* src/shred.c (main): Limit -n (number of passes) value to
ULONG_MAX, not to UINT32_MAX, since the vars are unsigned long.
Limit the -s (file size) value to OFF_T_MAX.
src/shred.c