From 17178a3c38c9080f9bb5b5552e51518cf2162c41 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 12 Oct 2022 21:46:00 -0700 Subject: [PATCH] common appendFLineList: fix unchecked allocation failure --- lib/common/htmlparse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0