From: Paul Eggert Date: Wed, 13 Jul 2011 03:42:26 +0000 (-0700) Subject: * image.c (png_load): Don't assume height * row_bytes fits in 'int'. X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/5adf60bc2313a220185c9f22d3d539a0dc51b228 * image.c (png_load): Don't assume height * row_bytes fits in 'int'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3862ce4632..9513dfd8e6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-07-13 Paul Eggert + + * image.c (png_load): Don't assume height * row_bytes fits in 'int'. + 2011-07-12 Paul Eggert * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. diff --git a/src/image.c b/src/image.c index f6626f61c8..1b6e67b440 100644 --- a/src/image.c +++ b/src/image.c @@ -5558,7 +5558,8 @@ png_load (struct frame *f, struct image *img) { Lisp_Object file, specified_file; Lisp_Object specified_data; - int x, y, i; + int x, y; + ptrdiff_t i; XImagePtr ximg, mask_img = NULL; png_struct *png_ptr = NULL; png_info *info_ptr = NULL, *end_info = NULL;