Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/hedgewars-1.0.0/misc/wrapper.c
Examining data/hedgewars-1.0.0/misc/liblua/lstate.h
Examining data/hedgewars-1.0.0/misc/liblua/lfunc.c
Examining data/hedgewars-1.0.0/misc/liblua/lmem.c
Examining data/hedgewars-1.0.0/misc/liblua/lmathlib.c
Examining data/hedgewars-1.0.0/misc/liblua/lparser.h
Examining data/hedgewars-1.0.0/misc/liblua/lauxlib.c
Examining data/hedgewars-1.0.0/misc/liblua/lfunc.h
Examining data/hedgewars-1.0.0/misc/liblua/lstrlib.c
Examining data/hedgewars-1.0.0/misc/liblua/lvm.c
Examining data/hedgewars-1.0.0/misc/liblua/luaconf.h
Examining data/hedgewars-1.0.0/misc/liblua/ldump.c
Examining data/hedgewars-1.0.0/misc/liblua/ldebug.c
Examining data/hedgewars-1.0.0/misc/liblua/lualib.h
Examining data/hedgewars-1.0.0/misc/liblua/ltable.c
Examining data/hedgewars-1.0.0/misc/liblua/loslib.c
Examining data/hedgewars-1.0.0/misc/liblua/llex.h
Examining data/hedgewars-1.0.0/misc/liblua/lobject.h
Examining data/hedgewars-1.0.0/misc/liblua/ltm.c
Examining data/hedgewars-1.0.0/misc/liblua/llex.c
Examining data/hedgewars-1.0.0/misc/liblua/linit.c
Examining data/hedgewars-1.0.0/misc/liblua/ldblib.c
Examining data/hedgewars-1.0.0/misc/liblua/lapi.c
Examining data/hedgewars-1.0.0/misc/liblua/lcode.h
Examining data/hedgewars-1.0.0/misc/liblua/lzio.h
Examining data/hedgewars-1.0.0/misc/liblua/lua.h
Examining data/hedgewars-1.0.0/misc/liblua/lgc.c
Examining data/hedgewars-1.0.0/misc/liblua/lstate.c
Examining data/hedgewars-1.0.0/misc/liblua/ldebug.h
Examining data/hedgewars-1.0.0/misc/liblua/lparser.c
Examining data/hedgewars-1.0.0/misc/liblua/loadlib.c
Examining data/hedgewars-1.0.0/misc/liblua/lstring.c
Examining data/hedgewars-1.0.0/misc/liblua/lgc.h
Examining data/hedgewars-1.0.0/misc/liblua/ldo.h
Examining data/hedgewars-1.0.0/misc/liblua/lmem.h
Examining data/hedgewars-1.0.0/misc/liblua/lopcodes.c
Examining data/hedgewars-1.0.0/misc/liblua/ltm.h
Examining data/hedgewars-1.0.0/misc/liblua/lobject.c
Examining data/hedgewars-1.0.0/misc/liblua/lopcodes.h
Examining data/hedgewars-1.0.0/misc/liblua/lzio.c
Examining data/hedgewars-1.0.0/misc/liblua/lauxlib.h
Examining data/hedgewars-1.0.0/misc/liblua/lstring.h
Examining data/hedgewars-1.0.0/misc/liblua/lapi.h
Examining data/hedgewars-1.0.0/misc/liblua/print.c
Examining data/hedgewars-1.0.0/misc/liblua/ltablib.c
Examining data/hedgewars-1.0.0/misc/liblua/lvm.h
Examining data/hedgewars-1.0.0/misc/liblua/lundump.h
Examining data/hedgewars-1.0.0/misc/liblua/lbaselib.c
Examining data/hedgewars-1.0.0/misc/liblua/ldo.c
Examining data/hedgewars-1.0.0/misc/liblua/liolib.c
Examining data/hedgewars-1.0.0/misc/liblua/llimits.h
Examining data/hedgewars-1.0.0/misc/liblua/lundump.c
Examining data/hedgewars-1.0.0/misc/liblua/ltable.h
Examining data/hedgewars-1.0.0/misc/liblua/lcode.c
Examining data/hedgewars-1.0.0/misc/coverity_model.c
Examining data/hedgewars-1.0.0/misc/libphyslayer/physfslualoader.c
Examining data/hedgewars-1.0.0/misc/libphyslayer/physfscompat.h
Examining data/hedgewars-1.0.0/misc/libphyslayer/physfsrwops.h
Examining data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.h
Examining data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c
Examining data/hedgewars-1.0.0/misc/libphyslayer/physfsrwops.c
Examining data/hedgewars-1.0.0/misc/libphyslayer/physfscompat.c
Examining data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c
Examining data/hedgewars-1.0.0/tools/hwmap2txt/hwmapconverter/main.cpp
Examining data/hedgewars-1.0.0/tools/hwmap2txt/hwmapconverter/mainwindow.h
Examining data/hedgewars-1.0.0/tools/hwmap2txt/hwmapconverter/mainwindow.cpp
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/SysUtils.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_misc.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/main.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/fileio_test.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_sysutils.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_check.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_fileio.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_system.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_check.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/system.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/pmath.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/Types.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/misc.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/sysutils.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/pas2c.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/system.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/fpcrtl.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/GL.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/Math.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/pmath.c
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.h
Examining data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c
Examining data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/src/hedgewars_main.c
Examining data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/main/android/SDL_android_main.cpp
Examining data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/file/SDL_rwops.c
Examining data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/core/android/SDL_android.cpp
Examining data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/video/android/SDL_androidkeyboard.c
Examining data/hedgewars-1.0.0/project_files/frontlib/frontlib.c
Examining data/hedgewars-1.0.0/project_files/frontlib/hwconsts.c
Examining data/hedgewars-1.0.0/project_files/frontlib/util/util.h
Examining data/hedgewars-1.0.0/project_files/frontlib/util/logging.h
Examining data/hedgewars-1.0.0/project_files/frontlib/util/list.h
Examining data/hedgewars-1.0.0/project_files/frontlib/util/util.c
Examining data/hedgewars-1.0.0/project_files/frontlib/util/buffer.h
Examining data/hedgewars-1.0.0/project_files/frontlib/util/logging.c
Examining data/hedgewars-1.0.0/project_files/frontlib/util/inihelper.c
Examining data/hedgewars-1.0.0/project_files/frontlib/util/buffer.c
Examining data/hedgewars-1.0.0/project_files/frontlib/util/inihelper.h
Examining data/hedgewars-1.0.0/project_files/frontlib/socket.c
Examining data/hedgewars-1.0.0/project_files/frontlib/hwconsts.h
Examining data/hedgewars-1.0.0/project_files/frontlib/base64/base64.c
Examining data/hedgewars-1.0.0/project_files/frontlib/base64/base64.h
Examining data/hedgewars-1.0.0/project_files/frontlib/socket.h
Examining data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c
Examining data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c
Examining data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.h
Examining data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.h
Examining data/hedgewars-1.0.0/project_files/frontlib/frontlib.h
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.h
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netbase.h
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netconn_callbacks.c
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netconn.h
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netconn_internal.h
Examining data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/team.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/weapon.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/scheme.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/gamesetup.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/team.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/room.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/teamlist.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/room.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/teamlist.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/map.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/schemelist.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/map.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/scheme.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/mapcfg.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/mapcfg.h
Examining data/hedgewars-1.0.0/project_files/frontlib/model/schemelist.c
Examining data/hedgewars-1.0.0/project_files/frontlib/model/gamesetup.c
Examining data/hedgewars-1.0.0/project_files/frontlib/extra/jnacontrol.c
Examining data/hedgewars-1.0.0/project_files/frontlib/md5/md5.h
Examining data/hedgewars-1.0.0/project_files/frontlib/md5/md5.c
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcbase.h
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.h
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcbase.c
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/mapconn.h
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.c
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.h
Examining data/hedgewars-1.0.0/project_files/frontlib/ipc/mapconn.c
Examining data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c
Examining data/hedgewars-1.0.0/QTfrontend/team.h
Examining data/hedgewars-1.0.0/QTfrontend/HWApplication.h
Examining data/hedgewars-1.0.0/QTfrontend/campaign.h
Examining data/hedgewars-1.0.0/QTfrontend/main.cpp
Examining data/hedgewars-1.0.0/QTfrontend/gameuiconfig.h
Examining data/hedgewars-1.0.0/QTfrontend/achievements.cpp
Examining data/hedgewars-1.0.0/QTfrontend/campaign.cpp
Examining data/hedgewars-1.0.0/QTfrontend/qrc_hedgewars.cpp
Examining data/hedgewars-1.0.0/QTfrontend/hwform.h
Examining data/hedgewars-1.0.0/QTfrontend/achievements.h
Examining data/hedgewars-1.0.0/QTfrontend/gameuiconfig.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/KeyMap.h
Examining data/hedgewars-1.0.0/QTfrontend/util/namegen.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/MessageDialog.h
Examining data/hedgewars-1.0.0/QTfrontend/util/FileEngine.h
Examining data/hedgewars-1.0.0/QTfrontend/util/namegen.h
Examining data/hedgewars-1.0.0/QTfrontend/util/MessageDialog.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.h
Examining data/hedgewars-1.0.0/QTfrontend/util/KeyMap.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/InstallController.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/AutoUpdater.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/InstallController.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/M3Panel.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/M3InstallController.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/AutoUpdater.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/SparkleAutoUpdater.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/NSWorkspace_RBAdditions.h
Examining data/hedgewars-1.0.0/QTfrontend/util/platform/CocoaInitializer.h
Examining data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/LibavInteraction.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/LibavInteraction.h
Examining data/hedgewars-1.0.0/QTfrontend/util/FileEngine.cpp
Examining data/hedgewars-1.0.0/QTfrontend/util/DataManager.h
Examining data/hedgewars-1.0.0/QTfrontend/HWApplication.cpp
Examining data/hedgewars-1.0.0/QTfrontend/sdlkeys.h
Examining data/hedgewars-1.0.0/QTfrontend/creditsmessages.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/igbox.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/selectWeapon.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hedgehogerWidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/colorwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/qpushbuttonwithsound.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/teamselect.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hatbutton.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/frameTeam.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/itemNum.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SmartLineEdit.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/themeprompt.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hatprompt.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/weaponItem.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/MinesTimeSpinBox.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/roomnameprompt.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/gamecfgwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/feedbackdialog.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/bgwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/feedbackdialog.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/fpsedit.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hatbutton.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/about.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/selectWeapon.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/FreqSpinBox.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/teamselect.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/bgwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/weaponItem.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/seedprompt.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/itemNum.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SDTimeoutSpinBox.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/lineeditcursor.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hatprompt.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SquareLabel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/databrowser.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/igbox.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/HistoryLineEdit.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/drawmapwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/keybinder.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/mapContainer.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/FreqSpinBox.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/hedgehogerWidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/vertScrollArea.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/vertScrollArea.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SDTimeoutSpinBox.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SquareLabel.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/keybinder.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/teamselhelper.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/seedprompt.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/colorwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/lineeditcursor.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/frameTeam.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/drawmapwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/togglebutton.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/gamecfgwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/MinesTimeSpinBox.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/roomnameprompt.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/fpsedit.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/themeprompt.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/HistoryLineEdit.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/mapContainer.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/databrowser.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/SmartLineEdit.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/teamselhelper.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/qpushbuttonwithsound.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/togglebutton.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/widget/about.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageinfo.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenetgame.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenetgame.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagetraining.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagedrawmap.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageeditteam.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageeditteam.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagecampaign.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageadmin.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagesingleplayer.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagedata.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageconnecting.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageselectweapon.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenetserver.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageplayrecord.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagemain.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/AbstractPage.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagevideos.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagemain.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagedrawmap.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageadmin.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenetserver.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagegamestats.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageroomslist.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageplayrecord.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagevideos.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageinfo.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagecampaign.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageoptions.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagemultiplayer.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagescheme.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagemultiplayer.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagetraining.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageoptions.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageroomslist.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/AbstractPage.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagesingleplayer.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageconnecting.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageselectweapon.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagescheme.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageingame.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pageingame.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenet.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagedata.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagenet.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/page/pagegamestats.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/ask_quit.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/input_ip.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/bandialog.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/ask_quit.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/input_password.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/input_ip.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/input_password.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui/dialog/bandialog.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/mouseoverfilter.h
Examining data/hedgewars-1.0.0/QTfrontend/ui/mouseoverfilter.cpp
Examining data/hedgewars-1.0.0/QTfrontend/binds.h
Examining data/hedgewars-1.0.0/QTfrontend/mission.h
Examining data/hedgewars-1.0.0/QTfrontend/hwconsts.h
Examining data/hedgewars-1.0.0/QTfrontend/drawmapscene.h
Examining data/hedgewars-1.0.0/QTfrontend/mission.cpp
Examining data/hedgewars-1.0.0/QTfrontend/team.cpp
Examining data/hedgewars-1.0.0/QTfrontend/game.cpp
Examining data/hedgewars-1.0.0/QTfrontend/hwform.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/netserver.h
Examining data/hedgewars-1.0.0/QTfrontend/net/newnetclient.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/hwmap.h
Examining data/hedgewars-1.0.0/QTfrontend/net/proto.h
Examining data/hedgewars-1.0.0/QTfrontend/net/netserver.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/hwmap.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/recorder.h
Examining data/hedgewars-1.0.0/QTfrontend/net/netudpwidget.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/tcpBase.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/netregister.h
Examining data/hedgewars-1.0.0/QTfrontend/net/recorder.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/netudpserver.h
Examining data/hedgewars-1.0.0/QTfrontend/net/hwmapoptimizer.h
Examining data/hedgewars-1.0.0/QTfrontend/net/hwmapoptimizer.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/netudpserver.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/netudpwidget.h
Examining data/hedgewars-1.0.0/QTfrontend/net/netregister.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/newnetclient.h
Examining data/hedgewars-1.0.0/QTfrontend/net/proto.cpp
Examining data/hedgewars-1.0.0/QTfrontend/net/tcpBase.h
Examining data/hedgewars-1.0.0/QTfrontend/ui_hwform.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/ThemeFilterProxyModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/gameSchemeModel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/roomslistmodel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/ThemeFilterProxyModel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/playerslistmodel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/GameStyleModel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/HatModel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/ThemeModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/roomslistmodel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/netserverslist.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/GameStyleModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/MapModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/netserverslist.h
Examining data/hedgewars-1.0.0/QTfrontend/model/playerslistmodel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/gameSchemeModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/ThemeModel.h
Examining data/hedgewars-1.0.0/QTfrontend/model/HatModel.cpp
Examining data/hedgewars-1.0.0/QTfrontend/model/MapModel.h
Examining data/hedgewars-1.0.0/QTfrontend/binds.cpp
Examining data/hedgewars-1.0.0/QTfrontend/servermessages.h
Examining data/hedgewars-1.0.0/QTfrontend/game.h
Examining data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp
Examining data/hedgewars-1.0.0/QTfrontend/ui_hwform.h
Examining data/hedgewars-1.0.0/QTfrontend/drawmapscene.cpp
Examining data/hedgewars-1.0.0/QTfrontend/weapons.h

