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 042462d4; for ; Sun, 30 Aug 2015 14:00:45 -0500 (EST) Date: Sun, 30 Aug 2015 14:00:45 -0500 (EST) Message-Id: <10879852212756678697.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: If an .Fo macro lacks its mandatory argument, don't die on an X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- If an .Fo macro lacks its mandatory argument, don't die on an assertion. Bug found by jsg@ with afl. Modified Files: -------------- mdocml: mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_html.c,v retrieving revision 1.232 retrieving revision 1.233 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.232 -r1.233 --- mdoc_html.c +++ mdoc_html.c @@ -1642,11 +1642,10 @@ mdoc_fo_pre(MDOC_ARGS) return(1); } - /* XXX: we drop non-initial arguments as per groff. */ + if (n->child == NULL) + return(0); - assert(n->child); assert(n->child->string); - PAIR_CLASS_INIT(&tag, "fname"); t = print_otag(h, TAG_B, 1, &tag); print_text(h, n->child->string); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv