mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-03 22:03:01 +01:00
fa8d56f9f0fuzz: Reject too large descriptor leaf sizes in scriptpubkeyman target (MarcoFalke)fabac1b395fuzz: Reject some more "expensive" descriptors in the scriptpubkeyman target (MarcoFalke)333333356ffuzz: [refactor] Use std::span over FuzzBufferType in descriptor utils (MarcoFalke) Pull request description: Accepting "expensive" fuzz inputs which have no real use-case is problematic, because it prevents the fuzz engine from spending time on the next useful fuzz input. Also, this may lead to problems, where the fuzz target can not be run at all on some platforms. See https://github.com/bitcoin/bitcoin/issues/34110. Fixes https://github.com/bitcoin/bitcoin/issues/34110 by rejecting those useless and expensive inputs (via the third commit) Can be tested by running the input and checking the time before and after the changes here: ``` curl -fLO '1cf91e0c6b' FUZZ=scriptpubkeyman time ./bld-cmake/bin/fuzz ./1cf91e0c6bfff9dafcd4db5b0ba36b1e906f4cf5 ``` Also, the second commit fixes https://github.com/bitcoin/bitcoin/issues/31066. ACKs for top commit: brunoerg: code review ACKfa8d56f9f0marcofleon: ACKfa8d56f9f0sipa: ACKfa8d56f9f0Tree-SHA512: e683cb89c3047358add438508c173f1cf647827bcadc3564ad42c757e4c99b8e9b777213fd38ebeb46f4c89a72363e0642f47435e20df3960eaeb5b8257dbd32