projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8257c53
)
Check for unbalanced quotes
author
Cristy
<urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 23:58:55 +0000
(19:58 -0400)
committer
Cristy
<urban-warrior@imagemagick.org>
Sun, 25 Aug 2019 23:58:55 +0000
(19:58 -0400)
coders/xpm.c
patch
|
blob
|
history
diff --git
a/coders/xpm.c
b/coders/xpm.c
index 232ff2df274f9358bb3a11db315ca5dcca0ed618..812def9f0e72b3eae0595c12c944ed900d68437a 100644
(file)
--- a/
coders/xpm.c
+++ b/
coders/xpm.c
@@
-362,6
+362,11
@@
static Image *ReadXPMImage(const ImageInfo *image_info,ExceptionInfo *exception)
*q++=(*p);
}
*q='\0';
+ if (active != MagickFalse)
+ {
+ xpm_buffer=DestroyString(xpm_buffer);
+ ThrowReaderException(CorruptImageError,"UnexpectedEndOfFile");
+ }
/*
Initialize image structure.
*/