From 11a1855aacfa2e86de660d1fd1da9c80708ad89b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 3 Feb 2015 18:22:05 +0000 Subject: Avoid closing out an explicit block twice when broken by .It (assertion failure); regression found in jsg@'s afl test case 847. --- mdoc_macro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdoc_macro.c') diff --git a/mdoc_macro.c b/mdoc_macro.c index 87311ff8..5ffb6a2a 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.171 2015/02/03 01:14:12 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.172 2015/02/03 18:22:05 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -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. */ -- cgit v1.2.3