Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
05239 Misc. Critical (emulator) Always Jul 29, 2013, 11:32 Jun 16, 2014, 17:35
Tester Firewave View Status Public Platform MAME (Self-compiled)
Assigned To AWJ Resolution Fixed OS Linux
Status [?] Resolved Driver
Version 0.149u1 Fixed in Version 0.154 Build Debug
Fixed in Git Commit Github Pull Request #
Summary 05239: dduxbl: AddressSanitizer: heap-buffer-overflow
Description
==52547==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62900014e33c at pc 0x181de27e bp 0x7fffd822f0d0 sp 0x7fffd822f0c8
READ of size 4 at 0x62900014e33c thread T0
    #0 0x181de27d in _ZN17software_rendererIjLi0ELi0ELi0ELi16ELi8ELi0ELb0ELb1EE19get_texel_palette16ERK14render_texinfoii /home/notroot/trunk/src/emu/rendersw.c:179
    #1 0x1819805f in _ZN17software_rendererIjLi0ELi0ELi0ELi16ELi8ELi0ELb0ELb1EE24draw_quad_palette16_noneERK16render_primitivePjjRNS0_15quad_setup_dataE /home/notroot/trunk/src/emu/rendersw.c:667
    #2 0x18195b2b in _ZN17software_rendererIjLi0ELi0ELi0ELi16ELi8ELi0ELb0ELb1EE28setup_and_draw_textured_quadERK16render_primitivePjiij /home/notroot/trunk/src/emu/rendersw.c:1895
    #3 0x18186304 in _ZN17software_rendererIjLi0ELi0ELi0ELi16ELi8ELi0ELb0ELb1EE15draw_primitivesERK21render_primitive_listPvjjj /home/notroot/trunk/src/emu/rendersw.c:1963
    #4 0x1817a5e5 in _ZN13video_manager22create_snapshot_bitmapEP13screen_device /home/notroot/trunk/src/emu/video.c:1083
    #5 0x181790cf in _ZN13video_manager13save_snapshotEP13screen_deviceR8emu_file /home/notroot/trunk/src/emu/video.c:331
    #6 0x18177e18 in _ZN13video_manager15recompute_speedE8attotime /home/notroot/trunk/src/emu/video.c:1043
    #7 0x181734d2 in _ZN13video_manager12frame_updateEb /home/notroot/trunk/src/emu/video.c:266
    #8 0x17f0f067 in _ZN13screen_device12vblank_beginEv /home/notroot/trunk/src/emu/screen.c:801
    #9 0x17f0df96 in _ZN13screen_device12device_timerER9emu_timerjiPv /home/notroot/trunk/src/emu/screen.c:398
    #10 0x17efd58a in _ZN8device_t13timer_expiredER9emu_timerjiPv /home/notroot/trunk/src/emu/device.h:228
    #11 0x17eee17b in _ZN16device_scheduler14execute_timersEv /home/notroot/trunk/src/emu/schedule.c:931
    #12 0x17ee1769 in _ZN16device_scheduler9timesliceEv /home/notroot/trunk/src/emu/schedule.c:454
    #13 0x17a8888b in _ZN15running_machine3runEb /home/notroot/trunk/src/emu/machine.c:412
    #14 0x17a74411 in _Z12mame_executeR11emu_optionsR13osd_interface /home/notroot/trunk/src/emu/mame.c:190
    #15 0x173eb8a6 in _ZN12cli_frontend7executeEiPPc /home/notroot/trunk/src/emu/clifront.c:255
    #16 0x10708f01 in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:378
    #17 0x7f155cff7ea4 in __libc_start_main /build/buildd/eglibc-2.17/csu/libc-start.c:260
    #18 0x1e7a7bc in _start ??:?
0x62900014e33c is located 308 bytes to the right of 16392-byte region [0x62900014a200,0x62900014e208)
allocated by thread T0 here:
    #0 0x1e6c724 in __interceptor_malloc ??:?
    #1 0x18d95101 in _Z13palette_allocjj /home/notroot/trunk/src/lib/util/palette.c:177
    #2 0x17748d60 in _ZL16allocate_paletteR15running_machineP15palette_private /home/notroot/trunk/src/emu/emupal.c:596
    #3 0x17747053 in _Z12palette_initR15running_machine /home/notroot/trunk/src/emu/emupal.c:142
    #4 0x17a7e3b6 in _ZN15running_machine5startEv /home/notroot/trunk/src/emu/machine.c:259
    #5 0x17a88439 in _ZN15running_machine3runEb /home/notroot/trunk/src/emu/machine.c:391
    #6 0x17a74411 in _Z12mame_executeR11emu_optionsR13osd_interface /home/notroot/trunk/src/emu/mame.c:190
    #7 0x173eb8a6 in _ZN12cli_frontend7executeEiPPc /home/notroot/trunk/src/emu/clifront.c:255
    #8 0x10708f01 in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:378
    #9 0x7f155cff7ea4 in __libc_start_main /build/buildd/eglibc-2.17/csu/libc-start.c:260
Shadow bytes around the buggy address:
  0x0c5280021c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5280021c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5280021c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5280021c40: 00 fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5280021c50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c5280021c60: fa fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa fa
  0x0c5280021c70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5280021c80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5280021c90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5280021ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5280021cb0: 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
  ASan internal:         fe
==52547==ABORTING
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems dduxbl
Attached Files
 
Relationships
related to 05503ResolvedAWJ  dduxbl: [debug] Screen corrupt and/or crashes 
Notes
2
User avatar
No.10794
AWJ
Developer
Jun 16, 2014, 16:54
r30995 should have fixed this.
User avatar
No.10798
Firewave
Senior Tester
Jun 16, 2014, 17:35
Fixed in r30995