summaryrefslogtreecommitdiff
path: root/ChangeLog
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 /ChangeLog
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 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6105f4855..3c2e156cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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