projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3edcd
)
Report error for PNG under Cairo
author
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 23 Jan 2016 09:40:29 +0000
(
01:40
-0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 23 Jan 2016 09:40:49 +0000
(
01:40
-0800)
* src/image.c (lookup_rgb_color): Signal a file error instead
of dumping core when mishandling an image.
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index 4681cba1f879fd90ce300011a5e71bac9b8dc110..144fe30a7466497eb0905331cd982e8c13ebf978 100644
(file)
--- 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
}