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/colobot-0.1.12/lib/gtest/include/gtest/gtest-death-test.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-message.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-param-test.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-printers.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-spi.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-test-part.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest-typed-test.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest_pred_impl.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/gtest_prod.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-death-test-internal.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-filepath.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-internal.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-linked_ptr.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-param-util-generated.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-param-util.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-string.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-tuple.h
Examining data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-type-util.h
Examining data/colobot-0.1.12/lib/gtest/src/gtest-all.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-death-test.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-filepath.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-internal-inl.h
Examining data/colobot-0.1.12/lib/gtest/src/gtest-port.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-test-part.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest-typed-test.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest.cc
Examining data/colobot-0.1.12/lib/gtest/src/gtest_main.cc
Examining data/colobot-0.1.12/lib/hippomocks/hippomocks.h
Examining data/colobot-0.1.12/lib/localename/localename.c
Examining data/colobot-0.1.12/lib/localename/localename.h
Examining data/colobot-0.1.12/lib/wingetopt/src/getopt.c
Examining data/colobot-0.1.12/lib/wingetopt/src/getopt.h
Examining data/colobot-0.1.12/src/CBot/CBot.h
Examining data/colobot-0.1.12/src/CBot/CBotCStack.cpp
Examining data/colobot-0.1.12/src/CBot/CBotCStack.h
Examining data/colobot-0.1.12/src/CBot/CBotClass.cpp
Examining data/colobot-0.1.12/src/CBot/CBotClass.h
Examining data/colobot-0.1.12/src/CBot/CBotDebug.cpp
Examining data/colobot-0.1.12/src/CBot/CBotDebug.h
Examining data/colobot-0.1.12/src/CBot/CBotDefParam.cpp
Examining data/colobot-0.1.12/src/CBot/CBotDefParam.h
Examining data/colobot-0.1.12/src/CBot/CBotDefines.h
Examining data/colobot-0.1.12/src/CBot/CBotEnums.h
Examining data/colobot-0.1.12/src/CBot/CBotExternalCall.cpp
Examining data/colobot-0.1.12/src/CBot/CBotExternalCall.h
Examining data/colobot-0.1.12/src/CBot/CBotFileUtils.cpp
Examining data/colobot-0.1.12/src/CBot/CBotFileUtils.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBlock.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBlock.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBoolExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBoolExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBreak.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotBreak.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCase.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCase.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCatch.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCatch.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCondition.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotCondition.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefArray.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefArray.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefBoolean.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefBoolean.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefClass.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefClass.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefFloat.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefFloat.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefInt.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefInt.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefString.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDefString.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDo.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotDo.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotEmpty.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotEmpty.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitBool.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitBool.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNan.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNan.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNull.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNull.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNum.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitNum.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitString.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprRetVar.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprRetVar.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprUnaire.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprUnaire.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprVar.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprVar.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExpression.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExpression.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFieldExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFieldExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFor.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFor.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFunction.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotFunction.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotIf.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotIf.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotIndexExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotIndexExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrCall.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrCall.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrMethode.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrMethode.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrUtils.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotInstrUtils.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLeftExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLeftExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLeftExprVar.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLeftExprVar.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListArray.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListArray.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListExpression.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListExpression.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListInstr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotListInstr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLogicExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotLogicExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotNew.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotNew.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotParExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotParExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotPostIncExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotPostIncExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotPreIncExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotPreIncExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotReturn.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotReturn.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotSwitch.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotSwitch.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotThrow.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotThrow.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotTry.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotTry.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotTwoOpExpr.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotTwoOpExpr.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotWhile.cpp
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotWhile.h
Examining data/colobot-0.1.12/src/CBot/CBotInstr/CBotExprLitString.cpp
Examining data/colobot-0.1.12/src/CBot/CBotProgram.cpp
Examining data/colobot-0.1.12/src/CBot/CBotProgram.h
Examining data/colobot-0.1.12/src/CBot/CBotStack.cpp
Examining data/colobot-0.1.12/src/CBot/CBotStack.h
Examining data/colobot-0.1.12/src/CBot/CBotToken.cpp
Examining data/colobot-0.1.12/src/CBot/CBotToken.h
Examining data/colobot-0.1.12/src/CBot/CBotTypResult.cpp
Examining data/colobot-0.1.12/src/CBot/CBotTypResult.h
Examining data/colobot-0.1.12/src/CBot/CBotUtils.cpp
Examining data/colobot-0.1.12/src/CBot/CBotUtils.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVar.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVar.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarArray.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarArray.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarBoolean.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarBoolean.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarClass.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarClass.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarFloat.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarFloat.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarInt.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarInt.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarPointer.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarPointer.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarString.cpp
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarString.h
Examining data/colobot-0.1.12/src/CBot/CBotVar/CBotVarValue.h
Examining data/colobot-0.1.12/src/CBot/stdlib/Compilation.cpp
Examining data/colobot-0.1.12/src/CBot/stdlib/Compilation.h
Examining data/colobot-0.1.12/src/CBot/stdlib/FileFunctions.cpp
Examining data/colobot-0.1.12/src/CBot/stdlib/MathFunctions.cpp
Examining data/colobot-0.1.12/src/CBot/stdlib/StringFunctions.cpp
Examining data/colobot-0.1.12/src/CBot/stdlib/stdlib.h
Examining data/colobot-0.1.12/src/CBot/stdlib/stdlib_public.h
Examining data/colobot-0.1.12/src/app/app.cpp
Examining data/colobot-0.1.12/src/app/app.h
Examining data/colobot-0.1.12/src/app/controller.cpp
Examining data/colobot-0.1.12/src/app/controller.h
Examining data/colobot-0.1.12/src/app/input.cpp
Examining data/colobot-0.1.12/src/app/input.h
Examining data/colobot-0.1.12/src/app/main.cpp
Examining data/colobot-0.1.12/src/app/pathman.cpp
Examining data/colobot-0.1.12/src/app/pathman.h
Examining data/colobot-0.1.12/src/app/pausemanager.cpp
Examining data/colobot-0.1.12/src/app/pausemanager.h
Examining data/colobot-0.1.12/src/app/signal_handlers.cpp
Examining data/colobot-0.1.12/src/app/signal_handlers.h
Examining data/colobot-0.1.12/src/common/config_file.cpp
Examining data/colobot-0.1.12/src/common/config_file.h
Examining data/colobot-0.1.12/src/common/error.h
Examining data/colobot-0.1.12/src/common/event.cpp
Examining data/colobot-0.1.12/src/common/event.h
Examining data/colobot-0.1.12/src/common/font_loader.cpp
Examining data/colobot-0.1.12/src/common/font_loader.h
Examining data/colobot-0.1.12/src/common/global.h
Examining data/colobot-0.1.12/src/common/image.cpp
Examining data/colobot-0.1.12/src/common/image.h
Examining data/colobot-0.1.12/src/common/ioutils.h
Examining data/colobot-0.1.12/src/common/key.cpp
Examining data/colobot-0.1.12/src/common/key.h
Examining data/colobot-0.1.12/src/common/language.cpp
Examining data/colobot-0.1.12/src/common/language.h
Examining data/colobot-0.1.12/src/common/logger.cpp
Examining data/colobot-0.1.12/src/common/logger.h
Examining data/colobot-0.1.12/src/common/make_unique.h
Examining data/colobot-0.1.12/src/common/profiler.cpp
Examining data/colobot-0.1.12/src/common/profiler.h
Examining data/colobot-0.1.12/src/common/regex_utils.cpp
Examining data/colobot-0.1.12/src/common/regex_utils.h
Examining data/colobot-0.1.12/src/common/resources/inputstream.cpp
Examining data/colobot-0.1.12/src/common/resources/inputstream.h
Examining data/colobot-0.1.12/src/common/resources/inputstreambuffer.cpp
Examining data/colobot-0.1.12/src/common/resources/inputstreambuffer.h
Examining data/colobot-0.1.12/src/common/resources/outputstream.cpp
Examining data/colobot-0.1.12/src/common/resources/outputstream.h
Examining data/colobot-0.1.12/src/common/resources/outputstreambuffer.cpp
Examining data/colobot-0.1.12/src/common/resources/outputstreambuffer.h
Examining data/colobot-0.1.12/src/common/resources/resourcemanager.cpp
Examining data/colobot-0.1.12/src/common/resources/resourcemanager.h
Examining data/colobot-0.1.12/src/common/resources/sdl_file_wrapper.cpp
Examining data/colobot-0.1.12/src/common/resources/sdl_file_wrapper.h
Examining data/colobot-0.1.12/src/common/resources/sdl_memory_wrapper.cpp
Examining data/colobot-0.1.12/src/common/resources/sdl_memory_wrapper.h
Examining data/colobot-0.1.12/src/common/resources/sndfile_wrapper.cpp
Examining data/colobot-0.1.12/src/common/resources/sndfile_wrapper.h
Examining data/colobot-0.1.12/src/common/restext.cpp
Examining data/colobot-0.1.12/src/common/restext.h
Examining data/colobot-0.1.12/src/common/settings.cpp
Examining data/colobot-0.1.12/src/common/settings.h
Examining data/colobot-0.1.12/src/common/singleton.h
Examining data/colobot-0.1.12/src/common/stringutils.cpp
Examining data/colobot-0.1.12/src/common/stringutils.h
Examining data/colobot-0.1.12/src/common/system/system.cpp
Examining data/colobot-0.1.12/src/common/system/system.h
Examining data/colobot-0.1.12/src/common/system/system_linux.h
Examining data/colobot-0.1.12/src/common/system/system_macosx.cpp
Examining data/colobot-0.1.12/src/common/system/system_macosx.h
Examining data/colobot-0.1.12/src/common/system/system_other.cpp
Examining data/colobot-0.1.12/src/common/system/system_other.h
Examining data/colobot-0.1.12/src/common/system/system_windows.cpp
Examining data/colobot-0.1.12/src/common/system/system_windows.h
Examining data/colobot-0.1.12/src/common/system/system_linux.cpp
Examining data/colobot-0.1.12/src/common/thread/resource_owning_thread.h
Examining data/colobot-0.1.12/src/common/thread/sdl_cond_wrapper.h
Examining data/colobot-0.1.12/src/common/thread/sdl_mutex_wrapper.h
Examining data/colobot-0.1.12/src/common/thread/thread.h
Examining data/colobot-0.1.12/src/common/thread/worker_thread.h
Examining data/colobot-0.1.12/src/graphics/core/color.cpp
Examining data/colobot-0.1.12/src/graphics/core/color.h
Examining data/colobot-0.1.12/src/graphics/core/device.h
Examining data/colobot-0.1.12/src/graphics/core/framebuffer.cpp
Examining data/colobot-0.1.12/src/graphics/core/framebuffer.h
Examining data/colobot-0.1.12/src/graphics/core/light.h
Examining data/colobot-0.1.12/src/graphics/core/material.h
Examining data/colobot-0.1.12/src/graphics/core/nulldevice.cpp
Examining data/colobot-0.1.12/src/graphics/core/nulldevice.h
Examining data/colobot-0.1.12/src/graphics/core/texture.h
Examining data/colobot-0.1.12/src/graphics/core/type.cpp
Examining data/colobot-0.1.12/src/graphics/core/type.h
Examining data/colobot-0.1.12/src/graphics/core/vertex.h
Examining data/colobot-0.1.12/src/graphics/engine/camera.cpp
Examining data/colobot-0.1.12/src/graphics/engine/camera.h
Examining data/colobot-0.1.12/src/graphics/engine/cloud.cpp
Examining data/colobot-0.1.12/src/graphics/engine/cloud.h
Examining data/colobot-0.1.12/src/graphics/engine/engine.cpp
Examining data/colobot-0.1.12/src/graphics/engine/engine.h
Examining data/colobot-0.1.12/src/graphics/engine/lightman.cpp
Examining data/colobot-0.1.12/src/graphics/engine/lightman.h
Examining data/colobot-0.1.12/src/graphics/engine/lightning.cpp
Examining data/colobot-0.1.12/src/graphics/engine/lightning.h
Examining data/colobot-0.1.12/src/graphics/engine/oldmodelmanager.cpp
Examining data/colobot-0.1.12/src/graphics/engine/oldmodelmanager.h
Examining data/colobot-0.1.12/src/graphics/engine/particle.cpp
Examining data/colobot-0.1.12/src/graphics/engine/particle.h
Examining data/colobot-0.1.12/src/graphics/engine/planet.cpp
Examining data/colobot-0.1.12/src/graphics/engine/planet.h
Examining data/colobot-0.1.12/src/graphics/engine/planet_type.h
Examining data/colobot-0.1.12/src/graphics/engine/pyro.cpp
Examining data/colobot-0.1.12/src/graphics/engine/pyro.h
Examining data/colobot-0.1.12/src/graphics/engine/pyro_manager.cpp
Examining data/colobot-0.1.12/src/graphics/engine/pyro_manager.h
Examining data/colobot-0.1.12/src/graphics/engine/pyro_type.h
Examining data/colobot-0.1.12/src/graphics/engine/terrain.cpp
Examining data/colobot-0.1.12/src/graphics/engine/terrain.h
Examining data/colobot-0.1.12/src/graphics/engine/text.cpp
Examining data/colobot-0.1.12/src/graphics/engine/text.h
Examining data/colobot-0.1.12/src/graphics/engine/water.cpp
Examining data/colobot-0.1.12/src/graphics/engine/water.h
Examining data/colobot-0.1.12/src/graphics/model/model.cpp
Examining data/colobot-0.1.12/src/graphics/model/model.h
Examining data/colobot-0.1.12/src/graphics/model/model_crash_sphere.h
Examining data/colobot-0.1.12/src/graphics/model/model_format.h
Examining data/colobot-0.1.12/src/graphics/model/model_input.cpp
Examining data/colobot-0.1.12/src/graphics/model/model_input.h
Examining data/colobot-0.1.12/src/graphics/model/model_io_exception.h
Examining data/colobot-0.1.12/src/graphics/model/model_io_structs.h
Examining data/colobot-0.1.12/src/graphics/model/model_manager.cpp
Examining data/colobot-0.1.12/src/graphics/model/model_manager.h
Examining data/colobot-0.1.12/src/graphics/model/model_mesh.cpp
Examining data/colobot-0.1.12/src/graphics/model/model_mesh.h
Examining data/colobot-0.1.12/src/graphics/model/model_output.cpp
Examining data/colobot-0.1.12/src/graphics/model/model_output.h
Examining data/colobot-0.1.12/src/graphics/model/model_shadow_spot.h
Examining data/colobot-0.1.12/src/graphics/model/model_triangle.h
Examining data/colobot-0.1.12/src/graphics/opengl/gl14device.cpp
Examining data/colobot-0.1.12/src/graphics/opengl/gl14device.h
Examining data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp
Examining data/colobot-0.1.12/src/graphics/opengl/gl21device.h
Examining data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp
Examining data/colobot-0.1.12/src/graphics/opengl/gl33device.h
Examining data/colobot-0.1.12/src/graphics/opengl/glframebuffer.cpp
Examining data/colobot-0.1.12/src/graphics/opengl/glframebuffer.h
Examining data/colobot-0.1.12/src/graphics/opengl/glutil.cpp
Examining data/colobot-0.1.12/src/graphics/opengl/glutil.h
Examining data/colobot-0.1.12/src/level/build_type.h
Examining data/colobot-0.1.12/src/level/level_category.cpp
Examining data/colobot-0.1.12/src/level/level_category.h
Examining data/colobot-0.1.12/src/level/mainmovie.cpp
Examining data/colobot-0.1.12/src/level/mainmovie.h
Examining data/colobot-0.1.12/src/level/parser/parser.cpp
Examining data/colobot-0.1.12/src/level/parser/parser.h
Examining data/colobot-0.1.12/src/level/parser/parserexceptions.cpp
Examining data/colobot-0.1.12/src/level/parser/parserexceptions.h
Examining data/colobot-0.1.12/src/level/parser/parserline.cpp
Examining data/colobot-0.1.12/src/level/parser/parserline.h
Examining data/colobot-0.1.12/src/level/parser/parserparam.cpp
Examining data/colobot-0.1.12/src/level/parser/parserparam.h
Examining data/colobot-0.1.12/src/level/player_profile.cpp
Examining data/colobot-0.1.12/src/level/player_profile.h
Examining data/colobot-0.1.12/src/level/research_type.h
Examining data/colobot-0.1.12/src/level/robotmain.cpp
Examining data/colobot-0.1.12/src/level/robotmain.h
Examining data/colobot-0.1.12/src/level/scene_conditions.cpp
Examining data/colobot-0.1.12/src/level/scene_conditions.h
Examining data/colobot-0.1.12/src/level/scoreboard.cpp
Examining data/colobot-0.1.12/src/level/scoreboard.h
Examining data/colobot-0.1.12/src/math/all.h
Examining data/colobot-0.1.12/src/math/const.h
Examining data/colobot-0.1.12/src/math/func.h
Examining data/colobot-0.1.12/src/math/geometry.h
Examining data/colobot-0.1.12/src/math/half.cpp
Examining data/colobot-0.1.12/src/math/half.h
Examining data/colobot-0.1.12/src/math/intpoint.h
Examining data/colobot-0.1.12/src/math/matrix.h
Examining data/colobot-0.1.12/src/math/point.h
Examining data/colobot-0.1.12/src/math/sphere.h
Examining data/colobot-0.1.12/src/math/vector.h
Examining data/colobot-0.1.12/src/object/auto/auto.cpp
Examining data/colobot-0.1.12/src/object/auto/auto.h
Examining data/colobot-0.1.12/src/object/auto/autobase.cpp
Examining data/colobot-0.1.12/src/object/auto/autobase.h
Examining data/colobot-0.1.12/src/object/auto/autoconvert.cpp
Examining data/colobot-0.1.12/src/object/auto/autoconvert.h
Examining data/colobot-0.1.12/src/object/auto/autoderrick.cpp
Examining data/colobot-0.1.12/src/object/auto/autoderrick.h
Examining data/colobot-0.1.12/src/object/auto/autodestroyer.cpp
Examining data/colobot-0.1.12/src/object/auto/autodestroyer.h
Examining data/colobot-0.1.12/src/object/auto/autoegg.cpp
Examining data/colobot-0.1.12/src/object/auto/autoegg.h
Examining data/colobot-0.1.12/src/object/auto/autofactory.cpp
Examining data/colobot-0.1.12/src/object/auto/autofactory.h
Examining data/colobot-0.1.12/src/object/auto/autoflag.cpp
Examining data/colobot-0.1.12/src/object/auto/autoflag.h
Examining data/colobot-0.1.12/src/object/auto/autohouston.cpp
Examining data/colobot-0.1.12/src/object/auto/autohouston.h
Examining data/colobot-0.1.12/src/object/auto/autojostle.cpp
Examining data/colobot-0.1.12/src/object/auto/autojostle.h
Examining data/colobot-0.1.12/src/object/auto/autokid.cpp
Examining data/colobot-0.1.12/src/object/auto/autokid.h
Examining data/colobot-0.1.12/src/object/auto/autolabo.cpp
Examining data/colobot-0.1.12/src/object/auto/autolabo.h
Examining data/colobot-0.1.12/src/object/auto/automush.cpp
Examining data/colobot-0.1.12/src/object/auto/automush.h
Examining data/colobot-0.1.12/src/object/auto/autonest.cpp
Examining data/colobot-0.1.12/src/object/auto/autonest.h
Examining data/colobot-0.1.12/src/object/auto/autonuclearplant.cpp
Examining data/colobot-0.1.12/src/object/auto/autonuclearplant.h
Examining data/colobot-0.1.12/src/object/auto/autoportico.cpp
Examining data/colobot-0.1.12/src/object/auto/autoportico.h
Examining data/colobot-0.1.12/src/object/auto/autopowercaptor.cpp
Examining data/colobot-0.1.12/src/object/auto/autopowercaptor.h
Examining data/colobot-0.1.12/src/object/auto/autopowerplant.cpp
Examining data/colobot-0.1.12/src/object/auto/autopowerplant.h
Examining data/colobot-0.1.12/src/object/auto/autopowerstation.cpp
Examining data/colobot-0.1.12/src/object/auto/autopowerstation.h
Examining data/colobot-0.1.12/src/object/auto/autoradar.cpp
Examining data/colobot-0.1.12/src/object/auto/autoradar.h
Examining data/colobot-0.1.12/src/object/auto/autorepair.cpp
Examining data/colobot-0.1.12/src/object/auto/autorepair.h
Examining data/colobot-0.1.12/src/object/auto/autoresearch.cpp
Examining data/colobot-0.1.12/src/object/auto/autoresearch.h
Examining data/colobot-0.1.12/src/object/auto/autoroot.cpp
Examining data/colobot-0.1.12/src/object/auto/autoroot.h
Examining data/colobot-0.1.12/src/object/auto/autotower.cpp
Examining data/colobot-0.1.12/src/object/auto/autotower.h
Examining data/colobot-0.1.12/src/object/auto/autovault.cpp
Examining data/colobot-0.1.12/src/object/auto/autovault.h
Examining data/colobot-0.1.12/src/object/crash_sphere.h
Examining data/colobot-0.1.12/src/object/drive_type.cpp
Examining data/colobot-0.1.12/src/object/drive_type.h
Examining data/colobot-0.1.12/src/object/implementation/power_container_impl.cpp
Examining data/colobot-0.1.12/src/object/implementation/power_container_impl.h
Examining data/colobot-0.1.12/src/object/implementation/program_storage_impl.cpp
Examining data/colobot-0.1.12/src/object/implementation/program_storage_impl.h
Examining data/colobot-0.1.12/src/object/implementation/programmable_impl.cpp
Examining data/colobot-0.1.12/src/object/implementation/programmable_impl.h
Examining data/colobot-0.1.12/src/object/implementation/task_executor_impl.cpp
Examining data/colobot-0.1.12/src/object/implementation/task_executor_impl.h
Examining data/colobot-0.1.12/src/object/interface/carrier_object.h
Examining data/colobot-0.1.12/src/object/interface/controllable_object.h
Examining data/colobot-0.1.12/src/object/interface/damageable_object.h
Examining data/colobot-0.1.12/src/object/interface/destroyable_object.h
Examining data/colobot-0.1.12/src/object/interface/flying_object.h
Examining data/colobot-0.1.12/src/object/interface/fragile_object.h
Examining data/colobot-0.1.12/src/object/interface/interactive_object.h
Examining data/colobot-0.1.12/src/object/interface/jet_flying_object.h
Examining data/colobot-0.1.12/src/object/interface/jostleable_object.h
Examining data/colobot-0.1.12/src/object/interface/movable_object.h
Examining data/colobot-0.1.12/src/object/interface/power_container_object.h
Examining data/colobot-0.1.12/src/object/interface/powered_object.h
Examining data/colobot-0.1.12/src/object/interface/program_storage_object.h
Examining data/colobot-0.1.12/src/object/interface/programmable_object.h
Examining data/colobot-0.1.12/src/object/interface/ranged_object.h
Examining data/colobot-0.1.12/src/object/interface/shielded_auto_regen_object.h
Examining data/colobot-0.1.12/src/object/interface/shielded_object.h
Examining data/colobot-0.1.12/src/object/interface/task_executor_object.h
Examining data/colobot-0.1.12/src/object/interface/trace_drawing_object.cpp
Examining data/colobot-0.1.12/src/object/interface/trace_drawing_object.h
Examining data/colobot-0.1.12/src/object/interface/transportable_object.h
Examining data/colobot-0.1.12/src/object/mission_type.h
Examining data/colobot-0.1.12/src/object/motion/motion.cpp
Examining data/colobot-0.1.12/src/object/motion/motion.h
Examining data/colobot-0.1.12/src/object/motion/motionant.cpp
Examining data/colobot-0.1.12/src/object/motion/motionant.h
Examining data/colobot-0.1.12/src/object/motion/motionbee.cpp
Examining data/colobot-0.1.12/src/object/motion/motionbee.h
Examining data/colobot-0.1.12/src/object/motion/motionhuman.cpp
Examining data/colobot-0.1.12/src/object/motion/motionhuman.h
Examining data/colobot-0.1.12/src/object/motion/motionlevelcontroller.cpp
Examining data/colobot-0.1.12/src/object/motion/motionlevelcontroller.h
Examining data/colobot-0.1.12/src/object/motion/motionqueen.cpp
Examining data/colobot-0.1.12/src/object/motion/motionqueen.h
Examining data/colobot-0.1.12/src/object/motion/motionspider.cpp
Examining data/colobot-0.1.12/src/object/motion/motionspider.h
Examining data/colobot-0.1.12/src/object/motion/motiontoto.cpp
Examining data/colobot-0.1.12/src/object/motion/motiontoto.h
Examining data/colobot-0.1.12/src/object/motion/motionvehicle.cpp
Examining data/colobot-0.1.12/src/object/motion/motionvehicle.h
Examining data/colobot-0.1.12/src/object/motion/motionworm.cpp
Examining data/colobot-0.1.12/src/object/motion/motionworm.h
Examining data/colobot-0.1.12/src/object/object.cpp
Examining data/colobot-0.1.12/src/object/object.h
Examining data/colobot-0.1.12/src/object/object_create_exception.h
Examining data/colobot-0.1.12/src/object/object_create_params.h
Examining data/colobot-0.1.12/src/object/object_factory.cpp
Examining data/colobot-0.1.12/src/object/object_factory.h
Examining data/colobot-0.1.12/src/object/object_interface_type.h
Examining data/colobot-0.1.12/src/object/object_manager.cpp
Examining data/colobot-0.1.12/src/object/object_manager.h
Examining data/colobot-0.1.12/src/object/object_type.h
Examining data/colobot-0.1.12/src/object/old_object.cpp
Examining data/colobot-0.1.12/src/object/old_object.h
Examining data/colobot-0.1.12/src/object/old_object_interface.cpp
Examining data/colobot-0.1.12/src/object/old_object_interface.h
Examining data/colobot-0.1.12/src/object/subclass/base_alien.cpp
Examining data/colobot-0.1.12/src/object/subclass/base_alien.h
Examining data/colobot-0.1.12/src/object/subclass/base_building.cpp
Examining data/colobot-0.1.12/src/object/subclass/base_building.h
Examining data/colobot-0.1.12/src/object/subclass/base_robot.cpp
Examining data/colobot-0.1.12/src/object/subclass/base_robot.h
Examining data/colobot-0.1.12/src/object/subclass/base_vehicle.cpp
Examining data/colobot-0.1.12/src/object/subclass/base_vehicle.h
Examining data/colobot-0.1.12/src/object/subclass/exchange_post.cpp
Examining data/colobot-0.1.12/src/object/subclass/exchange_post.h
Examining data/colobot-0.1.12/src/object/subclass/shielder.cpp
Examining data/colobot-0.1.12/src/object/subclass/shielder.h
Examining data/colobot-0.1.12/src/object/subclass/static_object.cpp
Examining data/colobot-0.1.12/src/object/subclass/static_object.h
Examining data/colobot-0.1.12/src/object/task/task.cpp
Examining data/colobot-0.1.12/src/object/task/task.h
Examining data/colobot-0.1.12/src/object/task/taskadvance.cpp
Examining data/colobot-0.1.12/src/object/task/taskadvance.h
Examining data/colobot-0.1.12/src/object/task/taskbuild.cpp
Examining data/colobot-0.1.12/src/object/task/taskbuild.h
Examining data/colobot-0.1.12/src/object/task/taskdeletemark.cpp
Examining data/colobot-0.1.12/src/object/task/taskdeletemark.h
Examining data/colobot-0.1.12/src/object/task/taskfire.cpp
Examining data/colobot-0.1.12/src/object/task/taskfire.h
Examining data/colobot-0.1.12/src/object/task/taskfireant.cpp
Examining data/colobot-0.1.12/src/object/task/taskfireant.h
Examining data/colobot-0.1.12/src/object/task/taskflag.cpp
Examining data/colobot-0.1.12/src/object/task/taskflag.h
Examining data/colobot-0.1.12/src/object/task/taskgoto.cpp
Examining data/colobot-0.1.12/src/object/task/taskgoto.h
Examining data/colobot-0.1.12/src/object/task/taskgungoal.cpp
Examining data/colobot-0.1.12/src/object/task/taskgungoal.h
Examining data/colobot-0.1.12/src/object/task/taskinfo.cpp
Examining data/colobot-0.1.12/src/object/task/taskinfo.h
Examining data/colobot-0.1.12/src/object/task/taskmanip.cpp
Examining data/colobot-0.1.12/src/object/task/taskmanip.h
Examining data/colobot-0.1.12/src/object/task/taskpen.cpp
Examining data/colobot-0.1.12/src/object/task/taskpen.h
Examining data/colobot-0.1.12/src/object/task/taskrecover.cpp
Examining data/colobot-0.1.12/src/object/task/taskrecover.h
Examining data/colobot-0.1.12/src/object/task/tasksearch.cpp
Examining data/colobot-0.1.12/src/object/task/tasksearch.h
Examining data/colobot-0.1.12/src/object/task/taskshield.cpp
Examining data/colobot-0.1.12/src/object/task/taskshield.h
Examining data/colobot-0.1.12/src/object/task/taskspiderexplo.cpp
Examining data/colobot-0.1.12/src/object/task/taskspiderexplo.h
Examining data/colobot-0.1.12/src/object/task/tasktake.cpp
Examining data/colobot-0.1.12/src/object/task/tasktake.h
Examining data/colobot-0.1.12/src/object/task/taskterraform.cpp
Examining data/colobot-0.1.12/src/object/task/taskterraform.h
Examining data/colobot-0.1.12/src/object/task/taskturn.cpp
Examining data/colobot-0.1.12/src/object/task/taskturn.h
Examining data/colobot-0.1.12/src/object/task/taskwait.cpp
Examining data/colobot-0.1.12/src/object/task/taskwait.h
Examining data/colobot-0.1.12/src/object/tool_type.cpp
Examining data/colobot-0.1.12/src/object/tool_type.h
Examining data/colobot-0.1.12/src/physics/physics.cpp
Examining data/colobot-0.1.12/src/physics/physics.h
Examining data/colobot-0.1.12/src/script/cbottoken.cpp
Examining data/colobot-0.1.12/src/script/cbottoken.h
Examining data/colobot-0.1.12/src/script/script.cpp
Examining data/colobot-0.1.12/src/script/scriptfunc.cpp
Examining data/colobot-0.1.12/src/script/scriptfunc.h
Examining data/colobot-0.1.12/src/script/script.h
Examining data/colobot-0.1.12/src/sound/oalsound/alsound.cpp
Examining data/colobot-0.1.12/src/sound/oalsound/alsound.h
Examining data/colobot-0.1.12/src/sound/oalsound/buffer.cpp
Examining data/colobot-0.1.12/src/sound/oalsound/buffer.h
Examining data/colobot-0.1.12/src/sound/oalsound/channel.cpp
Examining data/colobot-0.1.12/src/sound/oalsound/channel.h
Examining data/colobot-0.1.12/src/sound/oalsound/check.cpp
Examining data/colobot-0.1.12/src/sound/oalsound/check.h
Examining data/colobot-0.1.12/src/sound/sound.cpp
Examining data/colobot-0.1.12/src/sound/sound.h
Examining data/colobot-0.1.12/src/sound/sound_type.cpp
Examining data/colobot-0.1.12/src/sound/sound_type.h
Examining data/colobot-0.1.12/src/tools/convert_model.cpp
Examining data/colobot-0.1.12/src/ui/controls/button.cpp
Examining data/colobot-0.1.12/src/ui/controls/button.h
Examining data/colobot-0.1.12/src/ui/controls/check.cpp
Examining data/colobot-0.1.12/src/ui/controls/check.h
Examining data/colobot-0.1.12/src/ui/controls/color.cpp
Examining data/colobot-0.1.12/src/ui/controls/color.h
Examining data/colobot-0.1.12/src/ui/controls/control.cpp
Examining data/colobot-0.1.12/src/ui/controls/control.h
Examining data/colobot-0.1.12/src/ui/controls/edit.cpp
Examining data/colobot-0.1.12/src/ui/controls/edit.h
Examining data/colobot-0.1.12/src/ui/controls/editvalue.cpp
Examining data/colobot-0.1.12/src/ui/controls/editvalue.h
Examining data/colobot-0.1.12/src/ui/controls/enumslider.cpp
Examining data/colobot-0.1.12/src/ui/controls/enumslider.h
Examining data/colobot-0.1.12/src/ui/controls/gauge.cpp
Examining data/colobot-0.1.12/src/ui/controls/gauge.h
Examining data/colobot-0.1.12/src/ui/controls/group.cpp
Examining data/colobot-0.1.12/src/ui/controls/group.h
Examining data/colobot-0.1.12/src/ui/controls/image.cpp
Examining data/colobot-0.1.12/src/ui/controls/image.h
Examining data/colobot-0.1.12/src/ui/controls/interface.cpp
Examining data/colobot-0.1.12/src/ui/controls/interface.h
Examining data/colobot-0.1.12/src/ui/controls/key.cpp
Examining data/colobot-0.1.12/src/ui/controls/key.h
Examining data/colobot-0.1.12/src/ui/controls/label.cpp
Examining data/colobot-0.1.12/src/ui/controls/label.h
Examining data/colobot-0.1.12/src/ui/controls/list.cpp
Examining data/colobot-0.1.12/src/ui/controls/list.h
Examining data/colobot-0.1.12/src/ui/controls/map.cpp
Examining data/colobot-0.1.12/src/ui/controls/map.h
Examining data/colobot-0.1.12/src/ui/controls/scroll.cpp
Examining data/colobot-0.1.12/src/ui/controls/scroll.h
Examining data/colobot-0.1.12/src/ui/controls/shortcut.cpp
Examining data/colobot-0.1.12/src/ui/controls/shortcut.h
Examining data/colobot-0.1.12/src/ui/controls/slider.cpp
Examining data/colobot-0.1.12/src/ui/controls/slider.h
Examining data/colobot-0.1.12/src/ui/controls/target.cpp
Examining data/colobot-0.1.12/src/ui/controls/target.h
Examining data/colobot-0.1.12/src/ui/controls/window.cpp
Examining data/colobot-0.1.12/src/ui/controls/window.h
Examining data/colobot-0.1.12/src/ui/debug_menu.cpp
Examining data/colobot-0.1.12/src/ui/debug_menu.h
Examining data/colobot-0.1.12/src/ui/displayinfo.cpp
Examining data/colobot-0.1.12/src/ui/displayinfo.h
Examining data/colobot-0.1.12/src/ui/displaytext.cpp
Examining data/colobot-0.1.12/src/ui/displaytext.h
Examining data/colobot-0.1.12/src/ui/maindialog.cpp
Examining data/colobot-0.1.12/src/ui/maindialog.h
Examining data/colobot-0.1.12/src/ui/mainmap.cpp
Examining data/colobot-0.1.12/src/ui/mainmap.h
Examining data/colobot-0.1.12/src/ui/mainshort.cpp
Examining data/colobot-0.1.12/src/ui/mainshort.h
Examining data/colobot-0.1.12/src/ui/mainui.cpp
Examining data/colobot-0.1.12/src/ui/mainui.h
Examining data/colobot-0.1.12/src/ui/object_interface.cpp
Examining data/colobot-0.1.12/src/ui/object_interface.h
Examining data/colobot-0.1.12/src/ui/screen/screen.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen.h
Examining data/colobot-0.1.12/src/ui/screen/screen_apperance.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_apperance.h
Examining data/colobot-0.1.12/src/ui/screen/screen_io.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_io.h
Examining data/colobot-0.1.12/src/ui/screen/screen_io_read.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_io_read.h
Examining data/colobot-0.1.12/src/ui/screen/screen_io_write.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_io_write.h
Examining data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_level_list.h
Examining data/colobot-0.1.12/src/ui/screen/screen_loading.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_loading.h
Examining data/colobot-0.1.12/src/ui/screen/screen_main_menu.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_main_menu.h
Examining data/colobot-0.1.12/src/ui/screen/screen_player_select.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_player_select.h
Examining data/colobot-0.1.12/src/ui/screen/screen_quit.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_quit.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_controls.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_controls.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_display.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_display.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_game.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_game.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_graphics.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_graphics.h
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_sound.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_setup_sound.h
Examining data/colobot-0.1.12/src/ui/screen/screen_welcome.cpp
Examining data/colobot-0.1.12/src/ui/screen/screen_welcome.h
Examining data/colobot-0.1.12/src/ui/studio.cpp
Examining data/colobot-0.1.12/src/ui/studio.h
Examining data/colobot-0.1.12/test/cbot/compile_graph.cpp
Examining data/colobot-0.1.12/test/cbot/console.cpp
Examining data/colobot-0.1.12/test/unit/CBot/CBotToken_test.cpp
Examining data/colobot-0.1.12/test/unit/CBot/CBot_test.cpp
Examining data/colobot-0.1.12/test/unit/app/app_test.cpp
Examining data/colobot-0.1.12/test/unit/common/config_file_test.cpp
Examining data/colobot-0.1.12/test/unit/common/system/system_linux_test.cpp
Examining data/colobot-0.1.12/test/unit/common/system/system_windows_test.cpp
Examining data/colobot-0.1.12/test/unit/graphics/engine/lightman_test.cpp
Examining data/colobot-0.1.12/test/unit/main.cpp
Examining data/colobot-0.1.12/test/unit/math/func_test.cpp
Examining data/colobot-0.1.12/test/unit/math/geometry_test.cpp
Examining data/colobot-0.1.12/test/unit/math/matrix_test.cpp
Examining data/colobot-0.1.12/test/unit/math/vector_test.cpp

