-
Notifications
You must be signed in to change notification settings - Fork 38.6k
fuzz: Add missing CheckTransaction before CheckTxInputs #21970
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
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.
Concept ACK
Please excuse my nosiness, I can't see the error but makes sense to me. We'd want to call CheckTransaction() to make sure it's well-formed first 🤷
It should be possible to reproduce with the reproducer input in the OP |
|
Tested fae4ee5. Was able to reproduce with master (c857148)Verified there is no crash with fae4ee5 |
|
Of course you can reproduce this inside Docker, if you want, but the recommended way to reproduce is to use "your build and test system" (https://google.github.io/oss-fuzz/advanced-topics/reproducing/#fuzz-target-bugs). This would be https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md . Docker can always be used as a backup in case it it not trivial to build with the sanitizers for the given architecture. |
|
cr ACK fae4ee5: patch looks correct :) |
This bug was introduced by myself in commit eeee8f5 (#21553)
Reproducer: https://github.com/bitcoin/bitcoin/files/6492249/clusterfuzz-testcase-minimized-coins_view-6109460079706112.log
Hopefully fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34301