diff options
author | 2016-08-20 17:59:34 +0000 | |
---|---|---|
committer | 2016-08-20 17:59:34 +0000 | |
commit | 14a182308c2f35adb760c79556d4e46091008341 (patch) | |
tree | d4a53e8e39764e6a62ed357df8c0913464c14672 /mandoc.c | |
parent | 1062122d08562f12eb473c7eb80d28f711b0d65d (diff) | |
download | mandoc-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 'mandoc.c')
0 files changed, 0 insertions, 0 deletions