Commit a0f1ac6c authored by Cristy's avatar Cristy

...

parent 285b652b
......@@ -1411,6 +1411,8 @@ MagickExport MagickBooleanType SetMagickResourceLimit(const ResourceType type,
else
resource_info.height_limit=MagickMin(limit,StringToMagickSizeType(
value,100.0));
resource_info.height_limit=MagickMin(resource_info.height_limit,
SSIZE_MAX);
break;
}
case ListLengthResource:
......@@ -1487,6 +1489,8 @@ MagickExport MagickBooleanType SetMagickResourceLimit(const ResourceType type,
else
resource_info.width_limit=MagickMin(limit,StringToMagickSizeType(value,
100.0));
resource_info.width_limit=MagickMin(resource_info.width_limit,
SSIZE_MAX);
break;
}
default:
......
......@@ -2019,7 +2019,7 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception)
attributes=(char **) sentinel;
tag=p;
c=(*p);
if ((isalpha((int) ((unsigned char) *p)) !=0) || (*p == '_') ||
if ((isalpha((int) ((unsigned char) *p)) != 0) || (*p == '_') ||
(*p == ':') || (c < '\0'))
{
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment