-
Notifications
You must be signed in to change notification settings - Fork 37.8k
tests: Add fuzzing harness for CNode #19067
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
Conversation
c50dee8
to
7960082
Compare
Concept ACK |
7960082
to
0869918
Compare
1e35710
to
2206f16
Compare
Anything left to do here? :) The changes are limited to |
2206f16
to
a22b42e
Compare
@Crypt-iQ Thanks for reporting. Should be fixed now. Would you mind retrying? :) |
@practicalswift Fuzzing with clang-10 libfuzzer. afl-gcc/g++ can also build on a22b42e. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30 hour fuzzing coverage for this harness (libfuzzer --with-sanitizers=address,fuzzer,undefined
): https://crypt-iq.github.io/cnode_cov/src/index.html
Just minor comments from me. Two more functions could be fuzzed:
bool IsPeerAddrLocalGood(CNode *pnode)
void AdvertiseLocal(CNode *pnode)
Tested ACK a22b42e |
Ready for merge? |
needs rebase |
a22b42e
to
cc26fab
Compare
@jb55 @Crypt-iQ @MarcoFalke Thanks a lot for reviewing. Now rebased. Please re-review :) |
cc26fab tests: Add fuzzing harness for CNode (practicalswift) Pull request description: Add fuzzing harness for `CNode`. See [`doc/fuzzing.md`](https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md) for information on how to fuzz Bitcoin Core. Don't forget to contribute any coverage increasing inputs you find to the [Bitcoin Core fuzzing corpus repo](https://github.com/bitcoin-core/qa-assets). Happy fuzzing :) Top commit has no ACKs. Tree-SHA512: e6330e5de5b2eb44d3bd91a885e69ebb625bfd1cb2499338aeb3997ff0268848434e651126fe68a8cadd7235c391e61a40d6408ee26e457faf73572e0c375f6b
Summary: Backport of core [[bitcoin/bitcoin#19067 | PR19067]]. Depends on D9192. Test Plan: ninja bitcoin-fuzzers ./src/test/fuzz/net <path_to_corpus> Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D9193
cc26fab tests: Add fuzzing harness for CNode (practicalswift) Pull request description: Add fuzzing harness for `CNode`. See [`doc/fuzzing.md`](https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md) for information on how to fuzz Bitcoin Core. Don't forget to contribute any coverage increasing inputs you find to the [Bitcoin Core fuzzing corpus repo](https://github.com/bitcoin-core/qa-assets). Happy fuzzing :) Top commit has no ACKs. Tree-SHA512: e6330e5de5b2eb44d3bd91a885e69ebb625bfd1cb2499338aeb3997ff0268848434e651126fe68a8cadd7235c391e61a40d6408ee26e457faf73572e0c375f6b
Add fuzzing harness for
CNode
.See
doc/fuzzing.md
for information on how to fuzz Bitcoin Core. Don't forget to contribute any coverage increasing inputs you find to the Bitcoin Core fuzzing corpus repo.Happy fuzzing :)