bi=MagickTrue;
resource_info.area=request;
limit=resource_info.area_limit;
+ if ((limit == MagickResourceInfinity) || (size < limit))
+ status=MagickTrue;
break;
}
case DiskResource:
bi=MagickTrue;
resource_info.height=request;
limit=resource_info.height_limit;
+ if ((limit == MagickResourceInfinity) || (size < limit))
+ status=MagickTrue;
break;
}
case ListLengthResource:
{
resource_info.list_length=request;
limit=resource_info.list_length_limit;
- break;
- }
- case ThreadResource:
- {
- limit=resource_info.thread_limit;
+ if ((limit == MagickResourceInfinity) || (size < limit))
+ status=MagickTrue;
break;
}
case MapResource:
current=resource_info.memory;
break;
}
+ case ThreadResource:
+ {
+ limit=resource_info.thread_limit;
+ if ((limit == MagickResourceInfinity) ||
+ (resource_info.thread < (MagickOffsetType) limit))
+ status=MagickTrue;
+ break;
+ }
case ThrottleResource:
{
limit=resource_info.throttle_limit;
+ if ((limit == MagickResourceInfinity) ||
+ (resource_info.throttle < (MagickOffsetType) limit))
+ status=MagickTrue;
break;
}
case TimeResource:
bi=MagickTrue;
resource_info.width=request;
limit=resource_info.width_limit;
+ if ((limit == MagickResourceInfinity) || (size < limit))
+ status=MagickTrue;
break;
}
default:
}
default: ;
}
- if ((limit == MagickResourceInfinity) || (size < limit))
- status=MagickTrue;
if (IsEventLogging() != MagickFalse)
{
char