Skip to content

Panic when parsing address without any payload #2111

@apoelstra

Description

@apoelstra

Found by @vincenzopalazzo in #2109 (comment)

The bitcoin/deserialize_address.rs test fails on 4243525431 which is just "BCRT1". The crash is

thread 'tests::duplicate_crash' panicked at 'index out of bounds: the len is 0 but the index is 0', /store/home/apoelstra/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bech32-0.10.0-alpha/src/primitives/decode.rs:372:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions