IndexError: string index out of range in line 905
YourButterfly opened this issue · 2 comments
YourButterfly commented
for part in cargs.coverage_cmd.split(' '):
if part[0] == ' ' or part[0] == '-':
continue
if (which(part)):
found_exec = True
if not cargs.disable_gcov_check and is_bin_gcov_enabled(part, cargs):
found_code_cov_binary = True
break
if coverage_cmd has multi space, the value 'part' will get a '' and making binary exit.like this
afl-cov -d /out --live --coverage-cmd "LD_LIBRARY_PATH=../lib/ ./tiffinfo -D AFL_FILE" --code-dir /src/libtiff --genhtml-per-min 1440 --background
Traceback (most recent call last):
File "/usr/local/bin/afl-cov", line 1236, in <module>
sys.exit(main())
File "/usr/local/bin/afl-cov", line 76, in main
if not validate_cargs(cargs):
File "/usr/local/bin/afl-cov", line 962, in validate_cargs
if not is_gcov_enabled(cargs):
File "/usr/local/bin/afl-cov", line 931, in is_gcov_enabled
if part[0] == ' ' or part[0] == '-':
IndexError: string index out of range
YourButterfly commented
mrash commented
Fixed, thanks!