diff options
author | 2017-02-22 08:54:41 +0000 | |
---|---|---|
committer | 2017-02-22 08:54:41 +0000 | |
commit | cd37e27b9cf9f352216f9238b796274bbe24945b (patch) | |
tree | 475b5c6c707ca001c94f64ada78b1e6aaa8a74b2 /mdoc_html.c | |
parent | f4e7c6fee7a66358f513b1fad8140537ebc896ff (diff) | |
download | mandoc-cd37e27b9cf9f352216f9238b796274bbe24945b.tar.gz mandoc-cd37e27b9cf9f352216f9238b796274bbe24945b.tar.zst mandoc-cd37e27b9cf9f352216f9238b796274bbe24945b.zip |
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index e8245141..d3b63b96 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.271 2017/02/16 03:00:23 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.272 2017/02/22 08:54:41 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |