Issue686

Title editor: sanitize address crash copying/pasting objects and playing around with undo/redo functions
Priority important Status rejected
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2013-09-12 00h43 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2013-09-12   00h43
INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
=================================================================
==11801== ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60a40003c7a8 at pc 0x52d2fb bp 0x7fffbaebe9f0 sp 0x7fffbaebe9e8
READ of size 4 at 0x60a40003c7a8 thread T0
    #0 0x52d2fa (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x52d2fa)
    #1 0x53511a (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x53511a)
    #2 0x4f8875 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4f8875)
    #3 0x4a89df (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x4a89df)
    #4 0x50f702 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x50f702)
    #5 0x504a64 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x504a64)
    #6 0x415ca4 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x415ca4)
    #7 0x7f334feb3bc4 (/usr/lib/libc-2.18.so+0x21bc4)
    #8 0x41644c (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x41644c)
0x60a40003c7a8 is located 88 bytes to the left of 73728-byte region
[0x60a40003c800,0x60a40004e800)
allocated by thread T0 here:
    #0 0x7f335196a625 (/usr/lib/libasan.so.0.0.0+0x15625)
    #1 0x43aafa (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x43aafa)
    #2 0x467ed6 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x467ed6)
    #3 0x469fcc (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x469fcc)
    #4 0x415bc6 (/home/matthias/vcs/git/freedroid/src/freedroidRPG+0x415bc6)
    #5 0x7f334feb3bc4 (/usr/lib/libc-2.18.so+0x21bc4)
Shadow bytes around the buggy address:
  0x0c14fffff8a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14fffff8b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14fffff8c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14fffff8d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c14fffff8e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c14fffff8f0: fa fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa fa
  0x0c14fffff900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14fffff910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14fffff920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14fffff930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c14fffff940: 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
==11801== ABORTING



ddr2line -e ./src/freedroidRPG 0x52d2fa 0x53511a 0x4f8875 0x4a89df 0x50f702
0x504a64 0x415ca4 0x43aafa 0x467ed6 0x469fcc 0x415bc6 
/home/matthias/vcs/git/freedroid/src/lvledit/lvledit_tool_place.c:304
/home/matthias/vcs/git/freedroid/src/lvledit/lvledit_widget_map.c:53
/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/lvledit/lvledit_input.c:186
/home/matthias/vcs/git/freedroid/src/lvledit/lvledit.c:281
/home/matthias/vcs/git/freedroid/src/main.c:185
/home/matthias/vcs/git/freedroid/src/dynarray.c:37
/home/matthias/vcs/git/freedroid/src/init.c:607
/home/matthias/vcs/git/freedroid/src/init.c:1144
/home/matthias/vcs/git/freedroid/src/main.c:149
 


@ 52fe5c8cd46b121dfbeb5356097f06d404f0e590
Author: fluzz Date: 2015-04-28   19h50
Could be a duplicate of issue796.

Matthias, could you check if you can still reproduce, and give a recipe ?
Author: matthiaskrgr Date: 2015-05-01   22h09
Yeah, very likely another ticket for #796. Closing.
History
Date User Action Args
2015-05-01 22:09:40matthiaskrgrsetstatus: open -> rejected
messages: + msg3154
2015-04-28 19:50:26fluzzsetassignedto: fluzz
messages: + msg3140
nosy: + fluzz
2013-09-12 00:43:46matthiaskrgrcreate