* mandoc: fix a NULL pointer access on deroff() failure; could be
@ 2017-09-06 16:24 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-09-06 16:24 UTC (permalink / raw)
To: source
Log Message:
-----------
fix a NULL pointer access on deroff() failure;
could be triggered with '.SS ""';
reported by Michael <Stapelberg at debian>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-06 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 16:24 mandoc: fix a NULL pointer access on deroff() failure; could be schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).