mongodb / bson-rust

Encoding and decoding support for BSON in Rust
MIT License
389 stars 130 forks source link

RUST-1850 Fix a fuzzer failure #460

Closed abr-egn closed 4 months ago

abr-egn commented 4 months ago

RUST-1850

This is the same issue that caused RUST-1564, with the same fix: don't assume deserializer state is in any way valid after an error. I looked for other instances of this pattern that would have the same problem but didn't find any.