Title game crash, set level random droids to 0
Priority release-blocker Status resolved
Assigned To greg Keywords
Linked issues Watchers greg

Submitted on 2015-02-09 20h41 by matthiaskrgr, last changed by matthiaskrgr.

Author: matthiaskrgr Date: 2015-02-09   20h41
open editor, go to level 24, open editor options, level options, random droids,
and just confirm that it's "0", boom

asan trace:

==17578==AddressSanitizer CHECK failed:
"((0 && "mem_is_zero returned false, but poisoned byte was not found")) != (0)"
(0x0, 0x0)
    #0 0x7f5084bf4030 in __asan::AsanCheckFailed(char const*, int, char const*,
unsigned long long, unsigned long long) (/usr/lib/
    #1 0x7f5084bf8293 in __sanitizer::CheckFailed(char const*, int, char const*,
unsigned long long, unsigned long long) (/usr/lib/
    #2 0x7f5084bf059d in __asan_region_is_poisoned (/usr/lib/
    #3 0x7f5084bc61eb in __interceptor_strncpy (/usr/lib/
    #4 0x4ab4f5 in GetEditableStringInPopupWindow
    #5 0x5361bf in get_random_droids_from_user lvledit/lvledit_enemy.c:117
    #6 0x53e424 in LevelOptions lvledit/lvledit_menu.c:680
    #7 0x540810 in DoLevelEditorMainMenu lvledit/lvledit_menu.c:1059
    #8 0x535796 in leveleditor_process_input lvledit/lvledit_input.c:193
    #9 0x52794c in LevelEditor lvledit/lvledit.c:281
    #10 0x4cd648 in main /home/matthias/vcs/copy_of_git/freedroid/src/main.c:188
    #11 0x7f50832f07ff in __libc_start_main (/usr/lib/
    #12 0x417868 in _start
Author: matthiaskrgr Date: 2015-02-09   20h44
without ASAN, the game just says
*** Error in `./src': malloc(): memory corruption (fast): 0x000000000417b3a0 ***

as of 331362808b61ba010427e3b84dd517c24eea321c
Author: matthiaskrgr Date: 2015-02-09   21h12
Fixed by 7538c90128668db4741596886478db47845002cf
Date User Action Args
2015-02-09 21:12:57matthiaskrgrsetstatus: open -> resolved
assignedto: greg
messages: + msg3055
nosy: + greg
2015-02-09 20:44:26matthiaskrgrsetmessages: + msg3054
2015-02-09 20:41:40matthiaskrgrcreate