FINAL RESULTS:

data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-death-test-internal.h:165:5:  [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(\
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1609:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:59:10:  [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.
# define snprintf _snprintf
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:59:19:  [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.
# define snprintf _snprintf
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:61:10:  [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.
# define snprintf _snprintf_s
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:63:10:  [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.
# define snprintf _snprintf
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:63:19:  [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.
# define snprintf _snprintf
data/colobot-0.1.12/lib/gtest/src/gtest.cc:136:10:  [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.
# define vsnprintf _vsnprintf
data/colobot-0.1.12/lib/gtest/src/gtest.cc:840:12:  [4] (buffer) StrNCpy:
  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).
    posix::StrNCpy(clone, str, length);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1460:12:  [4] (buffer) StrNCpy:
  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).
    posix::StrNCpy(
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1713:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1717:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:2634: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(fmt, args);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:2653:3:  [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(fmt, args);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:2660:3:  [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(fmt, args);
data/colobot-0.1.12/lib/localename/localename.c:1347:11:  [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 (name, legacy_table[i1].unixy);
data/colobot-0.1.12/lib/localename/localename.c:1371:11:  [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 (name, langtag_table[i1].unixy);
data/colobot-0.1.12/lib/localename/localename.c:1391:11:  [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 (name + 3, script_table[i1].unixy);
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:121:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void)vfprintf(stderr,fmt,ap);
data/colobot-0.1.12/src/app/app.cpp:1782:13:  [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(envLang, currentEnvLang);
data/colobot-0.1.12/src/app/app.cpp:1871: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(m_languageLocale, langStr.c_str());
data/colobot-0.1.12/src/common/logger.cpp:72:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(out, str, args2);
data/colobot-0.1.12/src/common/restext.cpp:772: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(g_gamerName, name.c_str());
data/colobot-0.1.12/src/common/stringutils.cpp:49:22:  [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 needed = vsnprintf (buf, size, fmt, ap);
data/colobot-0.1.12/src/common/system/system_linux.cpp:32:9:  [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 (system("zenity --version 1> /dev/null 2> /dev/null") != 0)
data/colobot-0.1.12/src/common/system/system_linux.cpp:68:16:  [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.
    int code = system(command.c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:2814: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(m_infoFilename[SATCOM_HUSTON], line->GetParam("name")->AsPath("help/%lng%").c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:2824: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(m_infoFilename[SATCOM_SAT], line->GetParam("name")->AsPath("help/%lng%").c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:2830: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(m_infoFilename[SATCOM_LOADING], line->GetParam("name")->AsPath("help/%lng%").c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:2836: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(m_infoFilename[SATCOM_PROG], line->GetParam("name")->AsPath("help/%lng%").c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:2841: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(m_infoFilename[SATCOM_SOLUCE], line->GetParam("name")->AsPath("help/%lng%").c_str());
data/colobot-0.1.12/src/level/robotmain.cpp:3507: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(m_mapFilename, line->GetParam("filename")->AsPath("textures").c_str());
data/colobot-0.1.12/src/object/subclass/exchange_post.cpp:628:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(text, "%s = %.2f", infoList[i].name.c_str(), infoList[i].value);
data/colobot-0.1.12/src/script/script.cpp:807: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(newScript.get(), m_script.get());
data/colobot-0.1.12/src/script/script.cpp:881: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(res, resStr.c_str());
data/colobot-0.1.12/src/script/script.cpp:882:26:  [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).
    if ( name[0] == 0 )  strcpy(text, res);
data/colobot-0.1.12/src/script/script.cpp:883:26:  [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).
    else                 strcpy(text, name);
data/colobot-0.1.12/src/script/script.cpp:885:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(script, "extern void object::%s()\n{\n\t\n\t\n\t\n}\n", text);
data/colobot-0.1.12/src/script/script.cpp:948: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(script+j, text);
data/colobot-0.1.12/src/ui/controls/edit.cpp:1635: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(iName, GetNameParam(buffer.data()+i+7, 0).c_str());
data/colobot-0.1.12/src/ui/controls/edit.cpp:1799: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(iName, iNameStr.c_str());
data/colobot-0.1.12/src/ui/controls/list.cpp:466:25:  [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(text, pb);
data/colobot-0.1.12/src/ui/object_interface.cpp:1957:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name, "%d: %s", i+1, title.c_str());
data/colobot-0.1.12/src/ui/object_interface.cpp:1961:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name, "*%d: %s", i+1, title.c_str());
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:383:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(line, "%d: %s", j+1, levelParser.Get("Title")->GetParam("text")->AsString().c_str());
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:387:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(line, "%s", (std::string("[ERROR]: ")+e.what()).c_str());
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:450:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(line, "%d: %s", j+1, levelParser.Get("Title")->GetParam("text")->AsString().c_str());
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:454:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(line, "%s", (std::string("[ERROR]: ")+e.what()).c_str());
data/colobot-0.1.12/lib/gtest/include/gtest/gtest.h:866:39:  [3] (random) random:
  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.
  void ShuffleTests(internal::Random* random);
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1647:27:  [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* const env = getenv(name);
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1650:10:  [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.
  return getenv(name);
data/colobot-0.1.12/lib/gtest/src/gtest-internal-inl.h:302:37:  [3] (random) random:
  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.
void ShuffleRange(internal::Random* random, int begin, int end,
data/colobot-0.1.12/lib/gtest/src/gtest-internal-inl.h:323:39:  [3] (random) random:
  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.
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
data/colobot-0.1.12/lib/gtest/src/gtest-internal-inl.h:324:16:  [3] (random) random:
  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.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/colobot-0.1.12/lib/gtest/src/gtest-internal-inl.h:774:21:  [3] (random) random:
  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.
  internal::Random* random() { return &random_; }
data/colobot-0.1.12/lib/gtest/src/gtest.cc:2463:47:  [3] (random) random:
  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.
void TestCase::ShuffleTests(internal::Random* random) {
data/colobot-0.1.12/lib/gtest/src/gtest.cc:2464:11:  [3] (random) random:
  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.
  Shuffle(random, &test_indices_);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:4215:7:  [3] (random) random:
  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.
      random()->Reseed(random_seed_);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:4486:16:  [3] (random) random:
  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.
  ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:4489:16:  [3] (random) random:
  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.
  ShuffleRange(random(), last_death_test_case_ + 1,
data/colobot-0.1.12/lib/gtest/src/gtest.cc:4494:34:  [3] (random) random:
  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.
    test_cases_[i]->ShuffleTests(random());
data/colobot-0.1.12/lib/localename/localename.c:1451:7:  [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.
  if (getenv ("GETTEXT_MUI") != NULL)
data/colobot-0.1.12/lib/localename/localename.c:2712:12:  [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.
  retval = getenv ("LC_ALL");
data/colobot-0.1.12/lib/localename/localename.c:2716:12:  [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.
  retval = getenv (categoryname);
data/colobot-0.1.12/lib/localename/localename.c:2721:12:  [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.
  retval = getenv("LANGUAGE");
data/colobot-0.1.12/lib/localename/localename.c:2726:12:  [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.
  retval = getenv ("LANG");
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:348:28:  [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.
        posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:523:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(int nargc, char * const *nargv, const char *options)
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:543:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int nargc, char * const *nargv, const char *options,
data/colobot-0.1.12/lib/wingetopt/src/getopt.h:29:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt(int nargc, char * const *nargv, const char *options);
data/colobot-0.1.12/lib/wingetopt/src/getopt.h:77:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long(int nargc, char * const *nargv, const char *options,
data/colobot-0.1.12/src/common/system/system_linux.cpp:105:30:  [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.
    char *envXDG_DATA_HOME = getenv("XDG_CONFIG_DATA");
data/colobot-0.1.12/src/common/system/system_linux.cpp:108:25:  [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.
        char *envHOME = getenv("HOME");
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:1155:17:  [3] (random) random:
  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.
    static char random[100] =
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:1211:31:  [3] (random) random:
  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.
                    int rnd = random[(x%10)+(y%10)*10];
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:1220:31:  [3] (random) random:
  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.
                    int rnd = random[(x%10)+(y%10)*10];
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1621: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).
  return fopen(path, mode);
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-string.h:304: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(str, buffer, a_length);
data/colobot-0.1.12/lib/gtest/src/gtest-death-test.cc:274: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[256];
data/colobot-0.1.12/lib/gtest/src/gtest-death-test.cc:693: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/colobot-0.1.12/lib/gtest/src/gtest-filepath.cc:106: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/colobot-0.1.12/lib/gtest/src/gtest-filepath.cc:109: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:416: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(buffer, regex, len);
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:494: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 temp_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:495: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 temp_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:513:29:  [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).
    const int captured_fd = mkstemp(name_template);
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:69: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 text[5] = "";
data/colobot-0.1.12/lib/gtest/src/gtest.cc:863:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/colobot-0.1.12/lib/gtest/src/gtest.cc:866:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1354: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 error_text[kBufSize] = { '\0' };
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1522: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[32];  // CodePointToUtf8 requires a buffer this big.
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1704: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[4096];
data/colobot-0.1.12/lib/hippomocks/hippomocks.h:270: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 backupData[16]; // typical use is 5 for 32-bit and 14 for 64-bit code.
data/colobot-0.1.12/lib/hippomocks/hippomocks.h:313: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(origFunc, backupData, sizeof(backupData)); 
data/colobot-0.1.12/lib/hippomocks/hippomocks.h:1306:11:  [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 remaining[sizeof(T)];
data/colobot-0.1.12/lib/hippomocks/hippomocks.h:1331: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(funcTable, notimplementedfuncs, sizeof(funcptr) * VIRT_FUNC_LIMIT);
data/colobot-0.1.12/lib/hippomocks/hippomocks.h:5190:4:  [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(funcTable, zMock->notimplementedfuncs, sizeof(funcptr) * VIRT_FUNC_LIMIT);
data/colobot-0.1.12/lib/localename/localename.c:1152:26:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1152:51:  [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.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1290:26:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1290:51:  [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.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1320:26:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1320:50:  [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.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/colobot-0.1.12/lib/localename/localename.c:1453:14:  [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 namebuf[256];
data/colobot-0.1.12/lib/localename/localename.c:2537: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 contents[100]; /* has variable size */
data/colobot-0.1.12/lib/localename/localename.c:2568: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 (new_node->contents, string, size);
data/colobot-0.1.12/lib/localename/localename.c:2797: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 namebuf[256];
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:182:15:  [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 **) nargv)[pos] = nargv[cstart];
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:184:15:  [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 **)nargv)[cstart] = swap;
data/colobot-0.1.12/src/CBot/CBotDebug.cpp:56: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 buffer[20];
data/colobot-0.1.12/src/CBot/CBotDebug.cpp:57: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(buffer, "instr%d", instructions[ptr]);
data/colobot-0.1.12/src/CBot/CBotFileUtils.cpp:38: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).
    return fopen(name, mode);
data/colobot-0.1.12/src/CBot/CBotFileUtils.cpp:110: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    buf[1000];
data/colobot-0.1.12/src/app/app.cpp:391: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).
                m_deviceConfig.size.x = atoi(w.c_str());
data/colobot-0.1.12/src/app/app.cpp:392: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).
                m_deviceConfig.size.y = atoi(h.c_str());
data/colobot-0.1.12/src/app/app.cpp:565:21:  [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).
                w = atoi(ws.c_str());
data/colobot-0.1.12/src/app/app.cpp:566:21:  [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).
                h = atoi(hs.c_str());
data/colobot-0.1.12/src/app/app.cpp:1775: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 envLang[50] = { 0 };
data/colobot-0.1.12/src/app/app.h:406: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 m_languageLocale[50];
data/colobot-0.1.12/src/app/main.cpp:126:21:  [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* logFile = fopen(logFileName.c_str(), "w");
data/colobot-0.1.12/src/common/image.cpp:96: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, "wb");
data/colobot-0.1.12/src/common/image.cpp:443: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(&resultPixels[pos], &srcPixels[pos], pitch);
data/colobot-0.1.12/src/common/image.cpp:469: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(&resultPixels[pos], &srcPixels[(pxLength-pos)-pitch], pitch);
data/colobot-0.1.12/src/common/resources/inputstream.cpp:35:5:  [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(filename);
data/colobot-0.1.12/src/common/resources/inputstream.cpp:42:20:  [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).
void CInputStream::open(const std::string& filename)
data/colobot-0.1.12/src/common/resources/inputstream.cpp:44: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).
    m_buffer.open(filename);
data/colobot-0.1.12/src/common/resources/inputstream.h:43:10:  [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).
    void open(const std::string& filename);
data/colobot-0.1.12/src/common/resources/inputstreambuffer.cpp:48: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).
void CInputStreamBuffer::open(const std::string &filename)
data/colobot-0.1.12/src/common/resources/inputstreambuffer.h:38:10:  [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).
    void open(const std::string &filename);
data/colobot-0.1.12/src/common/resources/outputstream.cpp:35:5:  [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(filename, mode);
data/colobot-0.1.12/src/common/resources/outputstream.cpp:42:21:  [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).
void COutputStream::open(const std::string& filename, std::ios_base::openmode mode)
data/colobot-0.1.12/src/common/resources/outputstream.cpp:44: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).
    m_buffer.open(filename, mode);
data/colobot-0.1.12/src/common/resources/outputstream.h:54:10:  [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).
    void open(const std::string& filename, std::ios_base::openmode mode = std::ios_base::out);
data/colobot-0.1.12/src/common/resources/outputstreambuffer.cpp:48: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).
void COutputStreamBuffer::open(const std::string &filename, std::ios_base::openmode mode)
data/colobot-0.1.12/src/common/resources/outputstreambuffer.h:44:10:  [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).
    void open(const std::string &filename, std::ios_base::openmode mode);
data/colobot-0.1.12/src/common/restext.cpp:767: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 g_gamerName[100];
data/colobot-0.1.12/src/common/stringutils.cpp:43: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 stackbuf[1024];
data/colobot-0.1.12/src/common/system/system_macosx.cpp:73: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 path[PATH_MAX];
data/colobot-0.1.12/src/common/system/system_windows.cpp:104:23:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int size_needed = MultiByteToWideChar(CP_UTF8, 0, &str[0], static_cast<int>(str.size()), nullptr, 0);
data/colobot-0.1.12/src/common/system/system_windows.cpp:106:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, &str[0], static_cast<int>(str.size()), &wstrTo[0], size_needed);
data/colobot-0.1.12/src/graphics/engine/oldmodelmanager.cpp:56: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).
        stream.open("models/" + fileName);
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:921: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 test[4];
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:977: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 mat[4];
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:1155: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 random[100] =
data/colobot-0.1.12/src/graphics/engine/terrain.cpp:1772: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 table[41*41] = { 1 };
data/colobot-0.1.12/src/graphics/engine/terrain.h:341: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        mat[4] = {};
data/colobot-0.1.12/src/graphics/engine/terrain.h:355: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        mat[4] = {};
data/colobot-0.1.12/src/graphics/model/model_input.cpp:561: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 tex2Name[20] = { 0 };
data/colobot-0.1.12/src/graphics/model/model_input.cpp:562:18:  [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.
            std::sprintf(tex2Name, "dirty%.2d.png", t.texNum2);
data/colobot-0.1.12/src/graphics/model/model_io_structs.h:191: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 texName[21] = {'\0'};
data/colobot-0.1.12/src/graphics/model/model_io_structs.h:210: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 texName[21] = {'\0'};
data/colobot-0.1.12/src/graphics/model/model_io_structs.h:234: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 texName[21] = {'\0'};
data/colobot-0.1.12/src/graphics/model/model_manager.cpp:43:12:  [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).
    stream.open(modelFile.c_str());
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:291: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 filename[128];
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:293: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(filename, "shaders/gl21/vs_normal.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:302: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(filename, "shaders/gl21/fs_normal.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:323: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(filename, "shaders/gl21/vs_interface.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:332: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(filename, "shaders/gl21/fs_interface.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:353: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(filename, "shaders/gl21/vs_shadow.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:362: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(filename, "shaders/gl21/fs_shadow.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:398: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 name[64];
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:399: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(name, "uni_TextureEnabled[%d]", i);
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:420: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(name, "uni_Light[%d].Position", i);
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:423: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(name, "uni_Light[%d].Ambient", i);
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:426: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(name, "uni_Light[%d].Diffuse", i);
data/colobot-0.1.12/src/graphics/opengl/gl21device.cpp:429: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(name, "uni_Light[%d].Specular", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:263: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 filename[64];
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:265: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(filename, "shaders/gl33/vs_normal.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:274: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(filename, "shaders/gl33/fs_normal.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:295: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(filename, "shaders/gl33/vs_interface.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:304: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(filename, "shaders/gl33/fs_interface.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:325: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(filename, "shaders/gl33/vs_shadow.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:334: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(filename, "shaders/gl33/fs_shadow.glsl");
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:395: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(name, "uni_Light[%d].Enabled", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:398: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(name, "uni_Light[%d].Position", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:401: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(name, "uni_Light[%d].Ambient", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:404: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(name, "uni_Light[%d].Diffuse", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:407: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(name, "uni_Light[%d].Specular", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:410: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(name, "uni_Light[%d].Attenuation", i);
data/colobot-0.1.12/src/graphics/opengl/gl33device.cpp:1867: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(ptr, data, size);
data/colobot-0.1.12/src/level/parser/parser.cpp:159:10:  [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(m_filename);
data/colobot-0.1.12/src/level/parser/parser.cpp:305:10:  [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(m_filename);
data/colobot-0.1.12/src/level/player_profile.cpp:261:10:  [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(filename);
data/colobot-0.1.12/src/level/player_profile.cpp:299:10:  [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(filename);
data/colobot-0.1.12/src/level/player_profile.cpp:363:10:  [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(filename);
data/colobot-0.1.12/src/level/player_profile.cpp:383:10:  [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(filename);
data/colobot-0.1.12/src/level/robotmain.cpp:1495: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(m_infoFilename[SATCOM_OBJECT], "objects.txt");
data/colobot-0.1.12/src/level/robotmain.cpp:3053: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 tex[20] = { 0 };
data/colobot-0.1.12/src/level/robotmain.cpp:3054:21:  [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(tex, "dirty%.2d.png", line->GetParam("rank")->AsInt());
data/colobot-0.1.12/src/level/robotmain.cpp:3943: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 name[100];
data/colobot-0.1.12/src/level/robotmain.cpp:3944: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(name, "textures/objects/face%.2d.png", face+1);
data/colobot-0.1.12/src/level/robotmain.cpp:5393: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 text[10];
data/colobot-0.1.12/src/level/robotmain.cpp:5394: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(text, "x%.1f", speed);
data/colobot-0.1.12/src/level/robotmain.cpp:5654: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 timestr[100];
data/colobot-0.1.12/src/level/robotmain.cpp:5655: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 infostr[100];
data/colobot-0.1.12/src/level/robotmain.cpp:5669: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 infostr[100];
data/colobot-0.1.12/src/level/robotmain.h:631: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            m_mapFilename[100] = {};
data/colobot-0.1.12/src/level/robotmain.h:639: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            m_infoFilename[SATCOM_MAX][100] = {}; // names of text files
data/colobot-0.1.12/src/object/motion/motionhuman.cpp:111: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        filename[100];
data/colobot-0.1.12/src/object/motion/motionhuman.cpp:123: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(filename, "human2h%d.mod", face+1);
data/colobot-0.1.12/src/object/motion/motionhuman.cpp:133: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(filename, "human2g%d.mod", glasses);
data/colobot-0.1.12/src/object/motion/motionhuman.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(filename, "human2c%d.mod", face+1);
data/colobot-0.1.12/src/object/motion/motionhuman.cpp:182: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(filename, "human2h%d.mod", face+1);
data/colobot-0.1.12/src/object/motion/motionhuman.cpp:206: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(filename, "human2g%d.mod", glasses);
data/colobot-0.1.12/src/object/motion/motionspider.cpp:74: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        name[50];
data/colobot-0.1.12/src/object/motion/motionspider.cpp:136: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(name, "spider%d.mod", j+3);  // 3..6
data/colobot-0.1.12/src/object/motion/motionvehicle.cpp: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            name[50];
data/colobot-0.1.12/src/object/motion/motionvehicle.cpp:553:17:  [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(name, "ant%d.mod", j+4);  // 4..6
data/colobot-0.1.12/src/object/motion/motionvehicle.cpp:760: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(name, "drawer%d.mod", 10+i);
data/colobot-0.1.12/src/object/subclass/exchange_post.cpp:627: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 text[100];
data/colobot-0.1.12/src/object/subclass/exchange_post.cpp:649: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 text[100];
data/colobot-0.1.12/src/object/task/taskgoto.h:150: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            m_bmIter[MAXPOINTS+2] = {};
data/colobot-0.1.12/src/script/script.cpp:765: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(script+pos, token, lToken);
data/colobot-0.1.12/src/script/script.cpp:873: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    res[100];
data/colobot-0.1.12/src/script/script.cpp:874: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    text[100];
data/colobot-0.1.12/src/script/script.cpp:875: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    script[500];
data/colobot-0.1.12/src/script/script.cpp:876: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[500];
data/colobot-0.1.12/src/script/script.cpp:915: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).
        stream.open(sf);
data/colobot-0.1.12/src/tools/convert_model.cpp:249: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).
        stream.open(ARGS.inputFile, std::ios_base::in | std::ios_base::binary);
data/colobot-0.1.12/src/tools/convert_model.cpp:286: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).
        stream.open(ARGS.outputFile, std::ios_base::out | std::ios_base::binary);
data/colobot-0.1.12/src/ui/controls/edit.cpp:1428:24:  [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_value = atoi(results.at(rank).c_str());
data/colobot-0.1.12/src/ui/controls/edit.cpp:1449: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        iName[50];
data/colobot-0.1.12/src/ui/controls/edit.cpp:1457:12:  [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).
    stream.open(filename);
data/colobot-0.1.12/src/ui/controls/edit.cpp:1862:12:  [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).
    stream.open(filename);
data/colobot-0.1.12/src/ui/controls/editvalue.cpp:268: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    text[100];
data/colobot-0.1.12/src/ui/controls/editvalue.cpp:276: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(text, "%d", static_cast<int>(value));
data/colobot-0.1.12/src/ui/controls/editvalue.cpp:281: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(text, "%.2f", value);
data/colobot-0.1.12/src/ui/controls/editvalue.cpp:286: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(text, "%d%%", static_cast<int>(value*100.0f));
data/colobot-0.1.12/src/ui/controls/list.cpp:356: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    text[100];
data/colobot-0.1.12/src/ui/object_interface.cpp:1942: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        name[100];
data/colobot-0.1.12/src/ui/object_interface.cpp:1950: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(name, "%d", i+1);
data/colobot-0.1.12/src/ui/screen/screen_io.cpp:60: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[100];
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:342: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[500] = {0};
data/colobot-0.1.12/src/ui/screen/screen_level_list.cpp:422: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[500] = {0};
data/colobot-0.1.12/src/ui/studio.cpp:1591: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            timestr[100];
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1610:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-port.h:1632:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/colobot-0.1.12/lib/gtest/include/gtest/internal/gtest-string.h:200: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).
      ConstructNonNull(a_c_str, strlen(a_c_str));
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:150: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).
  const size_t full_regex_len = strlen(regex) + 10;
data/colobot-0.1.12/lib/gtest/src/gtest-port.cc:404: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).
  const size_t len = strlen(regex);
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:308: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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/colobot-0.1.12/lib/gtest/src/gtest-printers.cc:325:33:  [1] (buffer) wcslen:
  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).
    PrintWideCharsAsStringTo(s, wcslen(s), os);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:851: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).
                    NULL : CloneString(c_str, strlen(c_str));
data/colobot-0.1.12/lib/gtest/src/gtest.cc:861: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).
  const int length = strlen(ansi);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1506:34:  [1] (buffer) wcslen:
  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).
    num_chars = static_cast<int>(wcslen(str));
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1671: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).
  const size_t this_len = strlen(c_str());
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1672: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).
  const size_t suffix_len = strlen(suffix);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1684: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).
  const size_t this_len = strlen(c_str());
data/colobot-0.1.12/lib/gtest/src/gtest.cc:1685: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).
  const size_t suffix_len = strlen(suffix);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:3213: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).
      segment = next_segment + strlen("]]>");
data/colobot-0.1.12/lib/gtest/src/gtest.cc:3442:18:  [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.reserve(strlen(str) + 1);
data/colobot-0.1.12/lib/gtest/src/gtest.cc:4547: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).
  const size_t prefix_len = strlen(prefix);
data/colobot-0.1.12/lib/localename/localename.c:1353:7:  [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 (name) == 7 && name[2] == '-')
data/colobot-0.1.12/lib/localename/localename.c:2561:10:  [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 = strlen (string) + 1;
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:218: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).
        current_argv_len = strlen(current_argv);
data/colobot-0.1.12/lib/wingetopt/src/getopt.c:226: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(long_options[i].name) == current_argv_len) {
data/colobot-0.1.12/src/common/ioutils.h:64:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        istr.read(reinterpret_cast<char*>(&byte), 1);
data/colobot-0.1.12/src/common/ioutils.h:159:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        istr.read(&c, 1);
data/colobot-0.1.12/src/common/system/system_linux.cpp:131:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(usec);
data/colobot-0.1.12/src/common/system/system_macosx.cpp:118:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(usec);
data/colobot-0.1.12/src/graphics/model/model_input.cpp:439:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(t.texName, 20);
data/colobot-0.1.12/src/graphics/model/model_input.cpp:481:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(t.texName, 20);
data/colobot-0.1.12/src/graphics/model/model_input.cpp:531:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(t.texName, 20);
data/colobot-0.1.12/src/graphics/model/model_output.cpp:332:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(t.texName, triangle.tex1Name.c_str(), sizeof(t.texName)-1);
data/colobot-0.1.12/src/script/script.cpp:111:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(m_script.get(), tmp.c_str(), len+1);
data/colobot-0.1.12/src/script/script.cpp:114: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).
    m_len = strlen(m_script.get());
data/colobot-0.1.12/src/script/script.cpp:725: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).
    lScript = strlen(script);
data/colobot-0.1.12/src/script/script.cpp:726: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).
    lToken  = strlen(token);
data/colobot-0.1.12/src/script/script.cpp:759: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).
    lScript = strlen(script);
data/colobot-0.1.12/src/script/script.cpp:760: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).
    lToken  = strlen(token);
data/colobot-0.1.12/src/script/script.cpp:806: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).
    auto newScript = MakeUniqueArray<char>(m_len + strlen(names[i+1]) + 1);
data/colobot-0.1.12/src/script/script.cpp:810: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).
    DeleteToken(m_script.get(), start, strlen(names[i]));
data/colobot-0.1.12/src/script/script.cpp:812: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).
    m_len = strlen(m_script.get());
data/colobot-0.1.12/src/script/script.cpp:891: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).
        cursor2 = 20+strlen(text);  // update "New"
data/colobot-0.1.12/src/script/script.cpp:897: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).
            cursor1 = 20+strlen(text)+6;
data/colobot-0.1.12/src/script/script.cpp:902: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).
            cursor1 = 20+strlen(text)+8;
data/colobot-0.1.12/src/script/script.cpp:922:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stream.read(buffer, len);
data/colobot-0.1.12/src/script/script.cpp:949: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).
                    j += strlen(text);
data/colobot-0.1.12/src/sound/oalsound/buffer.cpp:83:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.insert(data.end(), buffer.begin(), buffer.begin() + read);
data/colobot-0.1.12/src/ui/controls/edit.cpp:1478:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream.read(buffer.data(), len);
data/colobot-0.1.12/src/ui/controls/edit.cpp:2559: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).
    for (unsigned int i = 0; i<strlen(text); ++i)
data/colobot-0.1.12/src/ui/controls/list.cpp:469:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(text, pb, pe - pb);

ANALYSIS SUMMARY:

Hits = 282
Lines analyzed = 215553 in approximately 5.38 seconds (40031 lines/second)
Physical Source Lines of Code (SLOC) = 150045
Hits@level = [0]  85 [1]  47 [2] 159 [3]  28 [4]  48 [5]   0
Hits@level+ = [0+] 367 [1+] 282 [2+] 235 [3+]  76 [4+]  48 [5+]   0
Hits/KSLOC@level+ = [0+] 2.44593 [1+] 1.87944 [2+] 1.5662 [3+] 0.506515 [4+] 0.319904 [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.