Commit 5f9aee6f authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

Fix duckduckgo imagemagick crash

* image.c (imagemagick_compute_animated_image): Don't crash if we
have an animation with different-sized images.

Fixes: debbugs:15313
parent de8a5633
2013-12-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* image.c (imagemagick_compute_animated_image): Don't crash if we
have an animation with different-sized images (bug#15313).
2013-11-30 Martin Rudalics <rudalics@gmx.at>
Remove some unused items introduced during pixelwise change.
......
......@@ -8093,7 +8093,7 @@ imagemagick_compute_animated_image (MagickWand *super_wand, int ino)
{
/* Sanity check. This shouldn't happen, but apparently
also does in some pictures. */
if (x + source_left > dest_width)
if (x + source_left > dest_width - 1)
break;
/* Normally we only copy over non-transparent pixels,
but if the disposal method is "Background", then we
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment