Skip to content
Permalink
Browse files

Fixed head buffer overflow reported in: #98

  • Loading branch information...
dlemstra committed Feb 6, 2016
1 parent 998c687 commit 5f16640725b1225e6337c62526e6577f0f88edb8
Showing with 1 addition and 1 deletion.
  1. +1 −1 coders/psd.c
@@ -575,7 +575,7 @@ static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image)
static inline size_t GetPSDRowSize(Image *image)
{
if (image->depth == 1)
return((image->columns+7)/8);
return(((image->columns+7)/8)*GetPSDPacketSize(image));
else
return(image->columns*GetPSDPacketSize(image));
}

0 comments on commit 5f16640

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