Skip to content
Permalink
Browse files

Fixed SEGV reported in #130

  • Loading branch information...
dlemstra committed Feb 14, 2016
1 parent c1b4c77 commit 478cce544fdf1de882d78381768458f397964453
Showing with 2 additions and 1 deletion.
  1. +2 −1 magick/profile.c
@@ -1444,7 +1444,8 @@ static void WriteTo8BimProfile(Image *image,const char *name,
count=(ssize_t) value;
if ((count & 0x01) != 0)
count++;
if ((p > (datum+length-count)) || (count > (ssize_t) length))
if ((count < 0) || (p > (datum+length-count)) ||
(count > (ssize_t) length))
break;
if (id != profile_id)
p+=count;

0 comments on commit 478cce5

Please sign in to comment.
You can’t perform that action at this time.