HomePhabricator

[bitcoinsuite-core] Fix a potential out of bounds access during address decoding

Description

[bitcoinsuite-core] Fix a potential out of bounds access during address decoding

Summary: The code expects the checksum to be present and will cause the slice to access out of bounds otherwise. This diff changes to logic to verify the checksum first so this can't happen anymore.

Test Plan:

ninja check-crate-bitcoinsuite-core

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D18121

Details

Provenance
FabienAuthored on May 20 2025, 22:08
FabienPushed on May 21 2025, 13:03
Reviewer
Restricted Project
Differential Revision
D18121: [bitcoinsuite-core] Fix a potential out of bounds access during address decoding
Parents
rABC9054e5547767: [electrum] notify users of release 5.4.2
Branches
Unknown
Tags
Unknown