aboutsummaryrefslogtreecommitdiff
path: root/src/gdbm.h.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-02-06 11:49:08 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-03-16 14:00:39 +0200
commit5e1f98ea3a2a7ded707933c3f9222cbf9567c049 (patch)
tree5dee00ad2442c33a4bf98508e27886daefaae45b /src/gdbm.h.in
parent05fdfccddc4b67f484adaa1232301f81e1a67a76 (diff)
downloadgdbm-5e1f98ea3a2a7ded707933c3f9222cbf9567c049.tar.gz
gdbm-5e1f98ea3a2a7ded707933c3f9222cbf9567c049.tar.bz2
Fix bug #499
See http://puszcza.gnu.org.ua/bugs/?499 * src/gdbm.h.in (GDBM_BAD_HASH_ENTRY): New error code. * src/gdbmseq.c (get_next_key): Verify the computed hash and bucket address for the obtained key. * src/gdbmerrno.c (gdbm_errlist): Add error message for GDBM_BAD_HASH_ENTRY.
Diffstat (limited to 'src/gdbm.h.in')
-rw-r--r--src/gdbm.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdbm.h.in b/src/gdbm.h.in
index c861056..1a6cc0d 100644
--- a/src/gdbm.h.in
+++ b/src/gdbm.h.in
@@ -230,9 +230,10 @@ extern int gdbm_copy_meta (GDBM_FILE dst, GDBM_FILE src);
# define GDBM_FILE_SYNC_ERROR 38
# define GDBM_FILE_TRUNCATE_ERROR 39
# define GDBM_BUCKET_CACHE_CORRUPTED 40
+# define GDBM_BAD_HASH_ENTRY 40
# define _GDBM_MIN_ERRNO 0
-# define _GDBM_MAX_ERRNO GDBM_BUCKET_CACHE_CORRUPTED
+# define _GDBM_MAX_ERRNO GDBM_BAD_HASH_ENTRY
/* This one was never used and will be removed in the future */
# define GDBM_UNKNOWN_UPDATE GDBM_UNKNOWN_ERROR

Return to:

Send suggestions and report system problems to the System administrator.