Created
December 3, 2020 23:38
-
-
Save yamori813/cb6cd857d85d5f59b1e588feaf7b956c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ./mkmrb.sh samples/class.rb | |
================================================================= | |
==1294==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x22e068e9 at pc 0x004b32bb bp 0xffbfe4cc sp 0xffbfe0a8 | |
WRITE of size 8 at 0x22e068e9 thread T0 | |
#0 0x4b32ba in __asan_memcpy /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22:3 | |
#1 0x534f13 in write_footer /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:358:3 | |
#2 0x52ce88 in dump_irep /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:858:3 | |
#3 0x52d454 in mrb_dump_irep_binary /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:890:12 | |
#4 0x52af12 in dump_file /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:263:9 | |
#5 0x52678a in main /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:333:12 | |
#6 0x4ab055 in _start1 /usr/src/lib/csu/i386/crt1_c.c:73:7 | |
#7 0x4aaf27 in _start /usr/src/lib/csu/i386/crt1_s.S:49 | |
0x22e068e9 is located 0 bytes to the right of 1129-byte region [0x22e06480,0x22e068e9) | |
allocated by thread T0 here: | |
#0 0x50eed4 in realloc /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:164:3 | |
#1 0x6710b5 in mrb_default_allocf /usr/home/hiroki/rtlbm-mruby/mruby/src/state.c:68:12 | |
#2 0x53ee2c in mrb_realloc_simple /usr/home/hiroki/rtlbm-mruby/mruby/src/gc.c:221:8 | |
#3 0x53fb13 in mrb_realloc /usr/home/hiroki/rtlbm-mruby/mruby/src/gc.c:235:8 | |
#4 0x53fd32 in mrb_malloc /usr/home/hiroki/rtlbm-mruby/mruby/src/gc.c:251:10 | |
#5 0x52c7cc in dump_irep /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:827:26 | |
#6 0x52d454 in mrb_dump_irep_binary /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:890:12 | |
#7 0x52af12 in dump_file /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:263:9 | |
#8 0x52678a in main /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:333:12 | |
#9 0x4ab055 in _start1 /usr/src/lib/csu/i386/crt1_c.c:73:7 | |
#10 0x4aaf27 in _start /usr/src/lib/csu/i386/crt1_s.S:49 | |
SUMMARY: AddressSanitizer: heap-buffer-overflow /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22:3 in __asan_memcpy | |
Shadow bytes around the buggy address: | |
0x445c0cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0x445c0cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0x445c0ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0x445c0cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0x445c0d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
=>0x445c0d10: 00 00 00 00 00 00 00 00 00 00 00 00 00[01]fa fa | |
0x445c0d20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa | |
0x445c0d30: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x445c0d40: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x445c0d50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
0x445c0d60: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd | |
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 | |
Shadow gap: cc | |
==1294==ABORTING | |
Generate image successfully, length=2, checksum=0x0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment