詳 細 |
==3371==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7f71cac597ff at pc 0x0000072adb93 bp 0x7fff1d9199e0 sp 0x7fff1d9199d8
WRITE of size 1 at 0x7f71cac597ff thread T0
#0 0x72adb92 in scsp_device::exec_dma(address_space&) /home/notroot/trunk/src/emu/sound/scsp.c:1312:5
#1 0x72abede in scsp_device::UpdateReg(address_space&, int) /home/notroot/trunk/src/emu/sound/scsp.c:714:5
#2 0x72ae313 in scsp_device::w16(address_space&, unsigned int, unsigned short) /home/notroot/trunk/src/emu/sound/scsp.c:928:4
#3 0x72aea5b in scsp_device::write(address_space&, unsigned int, unsigned short, unsigned short) /home/notroot/trunk/src/emu/sound/scsp.c:1406:2
#4 0x808f64e in delegate_base<void, address_space&, unsigned int, unsigned short, unsigned short, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned short, unsigned short) const /home/notroot/trunk/src/lib/util/delegate.h:653:88
#5 0x808f64e in handler_entry_write::write_stub_32(address_space&, unsigned int, unsigned int, unsigned int) /home/notroot/trunk/src/emu/memory.c:4907
#6 0x80aa6eb in delegate_base<void, address_space&, unsigned int, unsigned int, unsigned int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned int, unsigned int) const /home/notroot/trunk/src/lib/util/delegate.h:653:88
#7 0x80aa6eb in handler_entry_write::write32(address_space&, unsigned int, unsigned int, unsigned int) const /home/notroot/trunk/src/emu/memory.c:422
#8 0x80aa6eb in address_space_specific<unsigned int, (endianness_t)1, true>::write_native(unsigned int, unsigned int, unsigned int) /home/notroot/trunk/src/emu/memory.c:1122
#9 0x80a9c92 in void address_space_specific<unsigned int, (endianness_t)1, true>::write_direct<unsigned short, true>(unsigned int, unsigned short, unsigned short) /home/notroot/trunk/src/emu/memory.c:1295:12
#10 0x80a9c92 in address_space_specific<unsigned int, (endianness_t)1, true>::write_word(unsigned int, unsigned short) /home/notroot/trunk/src/emu/memory.c:1427
#11 0x79b1834 in saturn_state::scu_single_transfer(address_space&, unsigned int, unsigned int, unsigned char*) /home/notroot/trunk/src/emu/machine/saturn.c:398:2
#12 0x79b1834 in saturn_state::scu_dma_direct(address_space&, unsigned char) /home/notroot/trunk/src/emu/machine/saturn.c:467
#13 0x79b49de in saturn_state::saturn_scu_w(address_space&, unsigned int, unsigned int, unsigned int) /home/notroot/trunk/src/emu/machine/saturn.c:294:31
#14 0x80aaafa in delegate_base<void, address_space&, unsigned int, unsigned int, unsigned int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned int, unsigned int) const /home/notroot/trunk/src/lib/util/delegate.h:653:88
#15 0x80aaafa in handler_entry_write::write32(address_space&, unsigned int, unsigned int, unsigned int) const /home/notroot/trunk/src/emu/memory.c:422
#16 0x80aaafa in address_space_specific<unsigned int, (endianness_t)1, true>::write_native(unsigned int, unsigned int) /home/notroot/trunk/src/emu/memory.c:1143
#17 0x80ab86b in address_space_specific<unsigned int, (endianness_t)1, true>::write_dword_static(address_space_specific<unsigned int, (endianness_t)1, true>&, unsigned int, unsigned int) /home/notroot/trunk/src/emu/memory.c:1451:105
#18 0x7f71d3ea968b (<unknown module>)
0x7f71cac597ff is located 0 bytes to the right of 1052671-byte region [0x7f71cab58800,0x7f71cac597ff)
allocated by thread T0 here:
#0 0x114f78b in __interceptor_malloc /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
#1 0x8b42538 in osd_malloc_array(unsigned long) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:89:9
#2 0x8419fca in malloc_file_line(unsigned long, char const*, int, bool, bool, bool) /home/notroot/trunk/src/lib/util/corealloc.c:112:25
#3 0x79811e3 in operator new[](unsigned long, char const*, int) /home/notroot/trunk/src/lib/util/corealloc.h:72:125
#4 0x79811e3 in dynamic_array<unsigned char>::expand_internal(int) /home/notroot/trunk/src/lib/util/coretmpl.h:115
#5 0x79811e3 in dynamic_array<unsigned char>::resize(int) /home/notroot/trunk/src/lib/util/coretmpl.h:94
#6 0x79811e3 in dynamic_array<unsigned char>::resize_and_clear(int, unsigned char) /home/notroot/trunk/src/lib/util/coretmpl.h:99
#7 0x8089bb7 in memory_block::memory_block(address_space&, unsigned int, unsigned int, void*) /home/notroot/trunk/src/emu/memory.c:3857:4
#8 0x80650bf in address_space::allocate_memory() /home/notroot/trunk/src/emu/memory.c:2069:25
#9 0x8061b27 in memory_manager::initialize() /home/notroot/trunk/src/emu/memory.c:1544:3
#10 0x804c2ec in running_machine::start() /home/notroot/trunk/src/emu/machine.c:256:2
#11 0x804fb73 in running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3
#12 0x8047ee6 in machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11
#13 0x7e79dbc in cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15
#14 0x575d9bb in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:322:9
#15 0x7f71ec923ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/notroot/trunk/src/emu/sound/scsp.c:1312 scsp_device::exec_dma(address_space&)
Shadow bytes around the buggy address:
0x0feeb95832a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0feeb95832b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0feeb95832c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0feeb95832d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0feeb95832e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0feeb95832f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[07]
0x0feeb9583300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0feeb9583310: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0feeb9583320: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0feeb9583330: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0feeb9583340: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
ASan internal: fe
|