From e0750887836b5d80fa681526f5cd463cc7d024a6 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Thu, 25 Feb 2016 13:53:39 -0500 Subject: [PATCH] nextstep/Emacs.app Crash ns_compute_glyph_string_overhangs * nsterm.m (ns_compute_glyph_string_overhangs): Avoid crash when glyph_string->font is NULL. --- src/nsterm.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nsterm.m b/src/nsterm.m index 43d1377..adce35e 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2532,6 +2532,9 @@ ns_compute_glyph_string_overhangs (struct glyph_string *s) { struct font *font = s->font; + if (!font) + return; + if (s->char2b) { struct font_metrics metrics; -- 2.3.0 (Apple Git-54)