summaryrefslogtreecommitdiffstats
path: root/msec.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
commita47c2723999e135348912a7c9c9b2060866c3a44 (patch)
treeebe544c0ef33951478bb1b154a7d3f218edf3e74 /msec.c
parentfd0810563728ec789e1ffe4d07db646ce2543711 (diff)
downloadmandoc-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