Skip to content

Fuzz failure in bitcoin_deserialize_psbt #3501

@apoelstra

Description

@apoelstra

Fuzz CI has failed for the last couple of days with variants of

70736274ff10fc00ff0000000000106dd5f43c0000000001000a000000000000000100c0000000000000000100000000000000f0ffff020000912d201101000a0000000000000a0007ffffffffffffff7e638080808080808080808080808080808080800080808080808080808080808080808080808086fd000000000000000080000000000000004000fd8080000000ffffffffffffffff00000013b13c330249240100000092492400000002924a39000000000029290000004e4992244992244902024924924924924a00001004020000000200f559ee39abe801003330fd3bb1133bb1133b0162737073000074626a700000000000b1130065cd1d010000ff86970000000000000001d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d100c00000000000008080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080024924924924924a80808080808080808080808080808080808080808080808080808080808080808080808080808080808080800000000000000000000000fd0000004e0a008000000000fd0000004e0a007370ffffffffff80808080808080808080808080808080808080007462737002000000000000002929292900810000000000008000000000000002ff34

If you plug this into the fuzztest then run RUSTFLAGS=--cfg=fuzzing cargo test in the fuzz/ dir you will get

test tests::duplicate_crash ... FAILED

failures:

---- tests::duplicate_crash stdout ----
thread 'tests::duplicate_crash' panicked at bitcoin/src/consensus/encode.rs:148:5:
assertion `left == right` failed
  left: 7
 right: 15
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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