diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-22 08:54:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-22 08:54:41 +0000 |
commit | c81ba0cd844ef2ade9cb6450e3ba39ac0aff5bab (patch) | |
tree | 518a6a70e1267c11d54c1f39a494562fb917268d /mdoc_html.c | |
parent | 6296fe05a1227c9323d586695521ad79308cc447 (diff) | |
download | mandoc-c81ba0cd844ef2ade9cb6450e3ba39ac0aff5bab.tar.gz |
Handle an odd edge case where .It is preceded by .Sm.
NULL dereference in man.cgi reported by Gabriel Guzman <gabe at
guzman dash nunez dot com> on misc@.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 7c67d072..1a9b9d84 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -751,6 +751,7 @@ mdoc_it_pre(MDOC_ARGS) case ROFFT_HEAD: if (h->style != NULL && !bl->norm->Bl.comp && (n->parent->prev == NULL || + n->parent->prev->body == NULL || n->parent->prev->body->child != NULL)) { t = print_otag(h, TAG_DT, "csWl", cattr, bl->norm->Bl.width); |