diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-02-03 18:19:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-02-03 18:19:28 +0000 |
commit | a55417f5e8590188e00f49fc7f2886ddc71b4e57 (patch) | |
tree | 6b489dceb28c9397356f5c65ddd90c88f83bfc8f /usr.bin/mandoc/mdoc_macro.c | |
parent | d1ca7b26d7b3bf8b55ffbe3afa62635cf82ebb03 (diff) |
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 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c index 21885b10a8e..3d91845b321 100644 --- a/usr.bin/mandoc/mdoc_macro.c +++ b/usr.bin/mandoc/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_macro.c,v 1.127 2015/02/03 01:13:48 schwarze Exp $ */ +/* $OpenBSD: mdoc_macro.c,v 1.128 2015/02/03 18:19:27 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -965,6 +965,7 @@ blk_full(MACRO_PROT_ARGS) "It breaks %s", mdoc_macronames[blk->tok]); rew_pending(mdoc, blk); + blk = NULL; } /* Close out prior implicit scopes. */ |