FINAL RESULTS:

data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2366:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("defaults write com.apple.LaunchServices LSHandlers -array-add '<dict><key>LSHandlerContentTag</key><string>hwd</string><key>LSHandlerContentTagClass</key><string>public.filename-extension</string><key>LSHandlerRoleAll</key><string>org.hedgewars.desktop</string></dict>'");
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2367:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("defaults write com.apple.LaunchServices LSHandlers -array-add '<dict><key>LSHandlerContentTag</key><string>hws</string><key>LSHandlerContentTagClass</key><string>public.filename-extension</string><key>LSHandlerRoleAll</key><string>org.hedgewars.desktop</string></dict>'");
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2368:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -domain local -domain system -domain user");
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2378:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system(("cp "+datadir->absolutePath()+"/misc/hedgewars-mimeinfo.xml "+QDir::home().absolutePath()+"/.local/share/mime/packages").toLocal8Bit().constData())==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2379:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system(("cp "+datadir->absolutePath()+"/misc/hedgewars.desktop "+QDir::home().absolutePath()+"/.local/share/applications").toLocal8Bit().constData())==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2380:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system(("cp "+datadir->absolutePath()+"/misc/hwengine.desktop "+QDir::home().absolutePath()+"/.local/share/applications").toLocal8Bit().constData())==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2381:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system(("update-mime-database "+QDir::home().absolutePath()+"/.local/share/mime").toLocal8Bit().constData())==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2382:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system("xdg-mime default hedgewars.desktop x-scheme-handler/hwplay")==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2383:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system("xdg-mime default hwengine.desktop application/x-hedgewars-demo")==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2384:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system("xdg-mime default hwengine.desktop application/x-hedgewars-save")==0;
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2386:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (success) success = system(("sed -i 's|^\\(Exec=.*\\) \\(%f\\)|\\1 \\2 "+arguments+"|' "+QDir::home().absolutePath()+"/.local/share/applications/hwengine.desktop").toLocal8Bit().constData())==0;
data/hedgewars-1.0.0/QTfrontend/main.cpp:392:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            cc = QLocale::system().name();
data/hedgewars-1.0.0/QTfrontend/team.cpp:99:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        m_hedgehogs[i].Name.sprintf("hedgehog %d", i);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:71:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(sdlkeys[i][1], "%s", HWApplication::translate("binds (keys)", unboundcontrol).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:153:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", ((isxb && aid < 5) ? (prefix + HWApplication::translate("binds (keys)", xbox360axes[aid * 2])) : (axis.arg(HWApplication::translate("binds (keys)", controllerup)))).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:157:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", ((isxb && aid < 5) ? (prefix + HWApplication::translate("binds (keys)", xbox360axes[aid * 2 + 1])) : (axis.arg(HWApplication::translate("binds (keys)", controllerdown)))).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:168:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", hat.arg(HWApplication::translate("binds (keys)", controllerup)).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:172:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", hat.arg(HWApplication::translate("binds (keys)", controllerdown)).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:176:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", hat.arg(HWApplication::translate("binds (keys)", controllerleft)).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:180:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", hat.arg(HWApplication::translate("binds (keys)", controllerright)).toUtf8().constData());
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:188:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sdlkeys[i++][1], "%s", (prefix + ((isxb && bid < 10) ? (HWApplication::translate("binds (keys)", xb360buttons[bid]) + QString(" ")) : HWApplication::translate("binds (keys)", controllerbutton).arg(bid + 1))).toUtf8().constData());
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:129:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(Buffer, 1024, pFmt, VaArgs);
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:148:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(Buffer, 1024, pFmt, VaArgs);
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:158:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(Buffer, 1024, pFmt, VaArgs);
data/hedgewars-1.0.0/misc/liblua/liolib.c:275:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) {
data/hedgewars-1.0.0/misc/liblua/liolib.c:417:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(f, LUA_NUMBER_FMT, lua_tonumber(L, arg)) > 0;
data/hedgewars-1.0.0/misc/liblua/lobject.c:198:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(out, source);
data/hedgewars-1.0.0/misc/liblua/lobject.c:210:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(out, source);
data/hedgewars-1.0.0/misc/liblua/loslib.c:53:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  status = system(command);
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:750:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(form + l - 1, LUA_INTFRMLEN);
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:775:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (int)luaL_checknumber(L, arg));
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:780:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (LUA_INTFRM_T)luaL_checknumber(L, arg));
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:785:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (unsigned LUA_INTFRM_T)luaL_checknumber(L, arg));
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:790:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (double)luaL_checknumber(L, arg));
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:808:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buff, form, s);
data/hedgewars-1.0.0/misc/liblua/luaconf.h:523:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
data/hedgewars-1.0.0/misc/liblua/luaconf.h:670:53:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define lua_popen(L,c,m)    ((void)L, fflush(NULL), popen(c,m))
data/hedgewars-1.0.0/misc/liblua/print.c:60:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(bvalue(o) ? "true" : "false");
data/hedgewars-1.0.0/misc/liblua/print.c:63:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(LUA_NUMBER_FMT,nvalue(o));
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:23:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(fullPath, dir);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:25:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat(fullPath, fileName);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:54:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(uniqName, dir);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:56:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
						strcat(uniqName, fileName);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:64:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(fullPath, dir);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:66:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
						strcat(fullPath, fileName);
