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 /ChangeLog | |
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 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2,6 +2,16 @@ * Version 5.3.1-cvs. + * 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. + * src/expr.c (docolon): Add IF_LINT check to avoid GCC warning. * configure.ac: Don't invoke AC_CONFIGURE_HOST directly; AB_INIT |