diff --git a/src/datalog/binary/pe/pe_binaries.dl b/src/datalog/binary/pe/pe_binaries.dl index 52067e25..1d21d9dd 100644 --- a/src/datalog/binary/pe/pe_binaries.dl +++ b/src/datalog/binary/pe/pe_binaries.dl @@ -119,7 +119,8 @@ symbol(EA,0,"NOTYPE","GLOBAL","DEFAULT",0,"export",as(Ordinal,unsigned),Function is_padding(EA+1):- binary_format("PE"), instruction_get_operation(EA,"INT3"), - instruction_get_operation(EA+1,"INT3"). + instruction_get_operation(EA+1,"INT3"), + instruction_get_operation(EA+2,"INT3"). /** Non-destructive multi-byte NOPs used by the MSVC compiler. (See `listing.inc'.) diff --git a/src/datalog/code_inference.dl b/src/datalog/code_inference.dl index c48afb1a..4ead19e6 100644 --- a/src/datalog/code_inference.dl +++ b/src/datalog/code_inference.dl @@ -286,7 +286,8 @@ invalid(EA+1,"INT3"):- binary_isa("X64") ), instruction_get_operation(EA,"INT3"), - instruction_get_operation(EA+1,"INT3"). + instruction_get_operation(EA+1,"INT3"), + instruction_get_operation(EA+2,"INT3"). .decl possible_ea(EA:address) inline