emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 190d365: Report error for PNG under Cairo


From: Paul Eggert
Subject: [Emacs-diffs] emacs-25 190d365: Report error for PNG under Cairo
Date: Sat, 23 Jan 2016 09:40:53 +0000

branch: emacs-25
commit 190d365f90d741b09e817d9878afd256505e1944
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/image.c b/src/image.c
index 4681cba..144fe30 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
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]