Skip to content

Commit

Permalink
Default number_of_imported_functions to 0. (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsBSD authored and plusvic committed Aug 23, 2021
1 parent 9eb25c3 commit f844881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libyara/modules/pe/pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@ static IMPORTED_DLL* pe_parse_imports(PE* pe)

// Default to 0 imports until we know there are any
set_integer(0, pe->object, "number_of_imports");
set_integer(0, pe->object, "number_of_imported_functions");

directory = pe_get_directory_entry(pe, IMAGE_DIRECTORY_ENTRY_IMPORT);

Expand Down

0 comments on commit f844881

Please sign in to comment.