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/fillets-ng-1.0.1/src/level/Decor.h Examining data/fillets-ng-1.0.1/src/level/Goal.cpp Examining data/fillets-ng-1.0.1/src/level/ModelList.h Examining data/fillets-ng-1.0.1/src/level/Field.h Examining data/fillets-ng-1.0.1/src/level/LevelInput.h Examining data/fillets-ng-1.0.1/src/level/OnWall.h Examining data/fillets-ng-1.0.1/src/level/StatusDisplay.h Examining data/fillets-ng-1.0.1/src/level/FinderField.cpp Examining data/fillets-ng-1.0.1/src/level/Controls.cpp Examining data/fillets-ng-1.0.1/src/level/Cube.h Examining data/fillets-ng-1.0.1/src/level/KeyControl.cpp Examining data/fillets-ng-1.0.1/src/level/Shape.cpp Examining data/fillets-ng-1.0.1/src/level/Rules.cpp Examining data/fillets-ng-1.0.1/src/level/MarkMask.cpp Examining data/fillets-ng-1.0.1/src/level/LevelLoading.cpp Examining data/fillets-ng-1.0.1/src/level/Unit.h Examining data/fillets-ng-1.0.1/src/level/Rules.h Examining data/fillets-ng-1.0.1/src/level/LevelLoading.h Examining data/fillets-ng-1.0.1/src/level/LevelInput.cpp Examining data/fillets-ng-1.0.1/src/level/OnStack.h Examining data/fillets-ng-1.0.1/src/level/MarkMask.h Examining data/fillets-ng-1.0.1/src/level/game-script.cpp Examining data/fillets-ng-1.0.1/src/level/RoomAccess.h Examining data/fillets-ng-1.0.1/src/level/Controls.h Examining data/fillets-ng-1.0.1/src/level/FinderPlace.h Examining data/fillets-ng-1.0.1/src/level/RopeDecor.h Examining data/fillets-ng-1.0.1/src/level/KeyControl.h Examining data/fillets-ng-1.0.1/src/level/ModelList.cpp Examining data/fillets-ng-1.0.1/src/level/LevelStatus.cpp Examining data/fillets-ng-1.0.1/src/level/Room.cpp Examining data/fillets-ng-1.0.1/src/level/FinderAlg.cpp Examining data/fillets-ng-1.0.1/src/level/ControlSym.h Examining data/fillets-ng-1.0.1/src/level/CountAdvisor.h Examining data/fillets-ng-1.0.1/src/level/StepDecor.cpp Examining data/fillets-ng-1.0.1/src/level/StepCounter.h Examining data/fillets-ng-1.0.1/src/level/MouseControl.cpp Examining data/fillets-ng-1.0.1/src/level/LevelCountDown.h Examining data/fillets-ng-1.0.1/src/level/OnStrongPad.h Examining data/fillets-ng-1.0.1/src/level/OnCondition.h Examining data/fillets-ng-1.0.1/src/level/Goal.h Examining data/fillets-ng-1.0.1/src/level/StepDecor.h Examining data/fillets-ng-1.0.1/src/level/Field.cpp Examining data/fillets-ng-1.0.1/src/level/PhaseLocker.h Examining data/fillets-ng-1.0.1/src/level/ShapeBuilder.h Examining data/fillets-ng-1.0.1/src/level/Anim.cpp Examining data/fillets-ng-1.0.1/src/level/RoomAccess.cpp Examining data/fillets-ng-1.0.1/src/level/ShapeBuilder.cpp Examining data/fillets-ng-1.0.1/src/level/FinderAlg.h Examining data/fillets-ng-1.0.1/src/level/LevelScript.cpp Examining data/fillets-ng-1.0.1/src/level/LayoutException.h Examining data/fillets-ng-1.0.1/src/level/RopeDecor.cpp Examining data/fillets-ng-1.0.1/src/level/Anim.h Examining data/fillets-ng-1.0.1/src/level/game-script.h Examining data/fillets-ng-1.0.1/src/level/View.h Examining data/fillets-ng-1.0.1/src/level/LoadException.h Examining data/fillets-ng-1.0.1/src/level/Cube.cpp Examining data/fillets-ng-1.0.1/src/level/Landslip.h Examining data/fillets-ng-1.0.1/src/level/Dir.h Examining data/fillets-ng-1.0.1/src/level/Room.h Examining data/fillets-ng-1.0.1/src/level/Dir.cpp Examining data/fillets-ng-1.0.1/src/level/MouseControl.h Examining data/fillets-ng-1.0.1/src/level/level-script.h Examining data/fillets-ng-1.0.1/src/level/View.cpp Examining data/fillets-ng-1.0.1/src/level/ModelFactory.cpp Examining data/fillets-ng-1.0.1/src/level/DescFinder.h Examining data/fillets-ng-1.0.1/src/level/FinderField.h Examining data/fillets-ng-1.0.1/src/level/LevelCountDown.cpp Examining data/fillets-ng-1.0.1/src/level/PhaseLocker.cpp Examining data/fillets-ng-1.0.1/src/level/level-script.cpp Examining data/fillets-ng-1.0.1/src/level/StatusDisplay.cpp Examining data/fillets-ng-1.0.1/src/level/LevelStatus.h Examining data/fillets-ng-1.0.1/src/level/ModelFactory.h Examining data/fillets-ng-1.0.1/src/level/LevelScript.h Examining data/fillets-ng-1.0.1/src/level/Level.h Examining data/fillets-ng-1.0.1/src/level/Unit.cpp Examining data/fillets-ng-1.0.1/src/level/Shape.h Examining data/fillets-ng-1.0.1/src/level/Level.cpp Examining data/fillets-ng-1.0.1/src/level/Landslip.cpp Examining data/fillets-ng-1.0.1/src/game/Application.cpp Examining data/fillets-ng-1.0.1/src/game/main.cpp Examining data/fillets-ng-1.0.1/src/game/GameAgent.h Examining data/fillets-ng-1.0.1/src/game/GameAgent.cpp Examining data/fillets-ng-1.0.1/src/game/Application.h Examining data/fillets-ng-1.0.1/src/gengine/Log.h Examining data/fillets-ng-1.0.1/src/gengine/Path.cpp Examining data/fillets-ng-1.0.1/src/gengine/KeyBinder.cpp Examining data/fillets-ng-1.0.1/src/gengine/OptionParams.h Examining data/fillets-ng-1.0.1/src/gengine/Name.cpp Examining data/fillets-ng-1.0.1/src/gengine/SimpleMsg.h Examining data/fillets-ng-1.0.1/src/gengine/Scripter.cpp Examining data/fillets-ng-1.0.1/src/gengine/Random.h Examining data/fillets-ng-1.0.1/src/gengine/ScriptException.h Examining data/fillets-ng-1.0.1/src/gengine/ResourcePack.h Examining data/fillets-ng-1.0.1/src/gengine/Dialog.cpp Examining data/fillets-ng-1.0.1/src/gengine/KeyBinder.h Examining data/fillets-ng-1.0.1/src/gengine/ImgException.cpp Examining data/fillets-ng-1.0.1/src/gengine/MessagerAgent.h Examining data/fillets-ng-1.0.1/src/gengine/ImgException.h Examining data/fillets-ng-1.0.1/src/gengine/AgentPack.cpp Examining data/fillets-ng-1.0.1/src/gengine/TimerAgent.h Examining data/fillets-ng-1.0.1/src/gengine/ResSoundPack.cpp Examining data/fillets-ng-1.0.1/src/gengine/FsPath.h Examining data/fillets-ng-1.0.1/src/gengine/InputAgent.h Examining data/fillets-ng-1.0.1/src/gengine/OptionParams.cpp Examining data/fillets-ng-1.0.1/src/gengine/LogicException.h Examining data/fillets-ng-1.0.1/src/gengine/PlannedDialog.cpp Examining data/fillets-ng-1.0.1/src/gengine/StringMsg.cpp Examining data/fillets-ng-1.0.1/src/gengine/InputHandler.h Examining data/fillets-ng-1.0.1/src/gengine/BaseException.cpp Examining data/fillets-ng-1.0.1/src/gengine/NoCopy.h Examining data/fillets-ng-1.0.1/src/gengine/MessagerAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/DialogStack.h Examining data/fillets-ng-1.0.1/src/gengine/Dialog.h Examining data/fillets-ng-1.0.1/src/gengine/SDLSoundAgent.h Examining data/fillets-ng-1.0.1/src/gengine/BaseMsg.h Examining data/fillets-ng-1.0.1/src/gengine/minmax.h Examining data/fillets-ng-1.0.1/src/gengine/SoundAgent.h Examining data/fillets-ng-1.0.1/src/gengine/ExInfo.cpp Examining data/fillets-ng-1.0.1/src/gengine/BaseAgent.h Examining data/fillets-ng-1.0.1/src/gengine/ScriptAgent.h Examining data/fillets-ng-1.0.1/src/gengine/SysVideo.h Examining data/fillets-ng-1.0.1/src/gengine/SDLMusicLooper.cpp Examining data/fillets-ng-1.0.1/src/gengine/KeyStroke.cpp Examining data/fillets-ng-1.0.1/src/gengine/V2.h Examining data/fillets-ng-1.0.1/src/gengine/InputProvider.h Examining data/fillets-ng-1.0.1/src/gengine/Name.h Examining data/fillets-ng-1.0.1/src/gengine/PathException.h Examining data/fillets-ng-1.0.1/src/gengine/BaseException.h Examining data/fillets-ng-1.0.1/src/gengine/SDLMusicLooper.h Examining data/fillets-ng-1.0.1/src/gengine/options-script.cpp Examining data/fillets-ng-1.0.1/src/gengine/def-script.h Examining data/fillets-ng-1.0.1/src/gengine/ExInfo.h Examining data/fillets-ng-1.0.1/src/gengine/Random.cpp Examining data/fillets-ng-1.0.1/src/gengine/MouseStroke.cpp Examining data/fillets-ng-1.0.1/src/gengine/MixException.cpp Examining data/fillets-ng-1.0.1/src/gengine/ResImagePack.cpp Examining data/fillets-ng-1.0.1/src/gengine/NameException.h Examining data/fillets-ng-1.0.1/src/gengine/MultiDrawer.h Examining data/fillets-ng-1.0.1/src/gengine/VideoAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/IntMsg.cpp Examining data/fillets-ng-1.0.1/src/gengine/SoundAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/Environ.h Examining data/fillets-ng-1.0.1/src/gengine/def-script.cpp Examining data/fillets-ng-1.0.1/src/gengine/ScriptAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/BaseListener.cpp Examining data/fillets-ng-1.0.1/src/gengine/SDLException.h Examining data/fillets-ng-1.0.1/src/gengine/BaseAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/ScriptState.h Examining data/fillets-ng-1.0.1/src/gengine/FsPath.cpp Examining data/fillets-ng-1.0.1/src/gengine/AgentPack.h Examining data/fillets-ng-1.0.1/src/gengine/MultiDrawer.cpp Examining data/fillets-ng-1.0.1/src/gengine/DummySoundAgent.h Examining data/fillets-ng-1.0.1/src/gengine/INamed.h Examining data/fillets-ng-1.0.1/src/gengine/Log.cpp Examining data/fillets-ng-1.0.1/src/gengine/ResImagePack.h Examining data/fillets-ng-1.0.1/src/gengine/BaseListener.h Examining data/fillets-ng-1.0.1/src/gengine/FsPath_boost.cpp Examining data/fillets-ng-1.0.1/src/gengine/SDLSoundAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/OptionAgent.h Examining data/fillets-ng-1.0.1/src/gengine/MouseStroke.h Examining data/fillets-ng-1.0.1/src/gengine/ResCache.h Examining data/fillets-ng-1.0.1/src/gengine/PlannedDialog.h Examining data/fillets-ng-1.0.1/src/gengine/ScriptState.cpp Examining data/fillets-ng-1.0.1/src/gengine/DialogStack.cpp Examining data/fillets-ng-1.0.1/src/gengine/ResDialogPack.h Examining data/fillets-ng-1.0.1/src/gengine/ResourceException.h Examining data/fillets-ng-1.0.1/src/gengine/VideoAgent.h Examining data/fillets-ng-1.0.1/src/gengine/KeyStroke.h Examining data/fillets-ng-1.0.1/src/gengine/BaseMsg.cpp Examining data/fillets-ng-1.0.1/src/gengine/UnknownMsgException.h Examining data/fillets-ng-1.0.1/src/gengine/HelpException.h Examining data/fillets-ng-1.0.1/src/gengine/StringTool.h Examining data/fillets-ng-1.0.1/src/gengine/Environ.cpp Examining data/fillets-ng-1.0.1/src/gengine/MixException.h Examining data/fillets-ng-1.0.1/src/gengine/Path.h Examining data/fillets-ng-1.0.1/src/gengine/ResSoundPack.h Examining data/fillets-ng-1.0.1/src/gengine/InputAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/TimerAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/SysVideo.cpp Examining data/fillets-ng-1.0.1/src/gengine/InputHandler.cpp Examining data/fillets-ng-1.0.1/src/gengine/SDLException.cpp Examining data/fillets-ng-1.0.1/src/gengine/IntMsg.h Examining data/fillets-ng-1.0.1/src/gengine/options-script.h Examining data/fillets-ng-1.0.1/src/gengine/ResDialogPack.cpp Examining data/fillets-ng-1.0.1/src/gengine/StringMsg.h Examining data/fillets-ng-1.0.1/src/gengine/Drawable.h Examining data/fillets-ng-1.0.1/src/gengine/Scripter.h Examining data/fillets-ng-1.0.1/src/gengine/OptionAgent.cpp Examining data/fillets-ng-1.0.1/src/gengine/StringTool.cpp Examining data/fillets-ng-1.0.1/src/plan/SubTitleAgent.h Examining data/fillets-ng-1.0.1/src/plan/FishDialog.h Examining data/fillets-ng-1.0.1/src/plan/dialog-script.h Examining data/fillets-ng-1.0.1/src/plan/Planner.cpp Examining data/fillets-ng-1.0.1/src/plan/StateManager.h Examining data/fillets-ng-1.0.1/src/plan/Command.h Examining data/fillets-ng-1.0.1/src/plan/SubTitleAgent.cpp Examining data/fillets-ng-1.0.1/src/plan/StateInput.h Examining data/fillets-ng-1.0.1/src/plan/Title.h Examining data/fillets-ng-1.0.1/src/plan/CommandQueue.h Examining data/fillets-ng-1.0.1/src/plan/Planner.h Examining data/fillets-ng-1.0.1/src/plan/KeyDesc.cpp Examining data/fillets-ng-1.0.1/src/plan/GameState.h Examining data/fillets-ng-1.0.1/src/plan/StateInput.cpp Examining data/fillets-ng-1.0.1/src/plan/Keymap.h Examining data/fillets-ng-1.0.1/src/plan/ScriptCmd.h Examining data/fillets-ng-1.0.1/src/plan/FishDialog.cpp Examining data/fillets-ng-1.0.1/src/plan/ConsoleInput.h Examining data/fillets-ng-1.0.1/src/plan/Title.cpp Examining data/fillets-ng-1.0.1/src/plan/KeyDesc.h Examining data/fillets-ng-1.0.1/src/plan/ConsoleInput.cpp Examining data/fillets-ng-1.0.1/src/plan/KeyConsole.h Examining data/fillets-ng-1.0.1/src/plan/CommandQueue.cpp Examining data/fillets-ng-1.0.1/src/plan/StateManager.cpp Examining data/fillets-ng-1.0.1/src/plan/dialog-script.cpp Examining data/fillets-ng-1.0.1/src/plan/GameState.cpp Examining data/fillets-ng-1.0.1/src/plan/Keymap.cpp Examining data/fillets-ng-1.0.1/src/plan/KeyConsole.cpp Examining data/fillets-ng-1.0.1/src/plan/ScriptCmd.cpp Examining data/fillets-ng-1.0.1/src/widget/Slider.h Examining data/fillets-ng-1.0.1/src/widget/VBox.h Examining data/fillets-ng-1.0.1/src/widget/WiStatusBar.cpp Examining data/fillets-ng-1.0.1/src/widget/WiPara.cpp Examining data/fillets-ng-1.0.1/src/widget/Labels.cpp Examining data/fillets-ng-1.0.1/src/widget/WiPara.h Examining data/fillets-ng-1.0.1/src/widget/WiLabel.h Examining data/fillets-ng-1.0.1/src/widget/HBox.h Examining data/fillets-ng-1.0.1/src/widget/Slider.cpp Examining data/fillets-ng-1.0.1/src/widget/WiContainer.h Examining data/fillets-ng-1.0.1/src/widget/WiLabel.cpp Examining data/fillets-ng-1.0.1/src/widget/IWidget.cpp Examining data/fillets-ng-1.0.1/src/widget/WiPicture.h Examining data/fillets-ng-1.0.1/src/widget/WiButton.cpp Examining data/fillets-ng-1.0.1/src/widget/IWidget.h Examining data/fillets-ng-1.0.1/src/widget/Labels.h Examining data/fillets-ng-1.0.1/src/widget/HBox.cpp Examining data/fillets-ng-1.0.1/src/widget/VBox.cpp Examining data/fillets-ng-1.0.1/src/widget/WiBox.cpp Examining data/fillets-ng-1.0.1/src/widget/WiContainer.cpp Examining data/fillets-ng-1.0.1/src/widget/WiStatusBar.h Examining data/fillets-ng-1.0.1/src/widget/WiPicture.cpp Examining data/fillets-ng-1.0.1/src/widget/WiSpace.h Examining data/fillets-ng-1.0.1/src/widget/WiButton.h Examining data/fillets-ng-1.0.1/src/widget/WiBox.h Examining data/fillets-ng-1.0.1/src/option/MenuHelp.cpp Examining data/fillets-ng-1.0.1/src/option/SelectLang.cpp Examining data/fillets-ng-1.0.1/src/option/MenuOptions.cpp Examining data/fillets-ng-1.0.1/src/option/HelpInput.cpp Examining data/fillets-ng-1.0.1/src/option/HelpInput.h Examining data/fillets-ng-1.0.1/src/option/OptionsInput.cpp Examining data/fillets-ng-1.0.1/src/option/MenuHelp.h Examining data/fillets-ng-1.0.1/src/option/MenuOptions.h Examining data/fillets-ng-1.0.1/src/option/OptionsInput.h Examining data/fillets-ng-1.0.1/src/option/SelectLang.h Examining data/fillets-ng-1.0.1/src/option/RadioBox.cpp Examining data/fillets-ng-1.0.1/src/option/RadioBox.h Examining data/fillets-ng-1.0.1/src/menu/WorldMap.h Examining data/fillets-ng-1.0.1/src/menu/SolverDrawer.h Examining data/fillets-ng-1.0.1/src/menu/WorldInput.cpp Examining data/fillets-ng-1.0.1/src/menu/SolverDrawer.cpp Examining data/fillets-ng-1.0.1/src/menu/worldmap-script.cpp Examining data/fillets-ng-1.0.1/src/menu/WorldMap.cpp Examining data/fillets-ng-1.0.1/src/menu/LevelNode.cpp Examining data/fillets-ng-1.0.1/src/menu/LevelDesc.cpp Examining data/fillets-ng-1.0.1/src/menu/Pedometer.cpp Examining data/fillets-ng-1.0.1/src/menu/NodeDrawer.cpp Examining data/fillets-ng-1.0.1/src/menu/PedoInput.h Examining data/fillets-ng-1.0.1/src/menu/WorldInput.h Examining data/fillets-ng-1.0.1/src/menu/Pedometer.h Examining data/fillets-ng-1.0.1/src/menu/NodeDrawer.h Examining data/fillets-ng-1.0.1/src/menu/worldmap-script.h Examining data/fillets-ng-1.0.1/src/menu/LevelNode.h Examining data/fillets-ng-1.0.1/src/menu/LevelDesc.h Examining data/fillets-ng-1.0.1/src/menu/PedoInput.cpp Examining data/fillets-ng-1.0.1/src/menu/WorldBranch.cpp Examining data/fillets-ng-1.0.1/src/menu/WorldBranch.h Examining data/fillets-ng-1.0.1/src/effect/ResColorPack.h Examining data/fillets-ng-1.0.1/src/effect/EffectNone.cpp Examining data/fillets-ng-1.0.1/src/effect/EffectDisintegrate.h Examining data/fillets-ng-1.0.1/src/effect/SurfaceTool.cpp Examining data/fillets-ng-1.0.1/src/effect/TTFException.h Examining data/fillets-ng-1.0.1/src/effect/PixelTool.h Examining data/fillets-ng-1.0.1/src/effect/SurfaceLock.cpp Examining data/fillets-ng-1.0.1/src/effect/Font.cpp Examining data/fillets-ng-1.0.1/src/effect/PixelTool.cpp Examining data/fillets-ng-1.0.1/src/effect/EffectReverse.cpp Examining data/fillets-ng-1.0.1/src/effect/EffectZx.h Examining data/fillets-ng-1.0.1/src/effect/EffectReverse.h Examining data/fillets-ng-1.0.1/src/effect/Picture.h Examining data/fillets-ng-1.0.1/src/effect/PixelIterator.cpp Examining data/fillets-ng-1.0.1/src/effect/EffectDisintegrate.cpp Examining data/fillets-ng-1.0.1/src/effect/Outline.h Examining data/fillets-ng-1.0.1/src/effect/LayeredPicture.h Examining data/fillets-ng-1.0.1/src/effect/PixelIterator.h Examining data/fillets-ng-1.0.1/src/effect/SurfaceLock.h Examining data/fillets-ng-1.0.1/src/effect/LayeredPicture.cpp Examining data/fillets-ng-1.0.1/src/effect/SurfaceTool.h Examining data/fillets-ng-1.0.1/src/effect/TTFException.cpp Examining data/fillets-ng-1.0.1/src/effect/ViewEffect.h Examining data/fillets-ng-1.0.1/src/effect/EffectMirror.h Examining data/fillets-ng-1.0.1/src/effect/Font.h Examining data/fillets-ng-1.0.1/src/effect/EffectMirror.cpp Examining data/fillets-ng-1.0.1/src/effect/EffectNone.h Examining data/fillets-ng-1.0.1/src/effect/EffectZx.cpp Examining data/fillets-ng-1.0.1/src/effect/WavyPicture.h Examining data/fillets-ng-1.0.1/src/effect/Outline.cpp Examining data/fillets-ng-1.0.1/src/effect/Picture.cpp Examining data/fillets-ng-1.0.1/src/effect/Color.h Examining data/fillets-ng-1.0.1/src/effect/EffectInvisible.h Examining data/fillets-ng-1.0.1/src/effect/WavyPicture.cpp Examining data/fillets-ng-1.0.1/src/state/PosterState.cpp Examining data/fillets-ng-1.0.1/src/state/GameInput.h Examining data/fillets-ng-1.0.1/src/state/DemoInput.h Examining data/fillets-ng-1.0.1/src/state/MovieState.cpp Examining data/fillets-ng-1.0.1/src/state/GameInput.cpp Examining data/fillets-ng-1.0.1/src/state/demo-script.h Examining data/fillets-ng-1.0.1/src/state/DemoMode.h Examining data/fillets-ng-1.0.1/src/state/MovieState.h Examining data/fillets-ng-1.0.1/src/state/PosterScroller.h Examining data/fillets-ng-1.0.1/src/state/demo-script.cpp Examining data/fillets-ng-1.0.1/src/state/DemoInput.cpp Examining data/fillets-ng-1.0.1/src/state/PosterState.h Examining data/fillets-ng-1.0.1/src/state/PosterScroller.cpp Examining data/fillets-ng-1.0.1/src/state/DemoMode.cpp Examining data/fillets-ng-1.0.1/src/state/SDL_Movie.h Examining data/fillets-ng-1.0.1/src/SDL_gfx/SDL_gfxPrimitives.h Examining data/fillets-ng-1.0.1/src/SDL_gfx/SDL_gfxPrimitives.c FINAL RESULTS: data/fillets-ng-1.0.1/src/level/LevelCountDown.cpp:22:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. LevelCountDown::LevelCountDown(const RoomAccess *access) data/fillets-ng-1.0.1/src/level/LevelCountDown.cpp:25:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. m_access = access; data/fillets-ng-1.0.1/src/level/LevelCountDown.h:21:42: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. LevelCountDown(const RoomAccess *access); data/fillets-ng-1.0.1/src/level/LevelLoading.cpp:17:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. LevelLoading::LevelLoading(RoomAccess *access) data/fillets-ng-1.0.1/src/level/LevelLoading.cpp:19:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. m_access = access; data/fillets-ng-1.0.1/src/level/LevelLoading.h:23:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. LevelLoading(RoomAccess *access); data/fillets-ng-1.0.1/src/gengine/OptionAgent.cpp:101:24: [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 *home = getenv("HOME"); data/fillets-ng-1.0.1/src/gengine/Random.cpp:21:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand( static_cast<unsigned>(time(NULL)) ); data/fillets-ng-1.0.1/src/gengine/Environ.cpp:38:20: [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 *config = fopen(file.getNative().c_str(), "w"); data/fillets-ng-1.0.1/src/gengine/Path.cpp:48:28: [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). try_open = fopen(datapath.getNative().c_str(), "wb"); data/fillets-ng-1.0.1/src/gengine/Random.h:10:25: [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 unsigned char ms_randArray[ARRAY_SIZE]; data/fillets-ng-1.0.1/src/gengine/SDLMusicLooper.cpp:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fillets-ng-1.0.1/src/gengine/SDLMusicLooper.cpp:95:18: [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 *meta = fopen(metafile.c_str(), "r"); data/fillets-ng-1.0.1/src/gengine/SysVideo.cpp:89:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_UTF8, 0, title.c_str(), -1, data/fillets-ng-1.0.1/src/level/Level.cpp:307:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *saveFile = fopen(file.getNative().c_str(), "w"); data/fillets-ng-1.0.1/src/level/LevelStatus.cpp:118:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *saveFile = fopen(file.getNative().c_str(), "w"); data/fillets-ng-1.0.1/src/gengine/OptionAgent.cpp:125:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int size = min(5, strlen(form)); ANALYSIS SUMMARY: Hits = 17 Lines analyzed = 26649 in approximately 0.60 seconds (44372 lines/second) Physical Source Lines of Code (SLOC) = 17711 Hits@level = [0] 4 [1] 1 [2] 8 [3] 2 [4] 6 [5] 0 Hits@level+ = [0+] 21 [1+] 17 [2+] 16 [3+] 8 [4+] 6 [5+] 0 Hits/KSLOC@level+ = [0+] 1.1857 [1+] 0.959855 [2+] 0.903393 [3+] 0.451697 [4+] 0.338773 [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.