]> git.eshelyaron.com Git - emacs.git/commit
Minor ImageMagick safety fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Jul 2014 23:25:13 +0000 (16:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Jul 2014 23:25:13 +0000 (16:25 -0700)
commit0e14232948f875e390ed46348969b9ebeb9133c1
treefd75498a684c9e2d9cc981ee6f921bed8d351cf4
parent2c578850246f76ada633e8af447a1c12958f267a
Minor ImageMagick safety fixes.

* image.c (imagemagick_compute_animated_image):
Remove useless assignment to local.  Avoid problems if dest_width is 0.
(imagemagick_load_image): Use int for pixel counts that can't
exceed INT_MAX.  Avoid problem if PixelGetNextIteratorRow returns
a row width greater than the image width (or greater than LONG_MAX!).
src/ChangeLog
src/image.c