You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Docker shell
$ cd /src/solidity
$ rm -rf fuzzer-build && mkdir fuzzer-build && cd fuzzer-build
## Compile protobuf C++ bindings
$ protoc --proto_path=../test/tools/ossfuzz yulProto.proto --cpp_out=../test/tools/ossfuzz
$ protoc --proto_path=../test/tools/ossfuzz abiV2Proto.proto --cpp_out=../test/tools/ossfuzz
## Run cmake
$ export CC=clang CXX=clang++
$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/libfuzzer.cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release} ..
$ make ossfuzz ossfuzz_proto ossfuzz_abiv2 -j
There should be another protoc command for generating solProto.pb.cc and solProto.pb.h, otherwise the subsequent cmake will fail.
This is the correct command set:
haoyang9804
changed the title
Commands in OSSFuzz README for building the fuzzer is incomplete
Commands in OSSFuzz README for building the fuzzer are incomplete
Apr 30, 2024
Thanks for pointing out! You are right. Would you be interested in contributing the solution in the post above as a PR? I would be happy to review and help get it merged 🙏
Thanks for pointing out! You are right. Would you be interested in contributing the solution in the post above as a PR? I would be happy to review and help get it merged 🙏
No problem. I'll submit a pr in the next few days.
Check the following command in OSSFuzz's readme:
There should be another protoc command for generating solProto.pb.cc and solProto.pb.h, otherwise the subsequent cmake will fail.
This is the correct command set:
The text was updated successfully, but these errors were encountered: