summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-11-14 18:42:47 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2022-11-14 18:48:12 -0500
commit4f704b700beb6486213e1096b0e702f4a9067184 (patch)
treeb4ede388785f040f3f01ab52882bd79a70c76938
parentde4592a18bba0bfc88232f6f4ecad7c2fa5e616e (diff)
downloadxorg-lib-libXft-4f704b700beb6486213e1096b0e702f4a9067184.tar.gz
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 <dickey@invisible-island.net>
-rw-r--r--src/xftrender.c2
1 files changed, 1 insertions, 1 deletions
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)