Skip to content

fileinfo fails with an unhandled error "inconsistant export info size" in fileformat::MachOFormat::initStructures() #561

Closed
@s3rvac

Description

fileinfo fails with "inconsistant export info size" in fileformat::MachOFormat::initStructures().

Input

Run

$ retdec-fileinfo FILE

where FILE is:

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions