summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-13 22:43:11 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-13 22:43:11 +0000
commit36081fa6358527fcec93c8df3f3a8cfbf0b72208 (patch)
tree48854bfab86743d0317ec7d3fa3e0cb35eaa7b77 /doc/coreutils.texi
parent360b98042fa20a4418371cb91ad0d881c6d3762d (diff)
downloadcoreutils-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