summaryrefslogtreecommitdiffstats
path: root/test-ntohl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-30 22:01:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-30 22:01:07 +0000
commit70cd74c5eec8e10211a001af63101b6ee56d0f9f (patch)
treea2b4f755967d0329953ed92f5f2f4fb86928f13b /test-ntohl.c
parent0e0452344b24af80d11d23280318f0886f06af54 (diff)
downloadmandoc-70cd74c5eec8e10211a001af63101b6ee56d0f9f.tar.gz
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 'test-ntohl.c')
0 files changed, 0 insertions, 0 deletions