From 1f610967afc221b296036849d0c17aea495ab50c Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sat, 9 Jul 2022 12:23:57 -0400 Subject: add a null-pointer check Signed-off-by: Thomas E. Dickey --- src/xftrender.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xftrender.c b/src/xftrender.c index 98c86cd..bf2d494 100644 --- a/src/xftrender.c +++ b/src/xftrender.c @@ -154,6 +154,8 @@ XftGlyphRender (Display *dpy, if (wire >= (Glyph) font->num_glyphs || !font->glyphs[wire]) wire = 0; glyph = font->glyphs[wire]; + if (glyph == NULL) + continue; if (glyph->picture) { _XftCompositeString(dpy, op, src, dst, font->format, font->glyphset, srcx, srcy, x, y, width, chars, j); -- cgit v1.2.3