summaryrefslogtreecommitdiff
path: root/bin/echo
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-08-20 17:58:10 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-08-20 17:58:10 +0000
commit46556398e35e7146378f6e8f4618dd22d5c78a0c (patch)
tree2e8c8dd38e437f0703220f4be31082dee9c96bdb /bin/echo
parentf0f97a31ae95d06394e9e80ed9db06cb7e75975b (diff)
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 'bin/echo')
0 files changed, 0 insertions, 0 deletions