From: Matthew Fernandez Date: Sat, 15 Oct 2022 18:07:06 +0000 (-0700) Subject: common xdotBB: fix unchecked allocation failure X-Git-Tag: 7.0.0~3^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a17f3beeabc9f9e18d71c91a4b9c58fa9d3c3b;p=graphviz common xdotBB: fix unchecked allocation failure --- diff --git a/lib/common/emit.c b/lib/common/emit.c index d03b54940..3d6a7f541 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -2983,7 +2983,7 @@ boxf xdotBB (Agraph_t* g) break; case xd_text : op->span = NEW(textspan_t); - op->span->str = strdup (op->op.u.text.text); + op->span->str = gv_strdup (op->op.u.text.text); op->span->just = adjust [op->op.u.text.align]; tf.name = fontname; tf.size = fontsize;