mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-06 10:42:46 +01:00
fb9faffae3extended keys: fail to derive too large depth instead of wrapping around (Antoine Poinsot)8dc6670ce1descriptor: don't assert success of extended key derivation (Antoine Poinsot)50cfc9e761(pubk)key: mark Derive() as nodiscard (Antoine Poinsot)0ca258a5acdescriptor: never ignore the return value when deriving an extended key (Antoine Poinsot)d3599c22bdspkman: don't ignore the return value when deriving an extended key (Antoine Poinsot) Pull request description: We would previously silently wrap the derived child's depth back to `0`. Instead, explicitly fail when trying to derive an impossible depth, and handle the error in callers. An extended fuzzing corpus of `descriptor_parse` triggered this behaviour, which was reported by MarcoFalke. Fixes #25751. ACKs for top commit: achow101: re-ACKfb9faffae3instagibbs: utACKfb9faffae3Tree-SHA512: 9f75c23572ce847239bd15e5497df2960b6bd63c61ea72347959d968b5c4c9a4bfeee284e76bdcd7bacbf9eeb70feee85ffd3e316f353ca6eca30e93aafad343
13 KiB
13 KiB