From 190d365f90d741b09e817d9878afd256505e1944 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 23 Jan 2016 01:40:29 -0800 Subject: [PATCH] Report error for PNG under Cairo * src/image.c (lookup_rgb_color): Signal a file error instead of dumping core when mishandling an image. --- src/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 4681cba1f87..144fe30a746 100644 --- a/src/image.c +++ b/src/image.c @@ -4615,7 +4615,8 @@ lookup_rgb_color (struct frame *f, int r, int g, int b) #elif defined HAVE_NS return RGB_TO_ULONG (r >> 8, g >> 8, b >> 8); #else - eassume (false); + xsignal1 (Qfile_error, + build_string ("This Emacs mishandles this image file type")); #endif } -- 2.39.2