summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-03 18:22:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-03 18:22:05 +0000
commitde93041d8e0ce21e7e6c64532cd0e35c08fa158b (patch)
tree1b711f35aaf39314d94da982384acd6920a55937 /mdoc_macro.c
parentf4987e6960b8fe67bfab4eb7ef4755c548a01faf (diff)
downloadmandoc-de93041d8e0ce21e7e6c64532cd0e35c08fa158b.tar.gz
Avoid closing out an explicit block twice when broken by .It
(assertion failure); regression found in jsg@'s afl test case 847.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 85e70b21..4dc3dade 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -967,6 +967,7 @@ blk_full(MACRO_PROT_ARGS)
"It breaks %s",
mdoc_macronames[blk->tok]);
rew_pending(mdoc, blk);
+ blk = NULL;
}
/* Close out prior implicit scopes. */