m4b / goblin

An impish, cross-platform binary parsing crate, written in Rust
MIT License
1.18k stars 156 forks source link

fix: Avoid arithmetic overflow and panics #302

Closed Swatinem closed 2 years ago

Swatinem commented 2 years ago

The first comes from a real and valid fat file that is ~6G, the other overflow was found while fuzzing.

m4b commented 2 years ago

thank you for adding the tests!