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

Commit

Permalink
Merge pull request #141 from luongnt95/reentrancy_bug
Browse files Browse the repository at this point in the history
Small fix in reentrancy bug
  • Loading branch information
luongnt95 authored Jul 14, 2017
2 parents 6be6762 + f1d2efd commit f29ad98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def check_reentrancy_bug(path_conditions_and_vars, global_state):
# check if a var is global
if var_name.startswith("Ia_store_"):
storage_key = var_name.split("Ia_store_")[1]
if storage_key in global_state["Ia"]:
new_path_condition.append(var == global_state["Ia"][storage_key])
if int(storage_key) in global_state["Ia"]:
new_path_condition.append(var == global_state["Ia"][int(storage_key)])
log.info("=>>>>>> New PC: " + str(new_path_condition))

solver = Solver()
Expand Down

0 comments on commit f29ad98

Please sign in to comment.