Repository navigation
fuzz: wallet, add target for CoinControl - #27902
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
brunoerg
left a comment
There was a problem hiding this comment.
lf you remove the trailing whitespace in new lines, lint will be happy:
diff --git a/src/wallet/test/fuzz/coincontrol.cpp b/src/wallet/test/fuzz/coincontrol.cpp
@@ -0,0 +1,89 @@
+
+FUZZ_TARGET_INIT(coincontrol, initialize_coincontrol)
+
+ // Condition to avoid the assertion in GetInputWeight74be54a to
241ca23
Compare
|
Force pushed addressing @MarcoFalke and @brunoerg reviews.
|
kevkevinpal
left a comment
There was a problem hiding this comment.
crACK 241ca232dcd0c38169423360de367caa9ee3f49b
checked that we're covering all the functions in ./src/wallet/coincontrol.h and ./src/wallet/coincontrol.cpp
have not yet run the fuzz tests on my local yet
241ca23 to
40b333e
Compare
|
Force pushed addressing @kevkevinpal review.
|
|
reACK 40b333e |
|
lgtm ACK 40b333e |
|
Did the author or someone else run this with the ubsan+integer sanitizer to check for any issues before merge? |
dergoegge
left a comment
There was a problem hiding this comment.
ACK 40b333e
Did the author or someone else run this with the ubsan+integer sanitizer to check for any issues before merge?
Yes I did for ~15min on 64 cores. Should be enough given that there isn't much code under test (it plateaued pretty quickly).
|
ACK 40b333e |
This PR adds fuzz coverage for
wallet/coincontrol.Motivation: Issue #27272
The idea is to create different/unique instances of
COutPointby placing it inside theCallOneOffunction, which may or may not be consumed by all of theCoinControlfile's methods.This is my first PR on Bitcoin Core, and I will try my best to address any reviews/changes ASAP. I'm also working on fuzz harness files for other files in the wallet and plan to open PR for them soon.