diff options
author | 2016-08-30 22:01:07 +0000 | |
---|---|---|
committer | 2016-08-30 22:01:07 +0000 | |
commit | 1ae9865424c72b96138d9275a0607da6a1cca536 (patch) | |
tree | 2394630509c42d91c8534fd3bc0a5c1881c6eb49 /mdoc_man.c | |
parent | e4c83815ad1c33d67a9d2078e7eebbbeeb00dd15 (diff) | |
download | mandoc-1ae9865424c72b96138d9275a0607da6a1cca536.tar.gz mandoc-1ae9865424c72b96138d9275a0607da6a1cca536.tar.zst mandoc-1ae9865424c72b96138d9275a0607da6a1cca536.zip |
When the database is corrupt in the sense of containing invalid
pointers in the pages table, do not access NULL pointers, but
gracefully handle the errors.
Similar patches will be needed for the macro tables, too.
<attila at stalphonsos dot com> audited the code and pointed out to me
that dbm_get() can return NULL for corrupted databases, but that isn't
handled properly at various places.
Diffstat (limited to 'mdoc_man.c')
0 files changed, 0 insertions, 0 deletions