This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Add Polyjuice Generator Fuzzer and test contracts on x86 with sanitizers #49
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[debug] success => 279 LLVMSymbolizer: error reading file: No such file or directory ================================================================= ==1038102==ERROR: LeakSanitizer: detected memory leaks Direct leak of 6770 byte(s) in 286 object(s) allocated from: #0 0x49908d in malloc /home/nnelson/Documents/llvm-project/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3 #1 0x54a4f0 in hex2bin(char const*, unsigned char**, unsigned long*) /home/flouse/godwoken-polyjuice/polyjuice-tests/fuzz/../../c/tests/./test_utils.h:11:21 #2 0x7ffcb5cfcea7 ([stack]+0x1fea7) Direct leak of 5720 byte(s) in 286 object(s) allocated from: #0 0x49908d in malloc /home/nnelson/Documents/llvm-project/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3 #1 0x54a4f0 in hex2bin(char const*, unsigned char**, unsigned long*) /home/flouse/godwoken-polyjuice/polyjuice-tests/fuzz/../../c/tests/./test_utils.h:11:21 #2 0x4084ff (/home/flouse/godwoken-polyjuice/polyjuice-tests/fuzz/build/test_rlp+0x4084ff) Direct leak of 5720 byte(s) in 286 object(s) allocated from: #0 0x49908d in malloc /home/nnelson/Documents/llvm-project/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3 #1 0x54a4f0 in hex2bin(char const*, unsigned char**, unsigned long*) /home/flouse/godwoken-polyjuice/polyjuice-tests/fuzz/../../c/tests/./test_utils.h:11:21 #2 0x7f5fc8bf11af (/lib/x86_64-linux-gnu/libstdc++.so.6+0x2151af) SUMMARY: AddressSanitizer: 18210 byte(s) leaked in 858 allocation(s).
* compile with -DNO_DEBUG_LOG to erase debug logs
- sanitize=address,undefined
Flouse
changed the title
Fuzz v1
Add Polyjuice Generator Fuzzer and test contracts on x86 with sanitizers
Jul 1, 2021
use evmc_free_result_memory to release the evmc_result memory
TheWaWaR
approved these changes
Jul 2, 2021
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These three file were created to simulate
gw_syscalls
:deps/godwoken-scripts/c/generator_utils.h
)FuzzTest CI status
Polyjuice Generator Fuzzer
cd polyjuice-tests/fuzz make build/polyjuice_generator_fuzzer ./build/polyjuice_generator_fuzzer
General Algorithm
test_contracts on x86 with sanitizers
cd polyjuice-tests/fuzz make build/test_contracts ./build/test_contracts make build/test_rlp ./build/test_rlp
Coverage Report[WIP]
TBD