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

Commit

Permalink
Bug in afl_collect.py fixed that prevented other tools from starting
Browse files Browse the repository at this point in the history
if gdb executable is not present (reported by Henri Salo).
  • Loading branch information
rc0r committed Nov 29, 2017
1 parent 6f603cd commit 86f2f05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions afl_utils/afl_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@

# Path to gdb binary
gdb_binary = shutil.which("gdb")
if gdb_binary is None:
print_err("gdb binary not found!")
sys.exit(1)


# afl-collect database table spec
db_table_spec = """`Sample` TEXT PRIMARY KEY NOT NULL, `Classification` TEXT NOT NULL,
`Classification_Description` TEXT NOT NULL, `Hash` TEXT, `User_Comment` TEXT"""


def check_gdb():
if gdb_binary is None:
print_err("gdb binary not found!")
sys.exit(1)


def show_info():
print(clr.CYA + "afl-collect " + clr.BRI + "%s" % afl_utils.__version__ + clr.RST + " by %s" % afl_utils.__author__)
print("Crash sample collection and processing utility for afl-fuzz.")
Expand Down Expand Up @@ -511,4 +514,5 @@ def main(argv):


if __name__ == "__main__":
check_gdb()
main(sys.argv)
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Version 1.34a
Denis Kasak).
- Improved bug fix for #34 in afl-multicore (suggested by Bhargava
Shastry).
- Bug in afl_collect.py fixed that prevented other tools from starting
if gdb executable is not present (reported by Henri Salo).

Version 1.33a

Expand Down

0 comments on commit 86f2f05

Please sign in to comment.