Skip to content

Commit

Permalink
Add -workers option to use all cores.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Jul 13, 2021
1 parent 7eef360 commit e157fd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_PR_linux_fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
run: |
cd build
mkdir corpus
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -max_total_time=60 -max_len=4096
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -workers=$(nproc) -max_total_time=120 -max_len=4096
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1056,11 +1056,12 @@ $ cmake .. -DCMAKE_CXX_COMPILER=$(which clang++) -DEXIV2_BUILD_FUZZ_TESTS=ON -DE
$ cmake --build .
```
To execute the fuzzers:
To execute a fuzzer:
```bash
cd <exiv2dir>/build-fuzz
bin/<fuzzer_name> # for example ./bin/read-metadata.cpp
mkdir corpus
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -workers=$(nproc) -max_len=4096
```
[TOC](#TOC)
Expand Down

0 comments on commit e157fd6

Please sign in to comment.