m4b / goblin

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

Parsing fails when a PE file has a TLS callback list which contains only the terminator #412

Closed gabrielesvelto closed 3 weeks ago

gabrielesvelto commented 5 months ago

The code here checks whether an entry in the TLS callback list is the terminator only after having tried to load it. For executables with an empty callback list which contains only the terminator, parsing will fail.

gabrielesvelto commented 3 weeks ago

This was fixed in https://github.com/m4b/goblin/pull/425