m4b / goblin

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

Fix unbound access to bytes slice at pe/debug.rs:172 #330

Closed anfedotoff closed 1 year ago

anfedotoff commented 2 years ago

Hi! We were doing some fuzzing with Sydr+libFuzzer and found this unbound access to bytes slice at pe/debug.rs:172. Here is the panic message: thread '<unnamed>' panicked at 'range end index 16256248 out of range for slice of length 4257', library/core/src/slice/index.rs:73

I propose this fix.

m4b commented 1 year ago

released in 0.6