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
This commit is contained in:
parent
de8a5633bd
commit
5f9aee6fdd
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue