-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run ossfuzz properly according to instructions #14639
Comments
@bshastry can you take a look at this? |
"Thank you for your response. With the addition of the statement protoc --proto_path=../test/tools/ossfuzz solProto.proto --cpp_out=../test/tools/ossfuzz, I was able to run the process successfully." |
After compilation, the following files were obtained. May I inquire about the origin of these solidity-fuzzing-corpus files(https://github.com/ethereum/solidity-fuzzing-corpus) ? Were they generated using the binary files shown in the image? |
Correct, they were generated using the binaries you mention. |
Would be grateful if you could make a PR with the documentation change that helped you compile the fuzzers 🙏 |
Sure, there is the PR (#14746) |
I have a few more questions and would appreciate your assistance in addressing them. |
The fuzzer is randomly mutating bytes, so syntax errors are expected. One strategy is to use a fuzzing dictionary with language keywords with the hope that random mutations with these keywords eventually leads to sane code.
The outputs of solc_mutator_ossfuzz are in a test format recognised by an internal testing tool called |
What about sol_proto_ossfuzz, how does it generate the initial protobuf grammar, and what strategy is employed in its generation? What does its output signify? I am only aware that the protobuf grammar is transformed into Solidity, followed by testing.
|
Glad to discuss further. However, this issue is perhaps not the best place for it :) Do you mind closing this issue if you are satisfied with the outcome (documentation update)? |
Sure. Thank you very much. |
Page
https://github.com/ethereum/solidity/tree/develop/test/tools/ossfuzz
Abstract
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/libfuzzer.cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release} ..
when I follow this instruction to run, there is a bug:
CMake Error at test/tools/ossfuzz/CMakeLists.txt:183 (add_executable):
Cannot find source file:
there is no file named solProto.pb.cc in solidity/test/tools/ossfuzz/
Pull request
The text was updated successfully, but these errors were encountered: