Issue691

Title asan crash clicking on empty weapon orb
Priority important Status resolved
Assigned To Xenux Keywords
Linked issues Watchers Xenux

Submitted on 2013-09-19 21h36 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2013-09-19   21h36
INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall
=================================================================
==31900== ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60a4000286aa at pc 0x482865 bp 0x7fff64398eb0 sp 0x7fff64398ea8
READ of size 2 at 0x60a4000286aa thread T0
    #0 0x482864 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x482864)
    #1 0x4f7eaf (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4f7eaf)
    #2 0x4f8875 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4f8875)
    #3 0x4f8875 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4f8875)
    #4 0x4a89df (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4a89df)
    #5 0x4ae6e6 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4ae6e6)
    #6 0x415c99 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x415c99)
    #7 0x7f8b963c9bc4 (/usr/lib/libc-2.18.so+0x21bc4)
    #8 0x41644c (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x41644c)
0x60a4000286aa is located 342 bytes to the left of 77441-byte region
[0x60a400028800,0x60a40003b681)
allocated by thread T0 here:
    #0 0x7f8b97e81625 (/usr/lib/libasan.so.0.0.0+0x15625)
    #1 0x493775 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x493775)
    #2 0x4501c0 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4501c0)
    #3 0x7f8b96e73d94 (/usr/lib/liblua.so.5.2.1+0xcd94)
Shadow bytes around the buggy address:
  0x0c14ffffd080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd0a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd0b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd0c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c14ffffd0d0: fa fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd0e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd0f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14ffffd100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14ffffd110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14ffffd120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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 righ 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
==31900== ABORTING


addr2line -e ./src/freedroidRPG 0x482864 0x4f7eaf 0x4f8875 0x4f8875 0x4a89df
0x4ae6e6 0x415c99 0x41644c 0x493775 0x4501c0 
/home/matthias/vcs/git/freedroid/src/influ.c:1482
/home/matthias/vcs/git/freedroid/src/widgets/widget_button.c:83
/home/matthias/vcs/git/freedroid/src/widgets/widget_group.c:91
/home/matthias/vcs/git/freedroid/src/widgets/widget_group.c:91
/home/matthias/vcs/git/freedroid/src/input.c:135
/home/matthias/vcs/git/freedroid/src/main.c:89
/home/matthias/vcs/git/freedroid/src/main.c:182
??:?
/home/matthias/vcs/git/freedroid/src/text_public.c:58
/home/matthias/vcs/git/freedroid/src/luaconfig.c:1167

@ 1407e345e6fc5c8cdf990f350ac85b440a09e9fd
Author: matthiaskrgr Date: 2013-09-26   19h50
Fixed in 64f718164a114852c3f069c8728e1cc1657348b0. Thanks!
History
Date User Action Args
2013-09-26 19:50:26matthiaskrgrsetstatus: open -> resolved
assignedto: Xenux
messages: + msg2570
nosy: + Xenux
2013-09-19 21:36:35matthiaskrgrcreate