From 72af65ca06eeec98266fce0c474d5bfbc3d91951 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 23 Apr 2021 12:11:56 +0300 Subject: 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. --- NEWS | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index fe36106..f4741e0 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1