LIEF
LIEF copied to clipboard
LIEF fails to parse MS-DOS executable
Describe the bug Lief fails to parse an MS-DOS executable file.
To Reproduce
- Download the file: A0000260.zip
- parse it with the Python bindings
- object returned is
None
Expected behavior the parsing should have been successful
Environment (please complete the following information):
- System and Version : Ubuntu 20.04
- Target format MS-DOS executable
- LIEF commit version:
0.10.1-bfe5414
Thanks !
Thanks @Wenzel for the sample. I'll see how to fix that in LIEF
Hey @romainthomas ,
any update regarding this issue ?
I'm scanning all the binaries of Windows 7 with LIEF, and I have 387 failures like this one:
Checksec.py failed to analyze /Users/vagrant/AppData/Local/Mozilla/Firefox/Profiles/8grhrdgk.default-release/cache2/entries/451B0BA1FB1524B676F94249C495E60828C278BF (COM executable for DOS) - LIEF failed to parse valid ELF /tmp/tmp9ib4rsw9/451B0BA1FB1524B676F94249C495E60828C278BF
You can have the list of files here and their filetypes: https://gist.github.com/Wenzel/8f530dd1122270587a027873a243b2ad
Example:

Thanks for your support !