diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-20 17:59:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-20 17:59:34 +0000 |
commit | a47c2723999e135348912a7c9c9b2060866c3a44 (patch) | |
tree | ebe544c0ef33951478bb1b154a7d3f218edf3e74 /msec.c | |
parent | fd0810563728ec789e1ffe4d07db646ce2543711 (diff) | |
download | mandoc-a47c2723999e135348912a7c9c9b2060866c3a44.tar.gz |
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 'msec.c')
0 files changed, 0 insertions, 0 deletions