aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-07-12 20:42:26 -0700
committerPaul Eggert2011-07-12 20:42:26 -0700
commit5adf60bc2313a220185c9f22d3d539a0dc51b228 (patch)
tree4e7beda7a3112b3bd9f39f848c43c45efbc12b32 /src
parent2b64ccd2b5916083a421b0263a5bc1d3d075d82b (diff)
downloademacs-5adf60bc2313a220185c9f22d3d539a0dc51b228.tar.gz
emacs-5adf60bc2313a220185c9f22d3d539a0dc51b228.zip
* image.c (png_load): Don't assume height * row_bytes fits in 'int'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/image.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3862ce46327..9513dfd8e64 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-07-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 * image.c (png_load): Don't assume height * row_bytes fits in 'int'.
4
12011-07-12 Paul Eggert <eggert@cs.ucla.edu> 52011-07-12 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. 7 * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.
diff --git a/src/image.c b/src/image.c
index f6626f61c83..1b6e67b4404 100644
--- a/src/image.c
+++ b/src/image.c
@@ -5558,7 +5558,8 @@ png_load (struct frame *f, struct image *img)
5558{ 5558{
5559 Lisp_Object file, specified_file; 5559 Lisp_Object file, specified_file;
5560 Lisp_Object specified_data; 5560 Lisp_Object specified_data;
5561 int x, y, i; 5561 int x, y;
5562 ptrdiff_t i;
5562 XImagePtr ximg, mask_img = NULL; 5563 XImagePtr ximg, mask_img = NULL;
5563 png_struct *png_ptr = NULL; 5564 png_struct *png_ptr = NULL;
5564 png_info *info_ptr = NULL, *end_info = NULL; 5565 png_info *info_ptr = NULL, *end_info = NULL;