+2018-06-11 7.0.8-0 <quetzlzacatenango@image...>
+ * Fixed numerous use of uninitialized values, integer overflow, memory
+ exceeded, and timeouts (credit to OSS Fuzz).
+
2018-06-11 7.0.7-39 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.7-39, GIT revision 14445:cc962acde:20180611.
return(MagickTrue);
*mvg_info->primitive_info=ResizeQuantumMemory(*mvg_info->primitive_info,
extent,sizeof(**mvg_info->primitive_info));
- *mvg_info->extent=extent;
if (*mvg_info->primitive_info != (PrimitiveInfo *) NULL)
- return(MagickTrue);
+ {
+ *mvg_info->extent=extent;
+ return(MagickTrue);
+ }
/*
Reallocation failed, allocate a primitive to facilitate unwinding.
*/
if (primitive_info != (PrimitiveInfo *) NULL)
{
for (i=0; primitive_info[i].primitive != UndefinedPrimitive; i++)
- if (primitive_info[i].text != (char *) NULL)
- primitive_info[i].text=(char *) RelinquishMagickMemory(
- primitive_info[i].text);
+ if ((primitive_info[i].primitive == TextPrimitive) ||
+ (primitive_info[i].primitive == ImagePrimitive))
+ if (primitive_info[i].text != (char *) NULL)
+ primitive_info[i].text=(char *) RelinquishMagickMemory(
+ primitive_info[i].text);
primitive_info=(PrimitiveInfo *) RelinquishMagickMemory(primitive_info);
}
primitive=DestroyString(primitive);