diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-13 22:43:11 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-13 22:43:11 +0000 |
commit | 36081fa6358527fcec93c8df3f3a8cfbf0b72208 (patch) | |
tree | 48854bfab86743d0317ec7d3fa3e0cb35eaa7b77 /doc/coreutils.texi | |
parent | 360b98042fa20a4418371cb91ad0d881c6d3762d (diff) | |
download | coreutils-36081fa6358527fcec93c8df3f3a8cfbf0b72208.tar.xz |
* src/dd.c: Detect some very unlikely buffer overflows.
(INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP): New macros.
(MAX_BLOCKSIZE): Now accepts an arg. All uses changed.
(page_size): New var.
(scanargs, skip, main): Use more-straightforward way to detect overflow.
(dd_copy): Use page_size rather than invoking getpagesize.
Use INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP.
(main): Set page_size.
Avoid a call to stat in the usual case where ftruncate succeeds.
Diffstat (limited to 'doc/coreutils.texi')
0 files changed, 0 insertions, 0 deletions