diff options
author | 2018-11-19 19:22:07 +0000 | |
---|---|---|
committer | 2018-11-19 19:22:07 +0000 | |
commit | 6236555172624d1a801353c70f49a37fe242afd4 (patch) | |
tree | b3acd15276bf35fb03f3d0275b5f8f5aa1a66ac3 /demandoc.c | |
parent | beb65cfe9fde781fdc8726740fe0b0dd70a84b16 (diff) | |
download | mandoc-6236555172624d1a801353c70f49a37fe242afd4.tar.gz mandoc-6236555172624d1a801353c70f49a37fe242afd4.tar.zst mandoc-6236555172624d1a801353c70f49a37fe242afd4.zip |
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 'demandoc.c')
0 files changed, 0 insertions, 0 deletions