LIEF icon indicating copy to clipboard operation
LIEF copied to clipboard

LIEF fails to parse MS-DOS executable

Open Wenzel opened this issue 5 years ago • 2 comments

Describe the bug Lief fails to parse an MS-DOS executable file.

To Reproduce

  1. Download the file: A0000260.zip
  2. parse it with the Python bindings
  3. object returned is None Capture d’écran de 2020-06-30 07-53-52

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 !

Wenzel avatar Jun 30 '20 19:06 Wenzel

Thanks @Wenzel for the sample. I'll see how to fix that in LIEF

romainthomas avatar Aug 24 '20 05:08 romainthomas

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: Capture d’écran de 2020-11-22 12-02-51

Thanks for your support !

Wenzel avatar Nov 22 '20 11:11 Wenzel