Merge pull request #664 from RCasatta/fuzz_ci

Improve Fuzz CI
This commit is contained in:
Matt Corallo 2021-09-29 23:47:08 +00:00 committed by GitHub
commit 23ccc58d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
304 changed files with 53 additions and 277 deletions

53
.github/workflows/fuzz.yml vendored Normal file
View File

@ -0,0 +1,53 @@
name: Fuzz
on: [push, pull_request]
jobs:
fuzz:
runs-on: ubuntu-20.04
env:
HFUZZ_BUILD_ARGS: "--features honggfuzz_fuzz"
strategy:
fail-fast: false
matrix:
fuzz_target: [deser_net_msg, deserialize_address, deserialize_amount, deserialize_block, deserialize_psbt, deserialize_script, deserialize_transaction, outpoint_string, uint128_fuzz]
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-fuzz
with:
path: |
~/.cargo/bin
fuzz/target
target
key: cache-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: cargo install honggfuzz
if: steps.cache-fuzz.outputs.cache-hit != 'true'
- run: echo "HFUZZ_RUN_ARGS=\"--run_time 30 --exit_upon_crash -v -f hfuzz_input/${{ matrix.fuzz_target }}/input\"" >> $GITHUB_ENV
- name: fuzz
run: cd fuzz && cargo hfuzz run ${{ matrix.fuzz_target }}
- run: echo "${{ matrix.fuzz_target }}.rs" >executed_${{ matrix.fuzz_target }}
- uses: actions/upload-artifact@v2
with:
name: executed_${{ matrix.fuzz_target }}
path: executed_${{ matrix.fuzz_target }}
verify-execution:
needs: fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- name: Display structure of downloaded files
run: ls -R
- run: find executed_* -type f -exec cat {} + | sort > executed
- run: ls fuzz/fuzz_targets | sort > expected
- run: diff expected executed

View File

@ -20,7 +20,6 @@ jobs:
DO_NO_STD: true DO_NO_STD: true
- rust: nightly - rust: nightly
env: env:
DO_FUZZ: true
DO_BENCH: true DO_BENCH: true
AS_DEPENDENCY: true AS_DEPENDENCY: true
DO_NO_STD: true DO_NO_STD: true
@ -29,8 +28,6 @@ jobs:
AS_DEPENDENCY: true AS_DEPENDENCY: true
PIN_VERSIONS: true PIN_VERSIONS: true
steps: steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- name: Checkout Crate - name: Checkout Crate
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Checkout Toolchain - name: Checkout Toolchain

View File

@ -1 +0,0 @@
{"vþÕê2-26518032317924925183̶ð*ðŠªñNkkkkkkkkk‰Ràá0îã5è Íë±<C3AB>0Ïd¥:PàVÖP¼ñp¼":9 }–è ë±<C3AB>0Ïd¥:PàVÖP¼ñp¼":9 PàVÖP¼ñp¼":9 uè Íë±<C3AB>0Ïd¥:PàVÖP¼ñp¼8:9 P

View File

@ -1,2 +0,0 @@
{"vþ0Ïd¥:PàVÖP¼ñp¼":9 ,"ëî83622040ðŠªñNkkkkkkkkk‰Ràávîã5è Íë±<C3AB>0Ïd¥:PàVÖP¼ñp¼":9 -7858362224003565858VÖP¼ñp¼":9 v3ZÆr²Û¦”²º(
Á?­šëÔ*ÊefÅ9i"¹*(Ÿ³r¾Ü‡Ø]â1ç§ÙY¼":9 uÉÍë±<C3AB>0Ïd¥:PàVÖP¼ñp¼3̶FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

View File

@ -1,4 +0,0 @@
{"vþ0Ïd¥:PàVÖh Pu_IðB¥”—ŸAÆ¿Xš{?a0ÆGûlòºw#îg:³µ¦N±Ò<C2B1>I^¸ØYÉËOéùnæ~X™ŒÙj¡o£ ÏP¼ñp¼":9 ,"ëî836220tàÐQî
®ËÑûTO'2ªE O½Âü d†Ðò@@wŽY§WZ$ÌY(1Ý=yµ=#iÈx©ž*,ÏD÷‰Ú¢º—ÇbY'E¦Ä<C2A6>…2}#†'šJa¿ÑõâåL-;r]Æüq¦o¢k…±Î줬.üb¡ÂÅ~æ¼Æ40ðŠªñNkkkkkkkkk‰Ràávîã5è Íë±<C3AB>08673586266809954039-P¼ñp¼":{"vþ0Ïd¥:PàVÖh Pu_IðB¥”—ŸAÆ¿Xš{?a0ÆGûlòºw#îg:³µ¦N±Ò<C2B1>I^¸ØYÉËOéùnæ~X™ŒÙj¡o£ ÏP¼ñp¼":9 ,"ëî836220tàÐQî
®ËÑûTO'2ªE O½Âü d†Ðò@@wŽY§WZ$ÌY(1Ý=yµ=#iÈx©ž*,ÏD÷‰Ú¢º—ÇbY'E¦Ä<C2A6>…2}#†'šJa¿ÑõâåL-;r]Æüq¦o¢k…±Î줬.üb¡ÂÅ~æ¼Æ40ðŠªñNkkkkkkkkk‰Ràávîã5è Íë±<C3AB>08673586266809954039-P¼ñp¼":{"vþ0Ïd¥:PàVÖh Pu_IðB¥”—ŸAÆ¿Xš{?a0ÆGûlòºw#îg:³µ¦N±Ò<C2B1>I^¸ØYÉËOéùnæ~X™ŒÙj¡o£ ÏP¼ñp¼":9 ,"ëî836220tàÐQî
®ËÑûTO'2ªE O½Âü d†Ðò@@wŽY§WZ$ÌY(1Ý=yµ=#iÈx©ž*,ÏD÷‰Ú¢º—ÇbY'E¦Ä<C2A6>…2}#†'šJa¿ÑõâåL-;r]Æüq¦o¢k…±Î줬.üb¡ÂÅ~æ¼Æ40ðŠªñNkkkkkkkkk‰Ràávîã5è Íë±<C3AB>08673586266809954039-P¼ñp¼":9 }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||, ü

View File

@ -1 +0,0 @@
"4Υ<>-5Η!SΚω57‰άζVg»ΐψ««««««««λ«AΨΈ7iύω™΄<ζρ¶ΖυΆN‰\u1471\u±471\u1471\u1471\u1471\u1471\u\u\

View File

@ -1 +0,0 @@
"4Υ<>-5Η\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u\u\

View File

@ -1 +0,0 @@
"4Υ<>-5Η!SΚω57‰άζVg»ΐψ««««««««λ«ζAΨΈ7™΄<ζρ¶ΖρΆN‰\u1471\u1471\\ZB471\u1471\d

View File

@ -1 +0,0 @@
[--------------------9"<22><><EFBFBD>€@

View File

@ -1 +0,0 @@
--------------------------------[""7<><37>-F

View File

@ -1 +0,0 @@
0 <0A> <0A> <0A> <01> M<><4D> <0A>

Some files were not shown because too many files have changed in this diff Show More