eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.66k stars 321 forks source link

Fix some BinaryInfo crashes #834

Closed ksen-lin closed 1 year ago

ksen-lin commented 1 year ago

Hello! been playing with SHT fuzzing and found a couple of crashes on broken sections.

The first crash happens when section_strings[section->sh_name] is not a valid address, the second one happens when trying to iterate over entries in some sections with sh_entsize set to 0. Meanwhile, those malformed files run happily in the OS itself.