ssize_t
count;
- StringInfo
- *profile;
-
unsigned int
signature;
if ((LocaleNCompare(keyword,"profile:",8) == 0) ||
(LocaleNCompare(keyword,"profile-",8) == 0))
{
- size_t
- length;
+ StringInfo
+ *profile;
- if (profiles == (LinkedListInfo *) NULL)
- profiles=NewLinkedList(0);
- (void) AppendValueToLinkedList(profiles,
- AcquireString(keyword+8));
- if (length > sizeof(keyword)-8)
+ if ((MagickSizeType) StringToLong(options) > GetBlobSize(image))
{
options=DestroyString(options);
- profiles=DestroyLinkedList(profiles,
- RelinquishMagickMemory);
ThrowReaderException(CorruptImageError,
- "ImproperImageHeader");
+ "InsufficientImageDataInFile");
}
+ if (profiles == (LinkedListInfo *) NULL)
+ profiles=NewLinkedList(0);
+ (void) AppendValueToLinkedList(profiles,
+ AcquireString(keyword+8));
profile=BlobToStringInfo((const void *) NULL,length);
if (profile == (StringInfo *) NULL)
{