aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dbm_map.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-20 17:59:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-20 17:59:34 +0000
commit14a182308c2f35adb760c79556d4e46091008341 (patch)
treed4a53e8e39764e6a62ed357df8c0913464c14672 /dbm_map.c
parent1062122d08562f12eb473c7eb80d28f711b0d65d (diff)
downloadmandoc-14a182308c2f35adb760c79556d4e46091008341.tar.gz
mandoc-14a182308c2f35adb760c79556d4e46091008341.tar.zst
mandoc-14a182308c2f35adb760c79556d4e46091008341.zip
When a mismatching end macro occurs while at least two nested blocks
are open, all except the innermost open block got a bogus MDOC_ENDED marker, in some situations triggering segfaults down the road which tb@ found with afl(1). Fix the logic error by figuring out up front whether an end macro has a matching body, and if it hasn't, don't mark any blocks as broken.
Diffstat (limited to 'dbm_map.c')
0 files changed, 0 insertions, 0 deletions