Skip to content

Commit

Permalink
prevent crash in helper.py when program outputs null bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierCooney committed Aug 20, 2024
1 parent 8e43792 commit 84e2d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_helper(tests, parameters, args):
"autotest_directory": args.autotest_directory,
}
for k, v in helper_info.items():
os.environ["HELPER_" + k.upper()] = v
os.environ["HELPER_" + k.upper()] = v.replace('\x00', '\\x00')
os.environ["HELPER_JSON"] = json.dumps(helper_info, separators=(",", ":"))

if args.debug:
Expand Down

0 comments on commit 84e2d52

Please sign in to comment.