commit
23ccc58d7b
|
@ -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
|
|
@ -20,7 +20,6 @@ jobs:
|
|||
DO_NO_STD: true
|
||||
- rust: nightly
|
||||
env:
|
||||
DO_FUZZ: true
|
||||
DO_BENCH: true
|
||||
AS_DEPENDENCY: true
|
||||
DO_NO_STD: true
|
||||
|
@ -29,8 +28,6 @@ jobs:
|
|||
AS_DEPENDENCY: true
|
||||
PIN_VERSIONS: true
|
||||
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
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout Toolchain
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
'0
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[8
u
|
|
@ -1 +0,0 @@
|
|||
null
|
|
@ -1 +0,0 @@
|
|||
[[]]h
|
|
@ -1 +0,0 @@
|
|||
{"vþÕê2-26518032317924925183’̶ð*ðŠªñNkkkkkkkkk‰Ràá0îã5–è Íë±<C3AB>0Ïd¥:P‹àVÖP¼ñp¼":9 }–è –ë±<C3AB>0Ïd¥:P‹àVàVÖP¼ñp¼":9 P‹àVÖP¼ñp¼":9 u–è Íë±<C3AB>0Ïd¥:P‹àVàVÖP¼ñp¼8:9 P
|
Binary file not shown.
|
@ -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àVÖP¼ñp¼3’̶FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[""7<><37>-5
|
|
@ -1 +0,0 @@
|
|||
30928
|
|
@ -1 +0,0 @@
|
|||
2.26
|
|
@ -1 +0,0 @@
|
|||
[7,5
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
2+
|
|
@ -1 +0,0 @@
|
|||
2-
|
|
@ -1 +0,0 @@
|
|||
-
|
|
@ -1 +0,0 @@
|
|||
t
|
|
@ -1 +0,0 @@
|
|||
{
|
|
@ -1 +0,0 @@
|
|||
fo
|
|
@ -1 +0,0 @@
|
|||
08j
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[[][h
|
|
@ -1 +0,0 @@
|
|||
[[4]h
|
|
@ -1 +0,0 @@
|
|||
5eee
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
2.227225
|
|
@ -1 +0,0 @@
|
|||
2.322947127462735
|
|
@ -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 }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||,ü
|
|
@ -1 +0,0 @@
|
|||
0.3329481833294518658410
|
|
@ -1 +0,0 @@
|
|||
[
|
|
@ -1 +0,0 @@
|
|||
[""]
|
|
@ -1 +0,0 @@
|
|||
-7010909841481319489
|
|
@ -1,2 +0,0 @@
|
|||
6
|
||||
<EFBFBD>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
2.32294718384932
|
|
@ -1 +0,0 @@
|
|||
[{}]<5D>
|
|
@ -1 +0,0 @@
|
|||
-0.89846310859469617
|
|
@ -1 +0,0 @@
|
|||
[[4]]荜5
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
{\9<04>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
"4ユ#@>4<>\""
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1 +0,0 @@
|
|||
"4Υ#η<>-5Η!SΚω57‰άζVg»ΐψ««««««««λ«AΨΈ7iύω™΄<ζρ¶ΖυΆN‰\u1471\u±471\u1471\u1471\u1471\u1471\u\u\
|
|
@ -1 +0,0 @@
|
|||
"4Υ#η<>-5Η\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u1471\u\u\
|
|
@ -1 +0,0 @@
|
|||
"4Υ#η<>-5Η!SΚω57‰άζVg»ΐψ««««««««λ«ζAΨΈ7iύ™΄<ζρ¶ΖρΆN‰\u1471\u1471\\ZB471\u1471\d
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[[[[HV<1E>
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
1E
|
|
@ -1 +0,0 @@
|
|||
[[[5d5
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
[["?<15><>-
|
|
@ -1 +0,0 @@
|
|||
[
"
|
|
@ -1,46 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
и
|
||||
|
||||
|
||||
т
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
и
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
[--------------------9"<22><><EFBFBD>€@
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
nuu
|
|
@ -1 +0,0 @@
|
|||
----5
|
|
@ -1 +0,0 @@
|
|||
--5
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1 +0,0 @@
|
|||
--------------------------------[""7<><37>-F
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
2.7E,KŠF¸83
|
|
@ -1 +0,0 @@
|
|||
2.7E+ ŠF¸83
|
|
@ -1 +0,0 @@
|
|||
[7,
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
0
<0A>
<0A>
<0A>
<01>
M<><4D>
<0A>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue