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
==5267==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000061f91 at pc 0x7f5fb26cb0a0 bp 0x7ffdf6ea3290 sp 0x7ffdf6ea3288
READ of size 1 at 0x602000061f91 thread T0
#0 0x7f5fb26cb09f in check_buffer XYZ/radare2/libr/..//libr/bin/p/bin_omf.c:32:18
#1 0x7f5fb22215f9 in r_bin_get_binplugin_by_buffer XYZ/radare2/libr/bin/bin.c:441:8
#2 0x7f5fb224ed3a in get_plugin_from_buffer XYZ/radare2/libr/bin/bfile.c:362:11
#3 0x7f5fb224ed3a in r_bin_file_new_from_buffer XYZ/radare2/libr/bin/bfile.c:420
#4 0x7f5fb221ee7f in r_bin_open_io XYZ/radare2/libr/bin/bin.c:380:8
#5 0x7f5fb362d233 in r_core_file_do_load_for_io_plugin XYZ/radare2/libr/core/cfile.c:399:7
#6 0x7f5fb362d233 in r_core_bin_load XYZ/radare2/libr/core/cfile.c:553
#7 0x7f5fb76c759e in r_main_radare2 XYZ/radare2/libr/main/radare2.c:1137:15
#8 0x7f5fb6e7bb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#9 0x55ca9ab47f69 in _start (XYZ/radare2/binr/radare2/radare2+0x1cf69)
0x602000061f91 is located 0 bytes to the right of 1-byte region [0x602000061f90,0x602000061f91)
allocated by thread T0 here:
#0 0x55ca9abfd5e0 in malloc (XYZ/radare2/binr/radare2/radare2+0xd25e0)
#1 0x7f5fb604c8f7 in get_whole_buf XYZ/radare2/libr/util/buf.c:66:17
#2 0x7f5fb604c8f7 in r_buf_data XYZ/radare2/libr/util/buf.c:192
SUMMARY: AddressSanitizer: heap-buffer-overflow XYZ/radare2/libr/..//libr/bin/p/bin_omf.c:32:18 in check_buffer
Shadow bytes around the buggy address:
0x0c04800043a0: fa fa 00 01 fa fa 00 00 fa fa 00 01 fa fa 06 fa
0x0c04800043b0: fa fa 04 fa fa fa 05 fa fa fa fd fa fa fa 06 fa
0x0c04800043c0: fa fa 04 fa fa fa fd fa fa fa 02 fa fa fa fd fd
0x0c04800043d0: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa
0x0c04800043e0: fa fa fd fa fa fa fd fa fa fa 02 fa fa fa 00 00
=>0x0c04800043f0: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480004400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480004410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480004420: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480004430: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480004440: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==5267==ABORTING
The text was updated successfully, but these errors were encountered:
Work environment
Expected behavior
Disassembly of file or error message.
Actual behavior
Heap out of bounds read in ASAN build.
Steps to reproduce the behavior
r2 -A r2_hoobr_bin_omf_check_buffer
Additional Logs, screenshots, source-code, configuration dump, ...
ASAN report:
The text was updated successfully, but these errors were encountered: