This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
BasicDecoder Panics when Decoding Specially Crafted Byte Stream #6226
Labels
F1-panic 🔨
The client panics and exits without proper error handling.
M4-core ⛓
Core client code / Rust.
P0-dropeverything 🌋
Everyone should address the issue now.
BasicDecoder panics when an UntrustedRlp struct encodes the following byte stream:
\xbf\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xe5
Here is the full backtrace and libFuzzer output for the crash:
The important bit called right before the panic appears to be a line in
parity/util/rlp/src/untrusted_rlp.rs:374
:begin_of_value
andlen
are both usize variables, so the addition appears to be causing the panic. Going to try testing this with the standard compiler (cargo-fuzz requires nightly to run), and see if the bug still pops up.The text was updated successfully, but these errors were encountered: