カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
その他重要 (本体)認証済み未処理2015-03-10 08:032017-10-19 08:33
 
テスターFirewave担当者 ソースmagictg.cpp
バージョン0.159発生バージョン修正バージョン
フラグ
セット magictg
セット詳細
magictg - Magic the Gathering: Armageddon (set 1)
 
概 要AddressSanitizer: heap-buffer-overflowエラー。
詳 細
==3519==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61d00005b320 at pc 0x00000523ca4b bp 0x7fffa5f0e540 sp 0x7fffa5f0e538
READ of size 4 at 0x61d00005b320 thread T0
    #0 0x523ca4a in magictg_state::zr36120_r(address_space&, unsigned int, unsigned int) /home/notroot/trunk/src/mame/drivers/magictg.c:468:5
    #1 0x80abfaf in delegate_base<unsigned int, address_space&, unsigned int, unsigned int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/lib/util/delegate.h:652:76
    #2 0x80abfaf in handler_entry_read::read32(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/emu/memory.c:360
    #3 0x80abfaf in address_space_specific<unsigned int, (endianness_t)1, true>::read_native(unsigned int) /home/notroot/trunk/src/emu/memory.c:1096
    #4 0x80ac25b in address_space_specific<unsigned int, (endianness_t)1, true>::read_dword_static(address_space_specific<unsigned int, (endianness_t)1, true>&, unsigned int) /home/notroot/trunk/src/emu/memory.c:1444:99
    #5 0x7f51da090c88 (<unknown module>)

0x61d00005b320 is located 16 bytes to the right of 2192-byte region [0x61d00005aa80,0x61d00005b310)
allocated by thread T0 here:
    #0 0x114f82b in __interceptor_malloc /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
    #1 0x8b430e8 in osd_malloc(unsigned long) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:75:9
    #2 0x841ab91 in malloc_file_line(unsigned long, char const*, int, bool, bool, bool) /home/notroot/trunk/src/lib/util/corealloc.c:112:50
    #3 0x5240e6a in operator new(unsigned long, char const*, int, zeromem_t const&) /home/notroot/trunk/src/lib/util/corealloc.h:77:142
    #4 0x5240e6a in device_t* driver_device_creator<magictg_state>(machine_config const&, char const*, device_t*, unsigned int) /home/notroot/trunk/src/emu/driver.h:287
    #5 0x805e50d in machine_config::device_add(device_t*, char const*, device_t* (*)(machine_config const&, char const*, device_t*, unsigned int), unsigned int) /home/notroot/trunk/src/emu/mconfig.c:144:22
    #6 0x523e06b in construct_machine_config_magictg(machine_config&, device_t*, device_t*) /home/notroot/trunk/src/mame/drivers/magictg.c:896:8
    #7 0x805d546 in machine_config::machine_config(game_driver const&, emu_options&) /home/notroot/trunk/src/emu/mconfig.c:33:2
    #8 0x8048a5d in machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:214:18
    #9 0x7e7a97c in cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15
    #10 0x575e57b in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:322:9
    #11 0x7f51eb1aeec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/notroot/trunk/src/mame/drivers/magictg.c:468 magictg_state::zr36120_r(address_space&, unsigned int, unsigned int)
Shadow bytes around the buggy address:
  0x0c3a80003610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3a80003620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3a80003630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3a80003640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3a80003650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c3a80003660: 00 00 fa fa[fa]fa fa fa fa fa fa fa fa fa fa fa
  0x0c3a80003670: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3a80003680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3a80003690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3a800036a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3a800036b0: 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
  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
再現手順 
追加情報 
 
添付ファイル