Skip to content

Cryptographically unreachable code when deriving descriptor #245

@darosior

Description

@darosior
thread '<unnamed>' panicked at 'internal error: entered unreachable code: cryptographically unreachable: secp: malformed or out-of-range secret key', /home/darosior/.cargo/registry/src/github.com-1ecc6299db9ec823/miniscript-5.1.0/src/descriptor/key.rs:453:31

Happened when fuzzing my transaction chain creation (deriving a Miniscript descriptor). Still need to dive into it but wanted to share it first.

EDIT: can't reproduce when not in fuzzing mode.. Weird.

EDIT 2: i fixed it on my end by not generating random keys in the fuzzing target, but i guess it shouldn't happen anyways? I'll write a fuzz target here reproducing it asap.

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