Skip to content

Commit e85a4d4

Browse files
authored
Merge pull request #39 from XavierCooney/xavc/helper-nul-fix
Prevent crash in helper.py when program outputs null bytes
2 parents 8e43792 + 84e2d52 commit e85a4d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def run_helper(tests, parameters, args):
5353
"autotest_directory": args.autotest_directory,
5454
}
5555
for k, v in helper_info.items():
56-
os.environ["HELPER_" + k.upper()] = v
56+
os.environ["HELPER_" + k.upper()] = v.replace('\x00', '\\x00')
5757
os.environ["HELPER_JSON"] = json.dumps(helper_info, separators=(",", ":"))
5858

5959
if args.debug:

0 commit comments

Comments
 (0)