mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-11 22:49:58 +00:00
Abort the collection of resources when the MAX_RESOURCES is reached.
This commit is contained in:
@@ -760,7 +760,7 @@ static int pe_collect_resources(
|
||||
{
|
||||
// Don't collect too many resources.
|
||||
if (pe->resources >= MAX_RESOURCES)
|
||||
return RESOURCE_CALLBACK_CONTINUE;
|
||||
return RESOURCE_CALLBACK_ABORT;
|
||||
|
||||
yr_set_integer(
|
||||
yr_le32toh(rsrc_data->OffsetToData),
|
||||
|
||||
Reference in New Issue
Block a user