From 785dd8d378c339655da655e104ae8aa6a48b2ecd Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 6 Sep 2017 16:24:25 +0000 Subject: fix a NULL pointer access on deroff() failure; could be triggered with '.SS ""'; reported by Michael --- html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html.c b/html.c index 1f1d8729..e644fa21 100644 --- a/html.c +++ b/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 */ -- cgit