From 4f704b700beb6486213e1096b0e702f4a9067184 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 14 Nov 2022 18:42:47 -0500 Subject: libxft issue #16 https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/16 Stack gets smashed in fonts with colors when calling XftGlyphRender BGRA changes made incorrect comparison for local vs allocated buffer in XftGlyphSpecRender Signed-off-by: Thomas E. Dickey --- src/xftrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xftrender.c b/src/xftrender.c index c15237e..58bd63a 100644 --- a/src/xftrender.c +++ b/src/xftrender.c @@ -365,7 +365,7 @@ XftGlyphSpecRender (Display *dpy, } elts = elts_local; - if (!font->info.color && nelt > NUM_ELT_LOCAL) + if (nelt > NUM_ELT_LOCAL) { elts = AllocGlyphElt8Array (nelt); if (!elts) -- cgit v1.2.1