From 2a4ec9ba0f9030bc183d43497aba04473c723c36 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 13 Oct 2022 21:02:03 -0700 Subject: [PATCH] common pos_html_tbl: fix unchecked allocation failure --- lib/common/htmltable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 1520325e8..98b0b22fb 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -1680,7 +1680,7 @@ static void pos_html_tbl(htmltbl_t * tbl, boxf pos, int sides) if (tbl->u.n.parent && tbl->u.n.parent->data.pencolor && !tbl->data.pencolor) - tbl->data.pencolor = strdup(tbl->u.n.parent->data.pencolor); + tbl->data.pencolor = gv_strdup(tbl->u.n.parent->data.pencolor); oldsz = tbl->data.box.UR.x; delx = pos.UR.x - pos.LL.x - oldsz; -- 2.40.0