Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Commit

Permalink
Added quotes around sample filenames used in generated gdb script
Browse files Browse the repository at this point in the history
to keep gdb happy with fancy sample filenames.
  • Loading branch information
rc0r committed Feb 24, 2017
1 parent 6cc2073 commit 4ef8105
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions afl_utils/afl_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ def generate_gdb_exploitable_script(script_filename, sample_index, target_cmd, s
run_cmd = "run " + gdb_run_cmd + "< @@" + "\n"

if intermediate:
run_cmd = run_cmd.replace("@@", f['input'])
run_cmd = run_cmd.replace("@@", "'{}'".format(f['input']))
else:
run_cmd = run_cmd.replace("@@", os.path.join(sample_index.output_dir, f['output']))
run_cmd = run_cmd.replace("@@", os.path.join(sample_index.output_dir, "'{}'".format(f['output'])))

fd.writelines(run_cmd)
fd.writelines("exploitable\n")
Expand Down
11 changes: 8 additions & 3 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

Version 1.33a

- Added `--cmin-qemu`, `--tmin-qemu` options for QEMU mode support to afl-minimize (suggested by Isaac).
- Made processing timeout for sample verification phase configurable in afl-collect.
- Usage of python 3 virtualenv explicitly documented in README (Henri Salo).
- Added `--cmin-qemu`, `--tmin-qemu` options for QEMU mode support
to afl-minimize (suggested by Isaac).
- Made processing timeout for sample verification phase configurable
in afl-collect.
- Usage of python 3 virtualenv explicitly documented in README
(Henri Salo).
- Added quotes around sample filenames used in generated gdb script
to keep gdb happy with fancy sample filenames.

Version 1.32a

Expand Down

0 comments on commit 4ef8105

Please sign in to comment.