data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/main/android/SDL_android_main.cpp:33:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(argv[i], str); //copy it to a mutable location
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:53:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(pixel ? "#" : " ");
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:83:5:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ShellExecute(NULL, NULL, cmdbuffer, argbuffer, NULL, SW_HIDE);
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:93:5:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ShellExecute(NULL, NULL, cmdbuffer, argbuffer, NULL, SW_HIDE);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:68:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(t,s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:83:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(l, s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(keym, "%s:", s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:290:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(keym, "%s:", s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:336:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(keym, "%s:", s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:565:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(line, strstrip(input_line));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:578:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(section, strstrip(section));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:579:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(section, strlwc(section));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:585:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, strstrip(key));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:586:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, strlwc(key));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:587:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(value, strstrip(value));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:604:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, strstrip(key));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:605:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, strlwc(key));
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:702:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tmp, "%s:%s", section, key);
data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.c:216:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int size = snprintf((char*)buffer+1, 256, template, playerName, meMessage ? message+4 : message);
data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.c:297:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char*)converted+1, cmdString);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:40:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        int msgSize = vsnprintf(msgbuffer+1, 256, fmt, argp);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:178:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(weaponstring, set->loadout);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:179:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(weaponstring, set->crateprob);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:180:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(weaponstring, set->delay);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:181:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(weaponstring, set->crateammo);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:251:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ammostring, weaponset->loadout);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:252:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(ammostring, weaponset->crateprob);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:253:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(ammostring, weaponset->delay);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:254:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(ammostring, weaponset->crateammo);
data/hedgewars-1.0.0/project_files/frontlib/util/logging.c:89:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(logbuffer+pos, sizeof(logbuffer)-pos, fmt, args);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:42:28:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        int requiredSize = vsnprintf(NULL, 0, fmt, args)+1;                 // Figure out how much memory we need,
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:45:26:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            if(tmpbuf && vsnprintf(tmpbuf, requiredSize, fmt, args)>=0) {   // and then do the actual formatting.
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:69:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(result+outpos, delimiter);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:72:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(result+outpos, parts[i]);
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:27:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((*f)->file_name, name.str);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:27:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (format, args);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:461:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(params[i].str, argv[i]);
data/hedgewars-1.0.0/QTfrontend/main.cpp:316:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(now.toTime_t());
data/hedgewars-1.0.0/misc/liblua/lmathlib.c:210:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(luaL_checkint(L, 1));
data/hedgewars-1.0.0/misc/liblua/loadlib.c:594:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *path = getenv(envname);
data/hedgewars-1.0.0/misc/liblua/loslib.c:91:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  lua_pushstring(L, getenv(luaL_checkstring(L, 1)));  /* if NULL push nil */
data/hedgewars-1.0.0/misc/liblua/luaconf.h:657:36:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define lua_tmpnam(b,e)     { e = (tmpnam(b) == NULL); }
data/hedgewars-1.0.0/project_files/frontlib/socket.c:84:13:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            srand(time(NULL));
data/hedgewars-1.0.0/project_files/hwc/rtl/system.h:105:61:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define     fpcrtl_randomize()                              srand(time(NULL))
data/hedgewars-1.0.0/QTfrontend/game.cpp:669:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!demofile.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/game.h:114:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msgbuf[MAXMSGCHARS];
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:1899:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!demofile.open(QIODevice::WriteOnly))
data/hedgewars-1.0.0/QTfrontend/hwform.cpp:2421:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                ok = demofile.open(QIODevice::WriteOnly);
data/hedgewars-1.0.0/QTfrontend/main.cpp:331:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t path[MAX_PATH];
data/hedgewars-1.0.0/QTfrontend/main.cpp:520:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/hedgewars-1.0.0/QTfrontend/model/GameStyleModel.cpp:74:53:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (scriptCfgFile.exists() && scriptCfgFile.open(QFile::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/model/MapModel.cpp:100:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (mapCfgFile.open(QFile::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/model/ThemeModel.cpp:129:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!themeCfgFile.open(QFile::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/model/gameSchemeModel.cpp:915:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if (file.open(QIODevice::WriteOnly)) {
data/hedgewars-1.0.0/QTfrontend/model/gameSchemeModel.cpp:958:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (file.open(QIODevice::ReadOnly)) {
data/hedgewars-1.0.0/QTfrontend/model/gameSchemeModel.cpp:1145:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (file.open(QIODevice::WriteOnly)) {
data/hedgewars-1.0.0/QTfrontend/model/playerslistmodel.cpp:386:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!txt.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/model/playerslistmodel.cpp:426:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!txt.open(QIODevice::WriteOnly | QIODevice::Truncate))
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:23:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char sdlkeys[1024][2][128] =
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:150:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char xb360buttons[10][128] =
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:179:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char xb360dpad[128] = QT_TRANSLATE_NOOP("binds (keys)", "D-pad");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:183:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controlleraxis[128] = QT_TRANSLATE_NOOP("binds (keys)", "Axis %1 %2");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:185:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerbutton[128] = QT_TRANSLATE_NOOP("binds (keys)", "Button %1");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:187:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerhat[128] = QT_TRANSLATE_NOOP("binds (keys)", "D-pad %1 %2");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:188:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerup[128] = QT_TRANSLATE_NOOP("binds (keys)", "Up");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:189:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerdown[128] = QT_TRANSLATE_NOOP("binds (keys)", "Down");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:190:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerleft[128] = QT_TRANSLATE_NOOP("binds (keys)", "Left");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:191:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char controllerright[128] = QT_TRANSLATE_NOOP("binds (keys)", "Right");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.cpp:194:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char unboundcontrol[128] = QT_TRANSLATE_NOOP("binds (keys)", "(Don't use)");
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:22:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char sdlkeys[1024][2][128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char xb360buttons[10][128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:25:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char xbox360axes[10][128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:26:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char xb360dpad[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:27:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controlleraxis[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:28:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerbutton[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:29:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerhat[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:30:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerup[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:31:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerdown[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerleft[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char controllerright[128];
data/hedgewars-1.0.0/QTfrontend/sdlkeys.h:34:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char unboundcontrol[128];
data/hedgewars-1.0.0/QTfrontend/ui/page/pagedata.cpp:189:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!out.open(QFile::WriteOnly))
data/hedgewars-1.0.0/QTfrontend/ui/page/pagemain.cpp:189:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::ReadOnly);
data/hedgewars-1.0.0/QTfrontend/ui/page/pagetraining.cpp:221:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (orderFile.open(QFile::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/ui/page/pagevideos.cpp:792:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!demofile.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/ui/widget/about.cpp:86:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!creditsFile.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp:75:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp:586:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.exists() && (file.open(QIODevice::ReadOnly | QIODevice::Text)))
data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp:606:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file2.exists() && (file2.open(QIODevice::ReadOnly | QIODevice::Text)))
data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp:801:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.exists() && (file.open(QIODevice::ReadOnly | QIODevice::Text)))
data/hedgewars-1.0.0/QTfrontend/ui/widget/chatwidget.cpp:839:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::WriteOnly | QIODevice::Text))
data/hedgewars-1.0.0/QTfrontend/ui/widget/drawmapwidget.cpp:151:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!file.open(QIODevice::WriteOnly))
data/hedgewars-1.0.0/QTfrontend/ui/widget/drawmapwidget.cpp:172:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!f.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/ui/widget/mapContainer.cpp:1248:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!f.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/ui/widget/selectWeapon.cpp:118:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if (file.open(QIODevice::WriteOnly)) {
data/hedgewars-1.0.0/QTfrontend/ui/widget/selectWeapon.cpp:134:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (file.open(QIODevice::ReadOnly)) {
data/hedgewars-1.0.0/QTfrontend/ui/widget/selectWeapon.cpp:328:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::WriteOnly)) {
data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp:211:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            settingsFile.open(QFile::WriteOnly);
data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp:262:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    QFile tmpfile(fileName);
data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp:263:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!tmpfile.exists())
data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp:264:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        return tmpfile.open(QFile::WriteOnly);
data/hedgewars-1.0.0/QTfrontend/util/DataManager.cpp:264:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return tmpfile.open(QFile::WriteOnly);
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.cpp:26:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool FileEngine::open(QIODevice::OpenMode openMode)
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.cpp:95:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open(QIODevice::WriteOnly);
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.cpp:251:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(QIODevice::ReadOnly);
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.h:18:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        virtual bool open(QIODevice::OpenMode openMode);
data/hedgewars-1.0.0/QTfrontend/util/KeyMap.cpp:34:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!keyFile.open(QIODevice::ReadOnly))
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:70:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sdlkeys[i][0], "none");
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:152:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%da%du", jid, aid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:156:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%da%dd", jid, aid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:167:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%dh%du", jid, hid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:171:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%dh%dd", jid, hid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:175:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%dh%dl", jid, hid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:179:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%dh%dr", jid, hid);
data/hedgewars-1.0.0/QTfrontend/util/SDLInteraction.cpp:187:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sdlkeys[i][0], "j%db%d", jid, bid);
data/hedgewars-1.0.0/QTfrontend/util/namegen.cpp:243:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/hedgewars-1.0.0/QTfrontend/util/namegen.cpp:278:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/hedgewars-1.0.0/QTfrontend/util/namegen.cpp:308:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file->exists() && file->open(QIODevice::ReadOnly | QIODevice::Text))
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Buffer[1024];
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Buffer[1024];
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Buffer[1024];
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ext[16];
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:546:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        g_pSoundFile = fopen(pSoundFile, "rb");
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:459:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(B->p, s, vl);  /* put it there */
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[LUAL_BUFFERSIZE];
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:564:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    lf.f = fopen(filename, "r");
data/hedgewars-1.0.0/misc/liblua/lauxlib.h:133:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[LUAL_BUFFERSIZE];
data/hedgewars-1.0.0/misc/liblua/ldblib.c:284:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[5];
data/hedgewars-1.0.0/misc/liblua/ldblib.c:303:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[250];
data/hedgewars-1.0.0/misc/liblua/ldebug.c:610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[LUA_IDSIZE];  /* add file:line information */
data/hedgewars-1.0.0/misc/liblua/ldump.c:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char h[LUAC_HEADERSIZE];
data/hedgewars-1.0.0/misc/liblua/liolib.c:165:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  *pf = fopen(filename, mode);
data/hedgewars-1.0.0/misc/liblua/liolib.c:185:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  *pf = tmpfile();
data/hedgewars-1.0.0/misc/liblua/liolib.c:205:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      *pf = fopen(filename, mode);
data/hedgewars-1.0.0/misc/liblua/liolib.c:257:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *pf = fopen(filename, "r");
data/hedgewars-1.0.0/misc/liblua/llex.c:103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[MAXSRC];
data/hedgewars-1.0.0/misc/liblua/loadlib.c:98:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[MAX_PATH + 1];
data/hedgewars-1.0.0/misc/liblua/loadlib.c:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[128];
data/hedgewars-1.0.0/misc/liblua/loadlib.c:333:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(filename, "r");  /* try to open file */
data/hedgewars-1.0.0/misc/liblua/lobject.c:127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[2];
data/hedgewars-1.0.0/misc/liblua/lobject.c:144:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[4*sizeof(void *) + 8]; /* should be enough space for a `%p' */
data/hedgewars-1.0.0/misc/liblua/lobject.c:145:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "%p", va_arg(argp, void *));
data/hedgewars-1.0.0/misc/liblua/lobject.c:154:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[3];
data/hedgewars-1.0.0/misc/liblua/lobject.c:196:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(out, "...");
data/hedgewars-1.0.0/misc/liblua/lobject.c:204:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(out, "[string \"");
data/hedgewars-1.0.0/misc/liblua/lobject.c:207:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(out, "...");
data/hedgewars-1.0.0/misc/liblua/lobject.c:211:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(out, "\"]");
data/hedgewars-1.0.0/misc/liblua/lopcodes.c:16:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *const luaP_opnames[NUM_OPCODES+1] = {
data/hedgewars-1.0.0/misc/liblua/lopcodes.h:261:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
LUAI_DATA const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
data/hedgewars-1.0.0/misc/liblua/loslib.c:80:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[LUA_TMPNAMBUFSIZE];
data/hedgewars-1.0.0/misc/liblua/loslib.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cc[3];
data/hedgewars-1.0.0/misc/liblua/loslib.c:180:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[200];  /* should be big enough for any conversion result */
data/hedgewars-1.0.0/misc/liblua/lstring.c:62:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ts+1, str, l*sizeof(char));
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:769:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char form[MAX_FORMAT];  /* to store the format (`%...') */
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:770:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[MAX_ITEM];  /* to store the formatted item */
data/hedgewars-1.0.0/misc/liblua/lua.h:356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char short_src[LUA_IDSIZE]; /* (S) */
data/hedgewars-1.0.0/misc/liblua/luaconf.h:650:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(b, "/tmp/lua_XXXXXX"); \
data/hedgewars-1.0.0/misc/liblua/luaconf.h:651:9:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    e = mkstemp(b); \
data/hedgewars-1.0.0/misc/liblua/lundump.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char h[LUAC_HEADERSIZE];
data/hedgewars-1.0.0/misc/liblua/lundump.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char s[LUAC_HEADERSIZE];
data/hedgewars-1.0.0/misc/liblua/lundump.c:217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 memcpy(h,LUA_SIGNATURE,sizeof(LUA_SIGNATURE)-1);
data/hedgewars-1.0.0/misc/liblua/lvm.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[LUAI_MAXNUMBER2STR];
data/hedgewars-1.0.0/misc/liblua/lvm.c:302:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer+tl, svalue(top-i), l);
data/hedgewars-1.0.0/misc/liblua/lzio.c:64:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(b, z->p, m);
data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/core/android/SDL_android.cpp:606:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buffer[1024];
data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/file/SDL_rwops.c:479:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file, mode);
data/hedgewars-1.0.0/project_files/Android-build/SDL-android-project/jni/SDL/src/main/android/SDL_android_main.cpp:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *argv[argc];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char nickname[128];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuffer[255];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char argbuffer[255];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuffer[255];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char argbuffer[255];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char base64PlayerName[255];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char password[256];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:401:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char input[256];
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:437:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            int loglevel = atoi(input+strlen("/loglevel "));
data/hedgewars-1.0.0/project_files/frontlib/base64/base64.c:68:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char b64str[64] =
data/hedgewars-1.0.0/project_files/frontlib/base64/base64.c:219:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const signed char b64[0x100] = {
data/hedgewars-1.0.0/project_files/frontlib/base64/base64.h:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:46:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newptr, ptr, size);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        cval[90] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:374:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cval, "%04d", i);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:379:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cval, "%04d", i);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:387:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cval, "%04d", i);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char l[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:76:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char l[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    keym[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:281:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    keym[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    keym[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:562:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        line[ASCIILINESZ+1];
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:633:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line    [ASCIILINESZ+1] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:634:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char section [ASCIILINESZ+1] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:635:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key     [ASCIILINESZ+1] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:636:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp     [ASCIILINESZ+1] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:637:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char val     [ASCIILINESZ+1] ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:646:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((in=fopen(ininame, "r"))==NULL) {
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcbase.c:137:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(outbuf, ipc->readBuffer, size);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcbase.c:203:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sendbuf+1, data, len);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:35:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msgbuffer[257];
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:192:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void calculateMd5Hex(const char *in, char out[33]) {
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:192:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void calculateMd5Hex(const char *in, char out[33]) {
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:215:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char md5Hex[33];
data/hedgewars-1.0.0/project_files/frontlib/md5/md5.c:169:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(xbuf, data, 64);
data/hedgewars-1.0.0/project_files/frontlib/md5/md5.c:343:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pms->buf + offset, p, copy);
data/hedgewars-1.0.0/project_files/frontlib/md5/md5.c:357:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pms->buf, p, left);
data/hedgewars-1.0.0/project_files/frontlib/model/mapcfg.c:44:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE *file = fopen(path, "rb");
data/hedgewars-1.0.0/project_files/frontlib/model/mapcfg.c:48:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[64];
data/hedgewars-1.0.0/project_files/frontlib/model/mapcfg.h:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char theme[256];
data/hedgewars-1.0.0/project_files/frontlib/model/scheme.c:57:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result->mods, scheme->mods, flib_meta.modCount * sizeof(*scheme->mods));
data/hedgewars-1.0.0/project_files/frontlib/model/scheme.c:58:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result->settings, scheme->settings, flib_meta.settingCount * sizeof(*scheme->settings));
data/hedgewars-1.0.0/project_files/frontlib/model/team.c:76:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sectionName[32];
data/hedgewars-1.0.0/project_files/frontlib/model/team.c:176:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sectionName[32];
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:31:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void setField(char field[WEAPONS_COUNT+1], const char *line, int lineLen, bool no9) {
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:86:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->loadout, weaponset->loadout, WEAPONS_COUNT+1);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:87:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->crateprob, weaponset->crateprob, WEAPONS_COUNT+1);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:88:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->delay, weaponset->delay, WEAPONS_COUNT+1);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:89:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result->crateammo, weaponset->crateammo, WEAPONS_COUNT+1);
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char weaponstring[WEAPONS_COUNT*4+1];
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.h:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char loadout[WEAPONS_COUNT+1];
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.h:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char crateprob[WEAPONS_COUNT+1];
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.h:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char crateammo[WEAPONS_COUNT+1];
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.h:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char delay[WEAPONS_COUNT+1];
data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c:199:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer+pos, msg->parts[i], partsize);
data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c:251:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(msg->parts[msg->partCount], part, partlen);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:248:39:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if(netmsg->partCount<3 || atol(netmsg->parts[2])<MIN_SERVER_VERSION) {
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:488:49:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    conn->map->templateFilter = atoi(netmsg->parts[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:491:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    conn->map->mapgen = atoi(netmsg->parts[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:494:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    conn->map->mazeSize = atoi(netmsg->parts[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:527:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int hogs = atoi(netmsg->parts[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_callbacks.c:47:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        suffix = atol(requestedNick+namelen-digits)+1;
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:79:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char md5hex[33];
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:250:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ammostring[WEAPONS_COUNT*4+1];
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:90:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            result->settings[i] = atoi(parts[i+flib_meta.modCount+1]);
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:99:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        result->mapgen = atoi(parts[1]);
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:100:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        result->mazeSize = atoi(parts[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:101:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        result->templateFilter = atoi(parts[4]);
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:155:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        tmpRoom->playerCount = atoi(params[2]);
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:156:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        tmpRoom->teamCount = atoi(params[3]);
data/hedgewars-1.0.0/project_files/frontlib/util/inihelper.c:93:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *file = fopen(filename, "wb");
data/hedgewars-1.0.0/project_files/frontlib/util/logging.c:32:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char ip[16];
data/hedgewars-1.0.0/project_files/frontlib/util/logging.c:67:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char logbuffer[1024];
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:89:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(result, buf, size);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:174:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char temp[3] = {inbuf[inpos+1],inbuf[inpos+2],0};
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:15:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char cwd[1024];
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:32:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f->fp = fopen(f->file_name, "r");
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:48:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f->fp = fopen(f->file_name, "rb");
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:60:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f->fp = fopen(f->file_name, "w+");
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:113:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *i = atoi(s.str);
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:126:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *i = atoi(s.str);
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:217:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename.str, "r");
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.h:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        file_name[256];
data/hedgewars-1.0.0/project_files/hwc/rtl/fpcrtl.h:16:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define fpcrtl_memcpy                       memcpy
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:7:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char strbuf[512];
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:49:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(str1.str[str1.len]), str2.str, newlen - str1.len);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:60:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(str1.s[str1.len + 1]), &str2.s[1], newlen - str1.len);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:150:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result.str, s, rlen);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:178:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result.str, s, rlen);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:204:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char __pcharBuf[256];
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:208:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(__pcharBuf, &s->s[1], s->len);
data/hedgewars-1.0.0/project_files/hwc/rtl/pas2c.h:15:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char s[256];
data/hedgewars-1.0.0/project_files/hwc/rtl/pas2c.h:19:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char str[255];
data/hedgewars-1.0.0/project_files/hwc/rtl/pas2c.h:27:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char str[MAX_ANSISTRING_LENGTH];
data/hedgewars-1.0.0/project_files/hwc/rtl/pas2c.h:31:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char s[MAX_ANSISTRING_LENGTH + 1];
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:42:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result.str, s.str + index - 1, count);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:70:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result.s + 1, s.s + index, count);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:218:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(t.str, "%f", n);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:366:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(src);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:397:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%f", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:401:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%f", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:405:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%u", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:409:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%d", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:413:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%u", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:417:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%d", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:421:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%u", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:425:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%d", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:429:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%llu", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:433:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s->str, "%lld", x);
data/hedgewars-1.0.0/project_files/hwc/rtl/sysutils.c:142:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(s.str);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_fileio.c:27:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s.str, str, s.len + 1);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_misc.c:11:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s.str, str, s.len + 1);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_system.c:16:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s.str, str, s.len + 1);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_sysutils.c:11:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s.str, str, s.len + 1);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/fileio_test.c:6:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char Pathz[1][128] = {"./"};
data/hedgewars-1.0.0/tools/hwmap2txt/hwmapconverter/mainwindow.cpp:30:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(f.open(QFile::ReadOnly))
data/hedgewars-1.0.0/tools/hwmap2txt/hwmapconverter/mainwindow.cpp:91:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(file.open(QFile::WriteOnly))
data/hedgewars-1.0.0/QTfrontend/net/tcpBase.cpp:231:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(read.isEmpty()) return;
data/hedgewars-1.0.0/QTfrontend/net/tcpBase.cpp:232:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readbuffer.append(read);
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.cpp:246:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
qint64 FileEngine::read(char *data, qint64 maxlen)
data/hedgewars-1.0.0/QTfrontend/util/FileEngine.h:39:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual qint64 read(char *data, qint64 maxlen);
data/hedgewars-1.0.0/QTfrontend/util/LibavInteraction.cpp:114:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!pCodec->long_name || strlen(pCodec->long_name) == 0)
data/hedgewars-1.0.0/hedgewars/avwrapper/avwrapper.c:522:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ext, g_pFormat->extensions, 16);
data/hedgewars-1.0.0/misc/liblua/lapi.c:458:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lua_pushlstring(L, s, strlen(s));
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:169:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      *len = (def ? strlen(def) : 0);
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:343:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(p);
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:363:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (e == NULL) e = fname + strlen(fname);
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:443:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  luaL_addlstring(B, s, strlen(s));
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:567:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(lf.f);
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:570:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(lf.f)) != EOF && c != '\n') ;  /* skip first line */
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:571:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (c == '\n') c = getc(lf.f);
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:577:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0])
data/hedgewars-1.0.0/misc/liblua/lauxlib.c:620:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return luaL_loadbuffer(L, s, strlen(s), s);
data/hedgewars-1.0.0/misc/liblua/ldblib.c:308:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") ||
data/hedgewars-1.0.0/misc/liblua/liolib.c:284:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getc(f);
data/hedgewars-1.0.0/misc/liblua/liolib.c:301:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(p);
data/hedgewars-1.0.0/misc/liblua/llex.c:69:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lua_assert(strlen(luaX_tokens[i])+1 <= TOKEN_LEN);
data/hedgewars-1.0.0/misc/liblua/loadlib.c:345:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (l == NULL) l = path + strlen(path);
data/hedgewars-1.0.0/misc/liblua/lobject.c:184:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out, source+1, bufflen);  /* remove first char */
data/hedgewars-1.0.0/misc/liblua/lobject.c:192:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen(source);
data/hedgewars-1.0.0/misc/liblua/lobject.c:193:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(out, "");
data/hedgewars-1.0.0/misc/liblua/lobject.c:206:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(out, source, len);
data/hedgewars-1.0.0/misc/liblua/lstring.h:20:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define luaS_new(L, s)  (luaS_newlstr(L, s, strlen(s)))
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:740:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(form, strfrmt, p - strfrmt + 1);
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:748:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(form);
data/hedgewars-1.0.0/misc/liblua/lstrlib.c:817:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      luaL_addlstring(&b, buff, strlen(buff));
data/hedgewars-1.0.0/misc/liblua/lvm.c:208:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(l);  /* index of first `\0' in both strings */
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:15:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int fileNameLength = strlen(fileName);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:22:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    char * fullPath = (char *)malloc(strlen(dir) + fileNameLength + 2);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:24:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(fullPath, "/");
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:39:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int fileNameLength = strlen(fileName);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:47:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				dirLength = strlen(dir);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:53:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						char * uniqName = (char *)malloc(strlen(dir) + fileNameLength + 2);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:55:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
						strcat(uniqName, ",");
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:63:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						char * fullPath = (char *)malloc(strlen(dir) + fileNameLength + 2);
data/hedgewars-1.0.0/misc/libphyslayer/hwpacksmounter.c:65:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
						strcat(fullPath, "/");
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:90:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    base64_encode(nickname, strlen(nickname), base64PlayerName, sizeof(base64PlayerName));
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:403:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if(!memcmp("/quit", input, strlen("/quit"))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:405:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/describe ", input, strlen("/describe "))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:406:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            const char *roomname = input+strlen("/describe ");
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:431:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/join ", input, strlen("/join "))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:432:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            const char *roomname = input+strlen("/join ");
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:434:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/ready", input, strlen("/ready"))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:436:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/loglevel ", input, strlen("/loglevel "))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:437:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            int loglevel = atoi(input+strlen("/loglevel "));
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:439:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/list", input, strlen("/list"))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:446:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(!memcmp("/addteam ", input, strlen("/addteam "))) {
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:447:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            const char *teamname = input+strlen("/addteam ");
data/hedgewars-1.0.0/project_files/cmdlineClient/cmdlineClient.c:461:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        } else if(strlen(input)>0) {
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:66:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    t = (char*)malloc(strlen(s)+1) ;
data/hedgewars-1.0.0/project_files/frontlib/iniparser/dictionary.c:94:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(key);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:84:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    last = l + strlen(l);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:253:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    seclen  = (int)strlen(s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:289:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    seclen  = (int)strlen(s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:335:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    seclen  = (int)strlen(s);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:566:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = (int)strlen(line);
data/hedgewars-1.0.0/project_files/frontlib/iniparser/iniparser.c:665:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = (int)strlen(line)-1;
data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.c:211:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t msglen = strlen(message);
data/hedgewars-1.0.0/project_files/frontlib/ipc/gameconn.c:295:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t msglen = strlen(cmdString);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:82:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int edrawlen = strlen(edraw);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:129:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(copy);
data/hedgewars-1.0.0/project_files/frontlib/ipc/ipcprotocol.c:196:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    md5_append(&md5state, (unsigned char*)in, strlen(in));
data/hedgewars-1.0.0/project_files/frontlib/model/weapon.c:110:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int fieldlen = strlen(ammostring)/4;
data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c:188:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        totalSize += strlen(msg->parts[i]) + 1;
data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c:198:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t partsize = strlen(msg->parts[i]);
data/hedgewars-1.0.0/project_files/frontlib/net/netbase.c:214:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            result = flib_netbase_send_raw(net, buffer, strlen(buffer));
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:305:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if(netmsg->partCount < 3 || strlen(netmsg->parts[1]) < 2) {
data/hedgewars-1.0.0/project_files/frontlib/net/netconn.c:564:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    bool ok = base64_decode_alloc(netmsg->parts[i], strlen(netmsg->parts[i]), &out, &outlen);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_callbacks.c:40:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t namelen = strlen(requestedNick);
data/hedgewars-1.0.0/project_files/frontlib/net/netconn_send.c:81:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        md5_append(&md5state, (unsigned char*)passwd, strlen(passwd));
data/hedgewars-1.0.0/project_files/frontlib/net/netprotocol.c:112:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bool ok = base64_decode_alloc(netmsg, strlen(netmsg), &base64decout, &base64declen);
data/hedgewars-1.0.0/project_files/frontlib/util/buffer.c:136:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(formatted);
data/hedgewars-1.0.0/project_files/frontlib/util/inihelper.c:316:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            result = flib_strdupnull(keys[number]+strlen(ini->currentSection)+1);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:59:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t delimLen = strlen(delimiter);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:61:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            totalSize += strlen(parts[i]) + delimLen;
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:73:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                outpos += strlen(parts[i]);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:140:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t insize = strlen(inbuf);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:166:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *outbuf = flib_malloc(strlen(inbuf)+1);
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:201:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int flib_gets(char *str, size_t strlen) {
data/hedgewars-1.0.0/project_files/frontlib/util/util.c:202:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(fgets(str, strlen, stdin)) {
data/hedgewars-1.0.0/project_files/frontlib/util/util.h:120:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int flib_gets(char *str, size_t strlen);
data/hedgewars-1.0.0/project_files/hwc/rtl/fileio.c:148:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:143:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int rlen = strlen(s);
data/hedgewars-1.0.0/project_files/hwc/rtl/misc.c:171:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int rlen = strlen(s);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:219:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    t.len = strlen(t.str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:355:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(src);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:398:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:402:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:406:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:410:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:414:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:418:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:422:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:426:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:430:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:434:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->len = strlen(s->str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:458:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(argv[i]) > 255) {
data/hedgewars-1.0.0/project_files/hwc/rtl/system.c:462:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        params[i].len = strlen(params[i].str);
data/hedgewars-1.0.0/project_files/hwc/rtl/system.h:72:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define     fpcrtl_StrLen                                   strlen
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_fileio.c:26:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s.len = strlen(str);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_misc.c:10:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s.len = strlen(str);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_system.c:9:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strlen(str.str) == str.len, "String internal inconsistency error");
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_system.c:15:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s.len = strlen(str);
data/hedgewars-1.0.0/project_files/hwc/rtl/tests/check_sysutils.c:10:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s.len = strlen(str);

ANALYSIS SUMMARY:

Hits = 438
Lines analyzed = 196456 in approximately 18.32 seconds (10723 lines/second)
Physical Source Lines of Code (SLOC) = 173735
Hits@level = [0] 171 [1] 107 [2] 242 [3]   7 [4]  82 [5]   0
Hits@level+ = [0+] 609 [1+] 438 [2+] 331 [3+]  89 [4+]  82 [5+]   0
Hits/KSLOC@level+ = [0+] 3.50534 [1+] 2.52108 [2+] 1.9052 [3+] 0.512274 [4+] 0.471983 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.