Comment 8 for bug 1734126

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

This got worse with bzr8497[run-asan] now.

I now sees this already when opening a normal network game:

==67333==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x612000f35e60 at pc 0x00010b031099 bp 0x7ffee6285130 sp 0x7ffee6285128
READ of size 4 at 0x612000f35e60 thread T0
    #0 0x10b031098 in MultiPlayerPlayerGroup::MultiPlayerPlayerGroup(UI::Panel*, int, int, unsigned char, GameSettingsProvider*, NetworkPlayerSettingsBackend*)::'lambda'(No

allocated by thread T0 here:
std::__1::allocator<PlayerSettings>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<PlayerSettings>&) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100dee9f5)
    #2 0x10a754a9c in std::__1::__split_buffer<PlayerSettings, std::__1::allocator<PlayerSettings>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<PlayerSettings>&) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100deba9c)
    #3 0x10a7544eb in std::__1::vector<PlayerSettings, std::__1::allocator<PlayerSettings> >::__append(unsigned long) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100deb4eb)
    #4 0x10a725e69 in std::__1::vector<PlayerSettings, std::__1::allocator<PlayerSettings> >::resize(unsigned long) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100dbce69)
    #5 0x10a7809e4 in GameHost::set_map(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, bool) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100e179e4)
    #6 0x10a7b7903 in HostGameSettingsProvider::set_map(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, bool) (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x100e4e903)
    #7 0x10ab36120 in FullscreenMenuLaunchMPG::select_saved_game() (/Users/klaus/develop/widelands-repo/run-asan/./widelands:x86_64+0x1011cd120)