Closed
Description
fileinfo
fails with "inconsistant export info size"
in fileformat::MachOFormat::initStructures()
.
Input
Run
$ retdec-fileinfo FILE
where FILE
is:
B0292AB3DA6E24A136EFB32C02FC98E5AE187AFD338FCD5C7A09CF309326A803
EE3F20DA2E23A2D287CCFA2BA7E21F676D6327A8479EDD7AE71463073B52DBFA
Output
Program aborted due to an unhandled Error:
truncated or malformed object (inconsistant export info size: 0x5f where actual size was: 0x2 in export trie data at node: 0x0)Aborted
Expected output
fileinfo
does not fail with an unhandled error when analyzing the file.
Backtrace
Process terminating with default action of signal 6 (SIGABRT)
at 0x516ED7F: raise (in /usr/lib/libc-2.28.so)
by 0x5159671: abort (in /usr/lib/libc-2.28.so)
by 0x4E4041: llvm::Error::fatalUncheckedError() const (in retdec-fileinfo)
by 0x345844: llvm::Error::assertIsChecked() (Error.h:268)
by 0x345783: llvm::Error::~Error() (Error.h:229)
by 0x342E0C: retdec::fileformat::MachOFormat::dyldInfoCommand(llvm::object::MachOObjectFile::LoadCommandInfo const&) (macho_format.cpp:954)
by 0x34396F: retdec::fileformat::MachOFormat::loadCommands() (macho_format.cpp:1126)
by 0x340537: retdec::fileformat::MachOFormat::initStructures() (macho_format.cpp:282)
by 0x33F480: retdec::fileformat::MachOFormat::MachOFormat(...) (macho_format.cpp:75)
by 0x243F7D: fileinfo::MachOWrapper::MachOWrapper(...) (macho_wrapper.cpp:19)
by 0x1A98F4: void __gnu_cxx::new_allocator<fileinfo::MachOWrapper>::construct<...>(...) (new_allocator.h:136)
by 0x1A97B3: void std::allocator_traits<...>::construct<...>(...) (alloc_traits.h:475)
Configuration
- Commit: 658bb9d (current
master
) - 64b Arch Linux, GCC 8.3.0, Debug build of RetDec