Improve fuzz_read coverage with predefined dictionary
This commit is contained in:
parent
60a921d4d4
commit
4187dbc0e2
2 changed files with 17 additions and 4 deletions
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
|
@ -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
13
fuzz/fuzz_read.dict
Normal 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"
|
Loading…
Add table
Reference in a new issue