diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-09-06 16:24:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-09-06 16:24:25 +0000 |
commit | 785dd8d378c339655da655e104ae8aa6a48b2ecd (patch) | |
tree | 02e8c71df8c5133209adf86c28ba7bff794cb530 | |
parent | 1fcaef01ac4fcbd536bd4717651b4b787b4e0ae7 (diff) | |
download | mandoc-785dd8d378c339655da655e104ae8aa6a48b2ecd.tar.gz |
fix a NULL pointer access on deroff() failure;
could be triggered with '.SS ""';
reported by Michael <Stapelberg at debian>
-rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |