path: root/
authorSergey Poznyakoff <>2018-10-18 14:23:07 (GMT)
committer Sergey Poznyakoff <>2018-10-18 14:23:07 (GMT)
commit852ff1b6e81ce13fdcd1fd4fb272b17d760760b3 (patch) (side-by-side diff)
tree3113d09e84353d47dfd48b237c8b5e2c62eed869 /
parent2ff4ae9c745d4b9e6ee36468c81554027f66c35b (diff)
Attempt recovery in case of invalid next_block header field
* src/gdbmopen.c (validate_header): Return GDBM_NEED_RECOVERY if next_block is invalid. (_gdbm_validate_header): New function. (gdbm_fd_open): Set need_recovery depending on return from validate_header. (gdbm_open): Bail out on invalid value of GDBM_OPENMASK bits. * src/proto.h (_gdbm_validate_header): New proto. * src/recover.c (check_db): Re-validate the header. * src/gdbmtool.c (export_handler): Fix option processing.
Diffstat (limited to '') (more/less context) (show whitespace changes)
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.