Skip to content

Commit

Permalink
Replace build script content using a HereDoc with a unique EOF (#755)
Browse files Browse the repository at this point in the history
Because sometimes build script content uses HereDoc too, which will
uses the most common EOF as end-of-file delimiter and cause conflicts.
  • Loading branch information
DonggeLiu authored Dec 17, 2024
1 parent fabf4b8 commit 087bef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/prototyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _validate_fuzz_target_and_build_script_via_compile(

# Replace fuzz target and build script in the container.
replace_file_content_command = (
'cat << "EOF" > {file_path}\n{file_content}\nEOF')
'cat << "OFG_EOF" > {file_path}\n{file_content}\nOFG_EOF')
compilation_tool.execute(
replace_file_content_command.format(
file_path=benchmark.target_path,
Expand Down

0 comments on commit 087bef0

Please sign in to comment.