Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
s3rvac opened this issue Apr 29, 2019 · 0 comments

Comments

@s3rvac
Copy link
Member

s3rvac commented Apr 29, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant