commit | acabb847a592ca5e430c1c0949d03acfc0b78bb9 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Dec 14 23:36:33 2014 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Dec 14 23:36:33 2014 +0000 |
tree | 293731eef10f00993f8746eef5c5b73a944abea1 | |
parent | 832bf41145dbb8a98dd0eda20e2ff80848204b7f [diff] [blame] |
diff --git a/coders/xpm.c b/coders/xpm.c index b78b0f9..72cd647 100644 --- a/coders/xpm.c +++ b/coders/xpm.c
@@ -424,6 +424,9 @@ /* Read image pixels. */ + status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + return(DestroyImageList(image)); for (y=0; y < (ssize_t) image->rows; y++) { p=NextXPMLine(p);