Skip to content

Commit

Permalink
Ignore resource directory entries that with offset == 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Apr 19, 2024
1 parent b680038 commit 1242223
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libyara/modules/pe/pe.c
Expand Up @@ -457,6 +457,9 @@ static int _pe_iterate_resources(

for (i = 0; i < total_entries; i++)
{
if (yr_le32toh(entry->OffsetToData) == 0)
continue;

switch (rsrc_tree_level)
{
case 0:
Expand Down

0 comments on commit 1242223

Please sign in to comment.