summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2013-08-15 20:47:28 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2013-08-15 20:47:28 +0200
commit1d18b1e6ab1aabab94554fc10e24811478346fab (patch)
tree25f0575563d114a7fe1ee3dbf65f6b410ce1b634 /src/image.c
parent703dbebab0c46f059593df55698c488df15dd806 (diff)
downloademacs-1d18b1e6ab1aabab94554fc10e24811478346fab.tar.gz
(imagemagick_compute_animated_image): Fix animated segafault
(imagemagick_compute_animated_image): Setting the iterator row to zero is apparently not allowed.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 348f6a8209b..6f92c583554 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7945,7 +7945,8 @@ imagemagick_compute_animated_image (MagickWand *super_wand, int ino)
/* The sub-image may not start at origo, so move the destination
iterator to where the sub-image should start. */
- PixelSetIteratorRow (dest_iterator, source_top);
+ if (source_top > 0)
+ PixelSetIteratorRow (dest_iterator, source_top);
while ((source = PixelGetNextIteratorRow (source_iterator, &source_width))
!= NULL)