Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Fix assertion detection in function call
Browse files Browse the repository at this point in the history
  • Loading branch information
luongnt95 committed Oct 8, 2017
1 parent dc8107b commit 7f61fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oyente/symExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ def sym_exec_ins(params):
elif instr_parts[0] == "ASSERTFAIL":
if source_map:
source_code = source_map.find_source_code(global_state["pc"])
if func_call == -1 and "assert" in source_code:
if "assert" in source_code:
global_problematic_pcs["assertion_failure"].append(Assertion(global_state["pc"], models[-1]))
elif func_call != -1:
global_problematic_pcs["assertion_failure"].append(Assertion(func_call, models[-1]))
Expand Down

0 comments on commit 7f61fbd

Please sign in to comment.