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 member_offsets in archive/mod.rs:342 #329

Closed anfedotoff closed 1 year ago

anfedotoff commented 2 years ago

Hi! We were doing some fuzzing with libFuzzer and our tool Sydr and found an unbound access to member_offsets: thread 'main' panicked at 'index out of bounds: the len is 2 but the index is 3', /goblin/src/archive/mod.rs:342:23

So, I propose this fix for that.

m4b commented 1 year ago

released in 0.6