Skip to content

Commit

Permalink
Merge pull request geohot#252 from korniltsev/korniltsev/openat_fix
Browse files Browse the repository at this point in the history
[qira_program] fix strace parsing
  • Loading branch information
geohot authored Dec 9, 2020
2 parents ec5f471 + 4082fe3 commit 8a3f160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/qira_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def read_strace_file(self):
try:
return_code = int(sc.split(") = ")[1].split(" ")[0], 0)
fxn = sc.split("(")[0]
if fxn == "open" and return_code != -1:
if (fxn == "open" or fxn == "openat") and return_code != -1:
firststr = sc.split('\"')[1]
files[return_code] = firststr
elif fxn[0:4] == "mmap":
Expand Down

0 comments on commit 8a3f160

Please sign in to comment.