Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Lookup BPF function only if its not a syscall (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored Sep 12, 2022
1 parent fd258bc commit 9192664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ impl<'a, 'b, V: Verifier, E: UserDefinedError, I: InstructionMeter> Interpreter<
}
}

if calls {
if calls && !resolved {
if let Some(target_pc) = executable.lookup_bpf_function(insn.imm as u32) {
resolved = true;

Expand Down

0 comments on commit 9192664

Please sign in to comment.