Improve fuzz_read coverage with predefined dictionary

This commit is contained in:
Chris Hennick 2024-02-28 20:09:41 -08:00
parent 60a921d4d4
commit 4187dbc0e2
2 changed files with 17 additions and 4 deletions

View file

@ -96,7 +96,7 @@ jobs:
cargo fuzz build fuzz_read
- name: run fuzz
run: |
cargo fuzz run fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000
cargo fuzz run fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000 -dict=fuzz/fuzz_read.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -122,7 +122,7 @@ jobs:
cargo fuzz build --no-default-features fuzz_read
- name: run fuzz
run: |
cargo fuzz run fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000
cargo fuzz run fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000 -dict=fuzz/fuzz_read.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -148,7 +148,7 @@ jobs:
cargo fuzz build fuzz_write
- name: run fuzz
run: |
cargo fuzz run fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=10000 -max_len=5000000000
cargo fuzz run fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=50000 -max_len=5000000000
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -174,7 +174,7 @@ jobs:
cargo fuzz build --no-default-features fuzz_write
- name: run fuzz
run: |
cargo fuzz run fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=10000 -max_len=5000000000
cargo fuzz run fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=50000 -max_len=5000000000
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3

13
fuzz/fuzz_read.dict Normal file
View file

@ -0,0 +1,13 @@
"PK"
"KP"
"PK\x05\x06"
"PK\x01\x02"
"PK\x03\x04"
"\x07\x05KP"
"\x06\x05KP"
"\x05\x05KP"
"\x01\x01KP"
"\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00"
"\xFF\xFF\xFF\xFF\xFF\xFF"
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF"