Skip to content

Commit

Permalink
Fix a typo filename comparison in the fuzzer (google#139)
Browse files Browse the repository at this point in the history
* Fix wrong default README filename fron 'README.txt' to 'README.testcases'

* Update afl_driver.cpp url of llvm-project
  • Loading branch information
u1f383 authored Jun 8, 2021
1 parent fab1ca5 commit 6103710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ script:
# Test fuzzing libFuzzer targets and trace-pc-guard instrumentation.
- clang -g -fsanitize-coverage=trace-pc-guard ./test-libfuzzer-target.c -c
- clang -c -w llvm_mode/afl-llvm-rt.o.c
- wget https://raw.githubusercontent.com/llvm/llvm-project/master/compiler-rt/lib/fuzzer/afl/afl_driver.cpp
- wget https://raw.githubusercontent.com/llvm/llvm-project/main/compiler-rt/lib/fuzzer/afl/afl_driver.cpp
- clang++ afl_driver.cpp afl-llvm-rt.o.o test-libfuzzer-target.o -o test-libfuzzer-target
- timeout --preserve-status 5s ./afl-fuzz -i seeds -o out/ -- ./test-libfuzzer-target
- cd qemu_mode
Expand Down
2 changes: 1 addition & 1 deletion afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ static void read_testcases(void) {

/* This also takes care of . and .. */

if (!S_ISREG(st.st_mode) || !st.st_size || strstr(fn, "/README.txt")) {
if (!S_ISREG(st.st_mode) || !st.st_size || strstr(fn, "/README.testcases")) {

ck_free(fn);
ck_free(dfn);
Expand Down

0 comments on commit 6103710

Please sign in to comment.