File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash -eu
22
3- # Install grpcio-tools first so generate_proto.py can compile the protobufs.
43pip3 install grpcio-tools
54
6- # Generate the protobuf Python bindings required by the SDK.
75python3 generate_proto.py
86
9- # Install the SDK and all runtime dependencies (uses current CFLAGS/CXXFLAGS so
10- # any C extensions such as grpcio and cryptography are built with the right flags).
117pip3 install .
128
13- # Install Atheris (the Python fuzzing engine) and PyInstaller (used to produce
14- # self-contained fuzzer executables that ClusterFuzzLite can run reliably).
159pip3 install atheris pyinstaller
1610
17- # Build every *_fuzzer.py target found in the .clusterfuzzlite directory.
1811find " $SRC /hiero-sdk-python/.clusterfuzzlite" -name ' *_fuzzer.py' -print0 | while IFS= read -r -d ' ' fuzzer; do
1912 fuzzer_basename=$( basename -s .py " $fuzzer " )
2013 fuzzer_package=" ${fuzzer_basename} .pkg"
Original file line number Diff line number Diff line change @@ -15,10 +15,8 @@ def TestOneInput(data: bytes) -> None:
1515 """Feed arbitrary bytes into ContractFunctionParameters encoding paths."""
1616 fdp = atheris .FuzzedDataProvider (data )
1717 choice = fdp .ConsumeIntInRange (0 , 9 )
18-
1918 try :
2019 params = ContractFunctionParameters ()
21-
2220 if choice == 0 :
2321 params .add_bool (fdp .ConsumeBool ())
2422 elif choice == 1 :
@@ -45,9 +43,7 @@ def TestOneInput(data: bytes) -> None:
4543 else :
4644 count = fdp .ConsumeIntInRange (0 , 8 )
4745 params .add_bytes32_array ([fdp .ConsumeBytes (32 ) for _ in range (count )])
48-
4946 params .to_bytes ()
50-
5147 except Exception :
5248 pass
5349
You can’t perform that action at this time.
0 commit comments