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/blobandconquer-1.11-dfsg+20/data/gameDefs/defines.h Examining data/blobandconquer-1.11-dfsg+20/src/main.h Examining data/blobandconquer-1.11-dfsg+20/src/missions/mission.cpp Examining data/blobandconquer-1.11-dfsg+20/src/missions/mission.h Examining data/blobandconquer-1.11-dfsg+20/src/missions/triggers.h Examining data/blobandconquer-1.11-dfsg+20/src/missions/triggers.cpp Examining data/blobandconquer-1.11-dfsg+20/src/camera.h Examining data/blobandconquer-1.11-dfsg+20/src/pak.cpp Examining data/blobandconquer-1.11-dfsg+20/src/game.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/decoration.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/emitters.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/shadows.cpp Examining data/blobandconquer-1.11-dfsg+20/src/effects/emitters.cpp Examining data/blobandconquer-1.11-dfsg+20/src/effects/decoration.cpp Examining data/blobandconquer-1.11-dfsg+20/src/effects/decals.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/decals.cpp Examining data/blobandconquer-1.11-dfsg+20/src/effects/weather.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/shadows.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/particles.h Examining data/blobandconquer-1.11-dfsg+20/src/effects/particles.cpp Examining data/blobandconquer-1.11-dfsg+20/src/effects/weather.cpp Examining data/blobandconquer-1.11-dfsg+20/src/puzzles/mastermind.h Examining data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.h Examining data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp Examining data/blobandconquer-1.11-dfsg+20/src/puzzles/mastermind.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/structures.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/items.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/structures.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/lift.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/traps.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/spiderBlobs.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/darkBioMechs.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/spiderBlobs.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/bosses.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/doors.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/enemy.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/enemy.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/traps.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/bioMechBlobs.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/features.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/switches.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/sentryGuns.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/items.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/doors.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/sentryGuns.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/bosses.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/eyeDroids.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/darkBioMechs.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/blobs.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/units.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/bioMechBlobs.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/blobs.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/features.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/eyeDroids.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/bullets.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/lift.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/units.h Examining data/blobandconquer-1.11-dfsg+20/src/entities/bullets.cpp Examining data/blobandconquer-1.11-dfsg+20/src/entities/switches.h Examining data/blobandconquer-1.11-dfsg+20/src/attributes.h Examining data/blobandconquer-1.11-dfsg+20/src/init.h Examining data/blobandconquer-1.11-dfsg+20/src/combat/explosions.h Examining data/blobandconquer-1.11-dfsg+20/src/combat/weapons.h Examining data/blobandconquer-1.11-dfsg+20/src/combat/explosions.cpp Examining data/blobandconquer-1.11-dfsg+20/src/combat/combat.cpp Examining data/blobandconquer-1.11-dfsg+20/src/combat/weapons.cpp Examining data/blobandconquer-1.11-dfsg+20/src/combat/combat.h Examining data/blobandconquer-1.11-dfsg+20/src/camera.cpp Examining data/blobandconquer-1.11-dfsg+20/src/game.cpp Examining data/blobandconquer-1.11-dfsg+20/src/pak.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CVector.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CReference.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CComboBox.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CStructure.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDoor.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSaveGameHeader.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CUIManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CHashtable.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CStructure.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CItemDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSlider.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPoint.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CParticle.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCrumbBox.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CWeapon.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDecal.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoundingBoxManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CUnit.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CButton.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoundingBoxManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CReference.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntity.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntityManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoss.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMDLModel.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CAudio.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CListView.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CItem.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CWeaponDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CLabel.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFeature.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDecoration.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CQ3Target.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCrumbBox.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBaseWidget.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCamera.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntityManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CUIManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CModelManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSaveGameHeader.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTexture.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CWeapon.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBullet.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSimpleModel.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSprite.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CProperties.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCutsceneCommand.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CVector.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CObjective.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGLColor.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCrumb.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFace.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CProperties.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCheckBox.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDecal.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCheckBox.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntityDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGLColor.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCollision.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFeature.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEnemyDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CVectori.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureSpecManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBlobDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEnemyDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMap.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CParticle.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBossDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntityDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CInputWidget.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEntity.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMouse.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CListView.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMission.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CWeaponDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGeometry.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCollision.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSimpleModel.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CUnit.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFrustum.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CItem.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CHashtable.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFileData.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSwitch.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPoint.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CLinkable.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSlider.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCutsceneCamera.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureSpecManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSwitch.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPlane.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CObjective.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CParticleManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoundingBox.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrigger.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDoor.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrace.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCrumb.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMouse.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CComboBox.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFrustum.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CModelManager.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGrid.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CParticleManager.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCamera.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTexture.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFeatureDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrace.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBossDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureSpec.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CData.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CQ3Target.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTriangle.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCutsceneCommand.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CLabel.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CItemDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPanel.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrap.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoss.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTextureSpec.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrigger.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CButton.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CVectori.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CList.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMDLModel.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGeometry.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGrid.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTrap.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBullet.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CCutsceneCamera.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPlane.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CListViewItem.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMath.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CTriangle.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMap.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CLinkable.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CDecoration.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CData.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMission.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CSprite.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBaseWidget.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPanel.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CAudio.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFeatureDef.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBoundingBox.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CList.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMath.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEmitter.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFileData.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CInputWidget.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFace.h Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CListViewItem.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBlobDef.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEmitter.cpp Examining data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.cpp Examining data/blobandconquer-1.11-dfsg+20/src/battle.cpp Examining data/blobandconquer-1.11-dfsg+20/src/main.cpp Examining data/blobandconquer-1.11-dfsg+20/src/player.cpp Examining data/blobandconquer-1.11-dfsg+20/src/headers.h Examining data/blobandconquer-1.11-dfsg+20/src/battle.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/status.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/widgets.cpp Examining data/blobandconquer-1.11-dfsg+20/src/hud/status.cpp Examining data/blobandconquer-1.11-dfsg+20/src/hud/options.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/widgets.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/dialogs.cpp Examining data/blobandconquer-1.11-dfsg+20/src/hud/controlPanel.cpp Examining data/blobandconquer-1.11-dfsg+20/src/hud/controlPanel.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/dialogs.h Examining data/blobandconquer-1.11-dfsg+20/src/hud/options.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/bioTanks.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/specialist.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/ambush.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/specialist.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/eyeDroidCommander.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/bioTanks.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/finalBoss.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/spiderBlobCommander.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/eyeDroidCommander.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/finalBoss.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/cryptBoss.h Examining data/blobandconquer-1.11-dfsg+20/src/bosses/ambush.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/cryptBoss.cpp Examining data/blobandconquer-1.11-dfsg+20/src/bosses/spiderBlobCommander.cpp Examining data/blobandconquer-1.11-dfsg+20/src/title.cpp Examining data/blobandconquer-1.11-dfsg+20/src/init.cpp Examining data/blobandconquer-1.11-dfsg+20/src/defs.h Examining data/blobandconquer-1.11-dfsg+20/src/world/world.cpp Examining data/blobandconquer-1.11-dfsg+20/src/world/world.h Examining data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp Examining data/blobandconquer-1.11-dfsg+20/src/world/bsp.h Examining data/blobandconquer-1.11-dfsg+20/src/misc/md2.cpp Examining data/blobandconquer-1.11-dfsg+20/src/misc/opengl.h Examining data/blobandconquer-1.11-dfsg+20/src/misc/strtok_r.cpp Examining data/blobandconquer-1.11-dfsg+20/src/misc/misc.cpp Examining data/blobandconquer-1.11-dfsg+20/src/misc/opengl.cpp Examining data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp Examining data/blobandconquer-1.11-dfsg+20/src/misc/strtok_r.h Examining data/blobandconquer-1.11-dfsg+20/src/misc/md2.h Examining data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.h Examining data/blobandconquer-1.11-dfsg+20/src/misc/misc.h Examining data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.h Examining data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.h Examining data/blobandconquer-1.11-dfsg+20/src/io/resources.h Examining data/blobandconquer-1.11-dfsg+20/src/io/resources.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/save.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.h Examining data/blobandconquer-1.11-dfsg+20/src/io/load.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/load.h Examining data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.cpp Examining data/blobandconquer-1.11-dfsg+20/src/io/save.h Examining data/blobandconquer-1.11-dfsg+20/src/player.h Examining data/blobandconquer-1.11-dfsg+20/src/title.h FINAL RESULTS: data/blobandconquer-1.11-dfsg+20/src/attributes.h:22:50: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define GCC_PRINTF(fmt,va) __attribute__((format(printf, fmt, va))) data/blobandconquer-1.11-dfsg+20/src/bosses/bioTanks.cpp:268:4: [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, boss->name.getText()); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CButton.cpp:80:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), label, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:365:4: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%*s %s %*s %*s %*s %d", string[0], &value); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:373:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%*s %s %[^\n]", string[0], string[1]); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:383:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%*c %s", string[0]); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:497:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(line, realLine); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFileData.cpp:33:2: [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(this->name, name); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:281:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), message, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:306:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), message, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:326:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), message, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:771:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), in, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:797:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), in, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:845:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), in, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:877:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), text, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:1063:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), in, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:1401:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), error, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:70:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PAKFULLPATH"\n\n"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.cpp:49:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%s", letterFrequency[i]); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:64:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tmpString, sizeof(tmpString), in, argp); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:69:2: [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, tmpString); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:79:2: [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, in); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:119:2: [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(newText, text); data/blobandconquer-1.11-dfsg+20/src/defs.h:356:61: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug(x) {printf("[DEBUG (%d)] ", SDL_GetTicks()); printf x; fflush(stdout);} data/blobandconquer-1.11-dfsg+20/src/entities/features.cpp:92:2: [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(list, enemyList); data/blobandconquer-1.11-dfsg+20/src/entities/features.cpp:427:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line, "%s %*s %[^\n]", key, value); data/blobandconquer-1.11-dfsg+20/src/entities/structures.cpp:970:2: [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(list, mission->supplyCrateList.getText()); data/blobandconquer-1.11-dfsg+20/src/io/load.cpp:198:2: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(fp, "%*s %s", hash); data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.cpp:99:4: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%s %[^;]", key, value); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:283:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(md2.m_pFrames[i].strName, frameIndex->name); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:309:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, md2.m_pFrames[i].strName); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:324:4: [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(lastName, name); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:348:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, md2.m_pFrames[i].strName); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:375: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(animation.name, name); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:384: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(animation.name, name); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:392:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(lastName, name); data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp:125:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%s %*s", propTitle); data/blobandconquer-1.11-dfsg+20/src/io/resources.cpp:103:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(token, "%s %s", key, value); data/blobandconquer-1.11-dfsg+20/src/io/resources.cpp:389:2: [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(sounds, mission->ambientEffects.getText()); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:940:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullFilePath, _("data/cutscenes/text/en/%s"), filename); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1009:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(data, token); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1045:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(cc->command.getText(), "%s%*c%[^;]", function, args); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1079:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(args, "%s", tmp); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1154:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(narrative->name.getText(), "%*c%s", speakerName); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1402:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(cc->command.getText(), "%s%*c%[^;]", function, args); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1413:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(args, "%s", tmp); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1418:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(args, "%s", tmp); data/blobandconquer-1.11-dfsg+20/src/pak.cpp:58:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", dirName, dfile->d_name); data/blobandconquer-1.11-dfsg+20/src/pak.cpp:114:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", dirName, dfile->d_name); data/blobandconquer-1.11-dfsg+20/src/bosses/specialist.cpp:23:32: [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 specialistSummonHelp(bool random) data/blobandconquer-1.11-dfsg+20/src/bosses/specialist.cpp:35:6: [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. if (random) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:31:9: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define drand48 rand data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:157:13: [3] (random) drand48: 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. dx[i] = drand48() - 1.0; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:158:13: [3] (random) drand48: 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. dy[i] = drand48() - 1.0; data/blobandconquer-1.11-dfsg+20/src/game.cpp:68:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/blobandconquer-1.11-dfsg+20/src/init.cpp:102:19: [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 *userHome = getenv("HOME"); data/blobandconquer-1.11-dfsg+20/src/init.cpp:494:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp:57:2: [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(seed); data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp:393:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/blobandconquer-1.11-dfsg+20/src/puzzles/mastermind.cpp:60:2: [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(seed); data/blobandconquer-1.11-dfsg+20/src/puzzles/mastermind.cpp:366:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/blobandconquer-1.11-dfsg+20/src/bosses/bioTanks.cpp:267:4: [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[256]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char strID[4]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:62: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 color[4]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:80:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char strName[64]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:86: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 lightmapData[128*128*3]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char strName[64]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CBSP.h:154: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 i[sizeof(float)]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CButton.cpp:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[256]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:314:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[2][1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:367:4: [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(string[1], "%d", value); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:385: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(string[1], "%d", value); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:419:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(word); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:423:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(word); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:435:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rtn = atoi(data->getValue()); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:459:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rtn = atoi(data->getValue()); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:489:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(realLine); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:494:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:559:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename.getText(), "wb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.h:45: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 keyState[350]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.h:66: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 lastKeyEvents[35]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFileData.h:25: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 name[PAK_MAX_FILENAME]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:277:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGame.cpp:322:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:872:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[4096]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:1397:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.h:38: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 tmpString[1024]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:27: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. typedef char tMd2Skin[64]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:90:4: [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[16]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:98:4: [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 strName[16]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:125:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255]; /* Object name */ data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:140:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255]; /* The texture name */ data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:141:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[255]; /* The texture file name (If this is set it's a texture map) */ data/blobandconquer-1.11-dfsg+20/src/cplusplus/CMD2.h:154:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:83:14: [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 *pak = fopen(PAKFULLPATH, "rb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:149:15: [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 *pak = fopen(PAKFULLPATH, "rb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:186:14: [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, "rb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:223:6: [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)[lastReadDataSize - 1] = '\0'; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:237:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(tmpFilename.getText(), "wb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:259:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "rb"); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CProperties.cpp:184:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(data->getValue()); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.h:36: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 name[32]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.h:38: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 letterFrequency[26][300]; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpString[4096]; data/blobandconquer-1.11-dfsg+20/src/entities/features.cpp:82:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char list[1024]; data/blobandconquer-1.11-dfsg+20/src/entities/features.cpp:423:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[64], value[1024]; data/blobandconquer-1.11-dfsg+20/src/entities/structures.cpp:963:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char list[1024]; data/blobandconquer-1.11-dfsg+20/src/hud/controlPanel.cpp:527: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. static char time[9]; data/blobandconquer-1.11-dfsg+20/src/hud/controlPanel.cpp:649:3: [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(time, "%.2d%.2d.%.2d", (int)game->remainingMinutes, (int)game->remainingSeconds, (int)remaining); data/blobandconquer-1.11-dfsg+20/src/hud/dialogs.cpp:306:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename.getText(), "rb"); data/blobandconquer-1.11-dfsg+20/src/init.cpp:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/blobandconquer-1.11-dfsg+20/src/init.cpp:229:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(savePath.getText(), "wb"); data/blobandconquer-1.11-dfsg+20/src/io/load.cpp:187:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename.getText(), "rb"); data/blobandconquer-1.11-dfsg+20/src/io/load.cpp:197:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash[1024]; data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.cpp:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[1024]; data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.cpp:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[1024]; data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:32:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int numberOfPoints = atoi(token); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:159:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255], lastName[255]; data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp:32:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[1024], value[1024]; data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp:101:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char propTitle[1024]; data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp:102:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[1024]; data/blobandconquer-1.11-dfsg+20/src/io/propertiesLoader.cpp:103:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[1024]; data/blobandconquer-1.11-dfsg+20/src/io/resources.cpp:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[1024], value[1024]; data/blobandconquer-1.11-dfsg+20/src/io/resources.cpp:386:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sounds[1024]; data/blobandconquer-1.11-dfsg+20/src/io/save.cpp:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timeBuffer[40]; data/blobandconquer-1.11-dfsg+20/src/io/save.cpp:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dateBuffer[40]; data/blobandconquer-1.11-dfsg+20/src/io/save.cpp:99:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename.getText(), "wb"); data/blobandconquer-1.11-dfsg+20/src/io/save.cpp:179:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename.getText(), "wb"); data/blobandconquer-1.11-dfsg+20/src/main.cpp:115:71: [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). else if (strcmp(argv[i], "-joystick") == 0) engine->joystickIndex = atoi(argv[++i]); data/blobandconquer-1.11-dfsg+20/src/main.cpp:117:60: [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). else if (strcmp(argv[i], "-load") == 0) game->saveSlot = atoi(argv[++i]); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:252:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:266:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:277:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:293:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:374:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128], target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:388:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128], target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:428:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128], target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:456:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:481:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128], target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:508:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:521:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:536:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char entityName[128], target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:555:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unitName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:566:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unitName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:585:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unitName[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:597:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:607:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:617:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:647:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:672:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:713:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char beamStart[128], beamEnd[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:749:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[1024]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:784:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char location[128]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:939:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fullFilePath[4096]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:942:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[1024]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1019:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function[1024], args[1024], tmp[1024]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1059:17: [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). waitTimer = atoi(args); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1073:25: [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). cutsceneTextTimer = atoi(args); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1075:17: [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). waitTimer = atoi(args); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1153:6: [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 speakerName[1024]; data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1335:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function[1024], args[1024], tmp[1024]; data/blobandconquer-1.11-dfsg+20/src/missions/mission.cpp:378: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 mn[3]; data/blobandconquer-1.11-dfsg+20/src/missions/mission.cpp:382:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mission->missionNumber = atoi(mn); data/blobandconquer-1.11-dfsg+20/src/pak.cpp:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; data/blobandconquer-1.11-dfsg+20/src/pak.cpp:90:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; data/blobandconquer-1.11-dfsg+20/src/pak.cpp:125:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). infile = fopen(filename, "rb"); data/blobandconquer-1.11-dfsg+20/src/pak.cpp:205:8: [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). pak = fopen(argv[argc - 1], "wb"); data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp:127:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timeText[15]; data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp:331:3: [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(timeText, "%.2d%.2d.%.2d", (int)remainingMinutes, (int)remainingSeconds, (int)remaining); data/blobandconquer-1.11-dfsg+20/src/title.cpp:315:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cred[1024]; data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:259:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->verts, buffer, sizeof(BSPVertex) * bsp->numOfVerts); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:314:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->faces, buffer, sizeof(BSPFace) * bsp->numOfFaces); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:366:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->meshIndices, buffer, sizeof(int) * bsp->numOfMeshIndices); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:396:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->textures, buffer, sizeof(BSPTexture) * bsp->numOfTextures); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:442:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lightmaps, buffer, sizeof(BSPLightmap) * bsp->numOfLightmaps); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:539:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->nodes, buffer, sizeof(BSPNode) * bsp->numOfNodes); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:572:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->leafs, buffer, sizeof(BSPLeaf) * bsp->numOfLeafs); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:606:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->strEntities, buffer, sizeof(char) * bsp->numOfEntityChars); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:626:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->leafFaces, buffer, sizeof(int) * bsp->numOfLeafFaces); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:651:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->planes, buffer, sizeof(Plane) * bsp->numOfPlanes); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:681:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->shaders, buffer, sizeof(BSPShader) * bsp->numOfShaders); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:700: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(&bsp->clusters.numOfClusters, buffer, sizeof(int)); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:706: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(&bsp->clusters.bytesPerCluster, buffer, sizeof(int)); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:721: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(bsp->clusters.pBitsets, buffer, sizeof(unsigned char) * size); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:747:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->brushes, buffer, sizeof(BSPBrush) * bsp->numOfBrushes); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:774:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->leafBrushes, buffer, sizeof(int) * bsp->numOfLeafBrushes); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:799:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->brushSides, buffer, sizeof(BSPBrushSide) * bsp->numOfBrushSides); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:924:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bsp->models, buffer, sizeof(BSPModel) * bsp->numOfModels); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:1352:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, pak->binaryBuffer, pak->getLastReadDataSize()); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:1356:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&header, buffer, sizeof(BSPHeader)); data/blobandconquer-1.11-dfsg+20/src/world/bsp.cpp:1360:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lumps, buffer, sizeof(BSPLump) * kMaxLumps); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:73:6: [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(key) > 1) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:356: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(token) < 4) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:413:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(word); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CEngine.cpp:483:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(realLine); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CFileData.cpp:25:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CGraphics.cpp:42:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(tmpString, ""); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CHashtable.cpp:62: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(key) ; i++) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CHashtable.cpp:91: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(key) ; i++) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CHashtable.cpp:119: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(key) ; i++) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CPak.cpp:221: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((char *)*buffer) > lastReadDataSize) data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.cpp:27:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(letterFrequency[i], ""); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.cpp:77:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, ""); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CRandomNameGen.cpp:81:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(letterFrequency[letter]); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:60:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(tmpString, ""); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:67: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). reallocate(strlen(tmpString)); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:77: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). reallocate(strlen(in)); data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:111:12: [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 end = strlen(text) - 1; data/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:143: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/blobandconquer-1.11-dfsg+20/src/cplusplus/CString.cpp:153: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/blobandconquer-1.11-dfsg+20/src/entities/features.cpp:557:66: [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 (strcmp(props->name.getText(), "FEATURE_INFORMATION")== 0 && strlen(props->getString("name", "")) == 0) data/blobandconquer-1.11-dfsg+20/src/io/localeLoader.cpp:75:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strcmp(token, "") == 0) || (strlen(token) == 0)) data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:301:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(lastName, ""); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:313: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). for (j=strlen(name)-1;j>=0;j--) data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:342:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(lastName, ""); data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:352: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). for (j=strlen(name)-1;j>=0;j--) data/blobandconquer-1.11-dfsg+20/src/io/modelLoader.cpp:367:8: [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(lastName) != 0 || i == model->frameCount - 1) data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:212:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!read) data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:943:2: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(data, ""); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1002:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(data, ""); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1008:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(data, " "); data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1404: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). if (function[strlen(function) - 1] == ';') data/blobandconquer-1.11-dfsg+20/src/misc/cutscene.cpp:1406: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). function[strlen(function) - 1] = '\0'; data/blobandconquer-1.11-dfsg+20/src/pak.cpp:60: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(filename) > PAK_MAX_FILENAME - 1) data/blobandconquer-1.11-dfsg+20/src/puzzles/laserGrid.cpp:27: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((char*)pak->dataBuffer) ; i++) data/blobandconquer-1.11-dfsg+20/src/puzzles/mastermind.cpp:29: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((char*)pak->dataBuffer) ; i++) ANALYSIS SUMMARY: Hits = 227 Lines analyzed = 57618 in approximately 1.50 seconds (38375 lines/second) Physical Source Lines of Code (SLOC) = 39398 Hits@level = [0] 232 [1] 35 [2] 131 [3] 12 [4] 49 [5] 0 Hits@level+ = [0+] 459 [1+] 227 [2+] 192 [3+] 61 [4+] 49 [5+] 0 Hits/KSLOC@level+ = [0+] 11.6503 [1+] 5.76171 [2+] 4.87334 [3+] 1.5483 [4+] 1.24372 [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.