From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 8d7aae46; for ; Thu, 18 Dec 2014 15:59:02 -0500 (EST) Date: Thu, 18 Dec 2014 15:59:02 -0500 (EST) Message-Id: <3006554240420242343.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Don't let .Ta creep into an already-closed list; same as for X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Don't let .Ta creep into an already-closed list; same as for .It. Fixes an assertion found by jsg@ with afl. Modified Files: -------------- mdocml: mdoc_macro.c Revision Data ------------- Index: mdoc_macro.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_macro.c,v retrieving revision 1.158 retrieving revision 1.159 diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.158 -r1.159 --- mdoc_macro.c +++ mdoc_macro.c @@ -1559,7 +1559,8 @@ phrase_ta(MACRO_PROT_ARGS) /* Make sure we are in a column list or ignore this macro. */ n = mdoc->last; - while (n != NULL && n->tok != MDOC_Bl) + while (n != NULL && + (n->tok != MDOC_Bl || n->flags & (MDOC_VALID | MDOC_BREAK))) n = n->parent; if (n == NULL || n->norm->Bl.type != LIST_column) { mandoc_msg(MANDOCERR_TA_STRAY, mdoc->parse, -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv