diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-19 19:22:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-19 19:22:07 +0000 |
commit | 32b67cbf6659b6b8149a3cf8e043f34c2ff3c108 (patch) | |
tree | 07ad1b0fcd60a0ff806ec4697793691a28010e4b /compat_recallocarray.c | |
parent | 6ec56464f278da7f91092e441e3411680237b171 (diff) | |
download | mandoc-32b67cbf6659b6b8149a3cf8e043f34c2ff3c108.tar.gz |
Correctly construct empty lists in dbm_page_get().
Original commit message by the author of this bugfix patch, bluhm@:
lstmatch() expects a list of strings separated by \0 and terminated
with \0\0. In the NULL case dbm_page_get() returned only simple
strings so correct processing was depending on data layout. Use
an additional \0 to terminate the single string lists. Found by
mandoc regress since llvm linker on amd64 arranges strings differently.
Diffstat (limited to 'compat_recallocarray.c')
0 files changed, 0 insertions, 0 deletions