Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed head buffer overflow reported in: #98
  • Loading branch information
dlemstra committed Feb 6, 2016
1 parent 998c687 commit 5f16640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/psd.c
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5f16640

Please sign in to comment.