Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/148
  • Loading branch information
Cristy committed Mar 12, 2016
1 parent cf70f0c commit 82e2049
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions coders/psd.c
Expand Up @@ -2566,9 +2566,12 @@ static void RemoveICCProfileFromResourceBlock(StringInfo *bim_profile)
p=PushLongPixel(MSBEndian,p,&count);
if (id == 0x0000040f)
{
(void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length-
(PSDQuantum(count)+12)-(q-datum));
SetStringInfoLength(bim_profile,length-(PSDQuantum(count)+12));
if ((q+PSDQuantum(count)+12) < (datum+length-16))
{
(void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length-
(PSDQuantum(count)+12)-(q-datum));
SetStringInfoLength(bim_profile,length-(PSDQuantum(count)+12));
}
break;
}
p+=count;
Expand Down

0 comments on commit 82e2049

Please sign in to comment.