diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 00:31:58 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 00:31:58 +0000 |
commit | d08db2a02ab50a67454dbfb4394be7de46abd40f (patch) | |
tree | 858b6aa8249860d225bd95d9c401047e8fb783eb /lib/ChangeLog | |
parent | 6cb7a76f8e927844be91e30f172e85f2735b848a (diff) | |
download | coreutils-d08db2a02ab50a67454dbfb4394be7de46abd40f.tar.xz |
cycle-check integer overflow fixup.
Diffstat (limited to 'lib/ChangeLog')
-rw-r--r-- | lib/ChangeLog | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 972a77b17..8eacab901 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,8 +1,28 @@ 2004-07-27 Paul Eggert <eggert@cs.ucla.edu> + cycle-check integer overflow fixup. + + * cycle-check.h: Remove now-inaccurate comment about the files + you need to include first. You don't need to include any files + other than the usual config.h. + Include <inttypes.h> and <stdint.h> if available, for uintmax_t. + Remove 'struct stat;' not needed since we know sys/stat.h has + been included by dev-ino.h. + (struct cycle_check_state): Change chdir_counter to uintmax_t, + not size_t, since it isn't limited by object sizes. + Change magic from long unsigned int to int; that's good enough + for our use. + * cycle-check.c (is_zero_or_power_of_two): Renamed from + is_power_of_two, to reflect better what it really does. + All uses changed. Arg is now uintmax_t, not unsigned int + (it should have been unsigned long int -- that was a bug). + (cycle_check): Check for integer overflow in cycle count, + and report a cycle if that happens, as it must be a cycle + by this point. + backupfile.c rewrite to avoid arbitrary limits on lengths of numeric backup extensions. - + * addext.c: Remove; no longer needed. * Makefile.am (libfetish_a_SOURCES): Remove addext.c. * backupfile.h (addext): Remove decl. @@ -27,7 +47,7 @@ new numbered backup name has the same length as the old. Also, use xmalloc rather than malloc, so that the caller needn't worry about memory exhaustion. - + 2004-07-25 Paul Eggert <eggert@cs.ucla.edu> * euidaccess.c [!defined LIBC]: Included group-member.h, stat-macros.h. |