diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2021-04-23 12:11:56 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2021-04-23 12:32:12 +0300 |
commit | 72af65ca06eeec98266fce0c474d5bfbc3d91951 (patch) | |
tree | e13d357336ad39f720f164ace57c35410c56031e /NEWS | |
parent | a84e72a583c3ea6d261447ec1560bf0d3cb32356 (diff) | |
download | gdbm-72af65ca06eeec98266fce0c474d5bfbc3d91951.tar.gz gdbm-72af65ca06eeec98266fce0c474d5bfbc3d91951.tar.bz2 |
Fix possible integer overflows and cases of undefined behavior.
* src/avail.c (avail_comp): Prevent integer overflow.
(gdbm_avail_table_valid_p): Likewise.
* src/gdbmdefs.h (off_t_sum_ok): Change return type.
Return false if any argument is negative.
* src/gdbmopen.c (compute_directory_size): Prevent integer overflow.
* src/hash.c (_gdbm_hash): Treat dptr elements as unsigned
integers.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -GNU dbm NEWS -- history of user-visible changes. 2021-03-21 +GNU dbm NEWS -- history of user-visible changes. 2021-03-23 Copyright (C) 1990-2021 Free Software Foundation, Inc. See the end of file for copying conditions. @@ -54,9 +54,9 @@ See https://puszcza.gnu.org.ua/bugs/?401 ** Fix spurious error from gdbm_dump and gdbm_export -The functions incorrectly reported as error the GDBM_ITEM_NOT_FOUND -status, which is reported when upon normal termination of iteration -over the database keys. +The functions incorrectly treated as error the GDBM_ITEM_NOT_FOUND +status, which is reported upon normal termination of iteration +over database keys. ** Make sure gdbm_sync always returns a meaningful value See https://puszcza.gnu.org.ua/bugs/?400 |