From: Matthew Fernandez Date: Thu, 13 Oct 2022 04:46:00 +0000 (-0700) Subject: common appendFLineList: fix unchecked allocation failure X-Git-Tag: 7.0.0~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17178a3c38c9080f9bb5b5552e51518cf2162c41;p=graphviz common appendFLineList: fix unchecked allocation failure --- diff --git a/lib/common/htmlparse.y b/lib/common/htmlparse.y index 998e30712..51394d20b 100644 --- a/lib/common/htmlparse.y +++ b/lib/common/htmlparse.y @@ -18,6 +18,7 @@ %{ +#include #include #include #include @@ -207,7 +208,7 @@ appendFLineList (int v) else { ln->lp.items = NEW(textspan_t); ln->lp.nitems = 1; - ln->lp.items[0].str = strdup(""); + ln->lp.items[0].str = gv_strdup(""); ln->lp.items[0].font = HTMLstate.fontstack->cfont; }