m4b / goblin

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

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

Open gabrielesvelto opened 1 month ago

gabrielesvelto commented 1 month 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.