Skip to content

Commit

Permalink
Fix bug in dotnet module.
Browse files Browse the repository at this point in the history
Found by Vitaly Kamluk (@vkamluk)
  • Loading branch information
plusvic committed Apr 30, 2019
1 parent ab99479 commit 72c109e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyara/modules/dotnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ void dotnet_parse_tilde_2(

for (i = 0; i < num_rows; i++)
{
if (!fits_in_pe(pe, table_offset, row_size))
if (!fits_in_pe(pe, row_ptr, row_size))
break;

assemblyref_table = (PASSEMBLYREF_TABLE) row_ptr;
Expand Down

0 comments on commit 72c109e

Please sign in to comment.