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 152ad920 for ; Wed, 6 Sep 2017 11:24:55 -0500 (EST) Date: Wed, 6 Sep 2017 11:24:55 -0500 (EST) Message-Id: <15685008311445903355.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: fix a NULL pointer access on deroff() failure; could be X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- fix a NULL pointer access on deroff() failure; could be triggered with '.SS ""'; reported by Michael Modified Files: -------------- mandoc: html.c Revision Data ------------- Index: html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/html.c,v retrieving revision 1.219 retrieving revision 1.220 diff -Lhtml.c -Lhtml.c -u -p -r1.219 -r1.220 --- html.c +++ html.c @@ -250,6 +250,8 @@ html_make_id(const struct roff_node *n) buf = NULL; deroff(&buf, n); + if (buf == NULL) + return NULL; /* http://www.w3.org/TR/html5/dom.html#the-id-attribute */ -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv