Out Of Bounds acces in multiplayersetupgroup.cc
Bug #1733778 reported by
Klaus Halfmann
This bug report is a duplicate of:
Bug #1734534: Opening a network game in local lan crashes throug ASAN.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When analysing #1730204 with http://
I found that here is an out of bounds array access in src/wui/
MultiPlayerPlay
does no check for the number of slots in the GameSettingsPro
We actually create more MultiPlayerPlay
(as the map may be changed, later ?)
As this is read acccess I am not sure how bad the effect is in the end.
I will put some hackish bugfix into by local branch for #1730204
and continue to fork of other bugs.
Found this in bzr8493[ bug_1730204- crash].
clang --version 500/final) apple-darwin17. 2.0 libexec/ llvm-5. 0/bin
clang version 5.0.0 (tags/RELEASE_
Target: x86_64-
Thread model: posix
InstalledDir: /opt/local/
In CMakeList.txt I added
if("${CMAKE_ CXX_COMPILER_ ID}" STREQUAL "Clang") clang.llvm. org/docs/ AddressSanitize r.html flag(WL_ COMPILE_ DIAGNOSTICS "-fsanitize= address" ) flag(WL_ COMPILE_ DIAGNOSTICS "-fno-omit- frame-pointer" ) EXE_LINKER_ FLAGS "-fsanitize= address" CACHE STRING "Set by widelands CMakeLists.txt" FORCE)
# See http://
wl_add_
wl_add_
set (CMAKE_
SirVer: I think its worth the effort to have is as a kind of "standard" tooling.
Slowdon is aroud factor 2 but they claim they _never_ have false postives.