* Support aspect ratio geometry, e.g. -crop 3:2.
* Add support for reading the HEIC image format (reference
https://github.com/ImageMagick/ImageMagick/issues/507).
+ * Fixed numerous memory leaks, credit to OSS Fuzz.
2018-01-06 7.0.7-21 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.0-21, GIT revision 22168:a91afc45b:20180106.
offset=(ssize_t) (xml-p);
extent=(size_t) (offset+length+strlen(entity));
if (p != q)
- p=(char *) ResizeQuantumMemory(p,extent,sizeof(*p));
+ p=(char *) ResizeQuantumMemory(p,extent+1,sizeof(*p));
else
{
char
*extent_xml;
- extent_xml=(char *) AcquireQuantumMemory(extent,
+ extent_xml=(char *) AcquireQuantumMemory(extent+1,
sizeof(*extent_xml));
if (extent_xml != (char *) NULL)
- {
- (void) CopyMagickString(extent_xml,p,extent*
- sizeof(*extent_xml));
- p= extent_xml;
- }
+ (void) CopyMagickString(extent_xml,p,extent*
+ sizeof(*extent_xml));
+ p=extent_xml;
}
if (p == (char *) NULL)
ThrowFatalException(ResourceLimitFatalError,
"MemoryAllocationFailed");
+ p[extent]='\0';
xml=p+offset;
entity=strchr(xml,';');
}