diff options
| author | Lars Magne Ingebrigtsen | 2013-12-01 15:34:05 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2013-12-01 15:34:05 +0100 |
| commit | 5f9aee6fdd89fe983b022598a80d6314f98321bc (patch) | |
| tree | 07c7b06f49a561fba8adb5fd536e5db8734f092b /src/image.c | |
| parent | de8a5633bd862aa5f5eb265a3d9fa855df731bfa (diff) | |
| download | emacs-5f9aee6fdd89fe983b022598a80d6314f98321bc.tar.gz emacs-5f9aee6fdd89fe983b022598a80d6314f98321bc.zip | |
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
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index 167ee2da303..91038dd480a 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8093,7 +8093,7 @@ imagemagick_compute_animated_image (MagickWand *super_wand, int ino) | |||
| 8093 | { | 8093 | { |
| 8094 | /* Sanity check. This shouldn't happen, but apparently | 8094 | /* Sanity check. This shouldn't happen, but apparently |
| 8095 | also does in some pictures. */ | 8095 | also does in some pictures. */ |
| 8096 | if (x + source_left > dest_width) | 8096 | if (x + source_left > dest_width - 1) |
| 8097 | break; | 8097 | break; |
| 8098 | /* Normally we only copy over non-transparent pixels, | 8098 | /* Normally we only copy over non-transparent pixels, |
| 8099 | but if the disposal method is "Background", then we | 8099 | but if the disposal method is "Background", then we |