You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ubuntu@ubuntu:~/test/LIEF/fuzz$ ./read_macho ./poc4.bin
nlist[0].str_idx seems corrupted (0xd0d0d0d0)
nlist[1].str_idx seems corrupted (0xd0d0d0d0)
......
nlist[354].str_idx seems corrupted (0xd0d0d0d0)
nlist[355].str_idx seems corrupted (0xd0d0d0d0)
Indirect symbol index is out of range (3503345872 vs max sym: 356)
=================================================================
==1128036==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x371e1ee338 bytes
#0 0x7f091fee6587 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cc:104
#1 0x558554a9daac in allocate /usr/include/c++/9/ext/new_allocator.h:114
#2 0x558554ad411e in boost::leaf::result<LIEF::ok_t> LIEF::MachO::BinaryParser::parse_dyldinfo_binds<LIEF::MachO::details::MachO32>() /home/chan/test/LIEF/src/MachO/BinaryParser.tcc:1365
==1128036==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory ../../../../src/libsanitizer/asan/asan_new_delete.cc:104 in operator new(unsigned long)
==1128036==ABORTING
The text was updated successfully, but these errors were encountered:
Describe the bug
A bad macho file which can lead to allocator is out of memory.
Poc here: poc4.zip
To Reproduce
Expected behavior
Should avoid allocating an impractical size area.
Environment (please complete the following information):
Additional context
ASAN says:
The text was updated successfully, but these errors were encountered: