From: Matthew Fernandez Date: Fri, 14 Oct 2022 04:01:46 +0000 (-0700) Subject: common pos_html_cell: fix unchecked allocation failure X-Git-Tag: 7.0.0~4^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fd8f444dbfb0ad1bf23beb34370b50ffc8e5e46;p=graphviz common pos_html_cell: fix unchecked allocation failure --- diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 47e2a9133..1520325e8 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -1530,7 +1530,7 @@ static void pos_html_cell(htmlcell_t * cp, boxf pos, int sides) boxf cbox; if (!cp->data.pencolor && cp->parent->data.pencolor) - cp->data.pencolor = strdup(cp->parent->data.pencolor); + cp->data.pencolor = gv_strdup(cp->parent->data.pencolor); /* If fixed, align cell */ if (cp->data.flags & FIXED_FLAG) {