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/lordsawar-0.3.2+frogknows/src/Threat.cpp
Examining data/lordsawar-0.3.2+frogknows/src/prodslot.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-server.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armysetlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/history.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ItemProto.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QCitySack.cpp
Examining data/lordsawar-0.3.2+frogknows/src/MapGenerator.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Renamable.h
Examining data/lordsawar-0.3.2+frogknows/src/Immovable.cpp
Examining data/lordsawar-0.3.2+frogknows/src/templelist.h
Examining data/lordsawar-0.3.2+frogknows/src/armyproto.cpp
Examining data/lordsawar-0.3.2+frogknows/src/rectangle.h
Examining data/lordsawar-0.3.2+frogknows/src/set.cpp
Examining data/lordsawar-0.3.2+frogknows/src/advertised-game.h
Examining data/lordsawar-0.3.2+frogknows/src/CreateScenarioRandomize.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game-station.cpp
Examining data/lordsawar-0.3.2+frogknows/src/LocationList.h
Examining data/lordsawar-0.3.2+frogknows/src/army.h
Examining data/lordsawar-0.3.2+frogknows/src/templelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/heroesmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Threat.h
Examining data/lordsawar-0.3.2+frogknows/src/AI_Allocation.h
Examining data/lordsawar-0.3.2+frogknows/src/SmallTile.h
Examining data/lordsawar-0.3.2+frogknows/src/connection-manager.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armyprodbase.h
Examining data/lordsawar-0.3.2+frogknows/src/herotemplates.cpp
Examining data/lordsawar-0.3.2+frogknows/src/path.h
Examining data/lordsawar-0.3.2+frogknows/src/real_player.h
Examining data/lordsawar-0.3.2+frogknows/src/select-city-map.h
Examining data/lordsawar-0.3.2+frogknows/src/OwnerId.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game-client.h
Examining data/lordsawar-0.3.2+frogknows/src/AI_Diplomacy.h
Examining data/lordsawar-0.3.2+frogknows/src/recently-played-game.h
Examining data/lordsawar-0.3.2+frogknows/src/bridge.h
Examining data/lordsawar-0.3.2+frogknows/src/portlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/prodslotlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/signpostlist.h
Examining data/lordsawar-0.3.2+frogknows/src/stone.h
Examining data/lordsawar-0.3.2+frogknows/src/SightMap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Namable.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ruin.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QCityRaze.h
Examining data/lordsawar-0.3.2+frogknows/src/history.h
Examining data/lordsawar-0.3.2+frogknows/src/ImageCache.h
Examining data/lordsawar-0.3.2+frogknows/src/ruinlist.h
Examining data/lordsawar-0.3.2+frogknows/src/ai_dummy.h
Examining data/lordsawar-0.3.2+frogknows/src/Itemlist.h
Examining data/lordsawar-0.3.2+frogknows/src/scenario-list.h
Examining data/lordsawar-0.3.2+frogknows/src/Item.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tilestyle-organizer-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/fight-order-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/shieldset-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-selector-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/armyset-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/RenamableLocation.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-splash-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/editorbigmap.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/image-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/hero-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/lw-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/map-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-save-changes-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/cityset-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/stone-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/image-file-filter.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/army-chooser-button.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/main-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-item-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/shieldset-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/image-file-filter.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/RenamableLocation.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/masked-image-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/road-editor-tip.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-quit-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/reward-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-explosion-picture-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/past-chooser.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/switch-sets-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/cityset-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/signpost-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-army-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editorbigmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/reward-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/keeper-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/media-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/rewardlist-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/hero-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/media-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-smallmap-building-colors-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-smallmap-building-colors-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/heroes-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/map-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/ruin-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/new-map-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-hidden-ruin-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/switch-sets-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/signpost-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/army-chooser-button.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/backpack-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/armyset-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/stack-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/editablesmallmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/shieldset-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/temple-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/cityset-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/rewardlist-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/lw-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tilestyle-organizer-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/stack-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/masked-image-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/new-map-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/validation-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tile-preview-scene.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/main-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editablesmallmap.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/heroes-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-save-changes-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tile-preview-scene.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tile-preview-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/backpack-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/road-editor-tip.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-army-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/ruin-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/smallmap-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/keeper-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/battle-calculator-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-selector-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/temple-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/cityset-window.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-splash-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/validation-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-flag-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/shieldset-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/smallmap-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-item-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/fight-order-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/past-chooser.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-flag-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/stone-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/image-editor-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/editor-quit-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/editor/tile-preview-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/tileset-explosion-picture-editor-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/battle-calculator-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/editor/select-hidden-ruin-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/reward.h
Examining data/lordsawar-0.3.2+frogknows/src/sidebar-stats.h
Examining data/lordsawar-0.3.2+frogknows/src/heroproto.h
Examining data/lordsawar-0.3.2+frogknows/src/port.cpp
Examining data/lordsawar-0.3.2+frogknows/src/LocationBox.cpp
Examining data/lordsawar-0.3.2+frogknows/src/setlist.h
Examining data/lordsawar-0.3.2+frogknows/src/network-connection.cpp
Examining data/lordsawar-0.3.2+frogknows/src/action.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tilestyleset.h
Examining data/lordsawar-0.3.2+frogknows/src/rnd.h
Examining data/lordsawar-0.3.2+frogknows/src/Threatlist.h
Examining data/lordsawar-0.3.2+frogknows/src/QEnemyArmies.h
Examining data/lordsawar-0.3.2+frogknows/src/bridge.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Commentator.h
Examining data/lordsawar-0.3.2+frogknows/src/NextTurn.cpp
Examining data/lordsawar-0.3.2+frogknows/src/signpost.h
Examining data/lordsawar-0.3.2+frogknows/src/Named.h
Examining data/lordsawar-0.3.2+frogknows/src/boxcompose.h
Examining data/lordsawar-0.3.2+frogknows/src/MapRenderer.cpp
Examining data/lordsawar-0.3.2+frogknows/src/AI_Diplomacy.cpp
Examining data/lordsawar-0.3.2+frogknows/src/advertised-game.cpp
Examining data/lordsawar-0.3.2+frogknows/src/File.h
Examining data/lordsawar-0.3.2+frogknows/src/Positioned.cpp
Examining data/lordsawar-0.3.2+frogknows/src/herotemplates.h
Examining data/lordsawar-0.3.2+frogknows/src/ai_smart.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armysetlist.h
Examining data/lordsawar-0.3.2+frogknows/src/tarfile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/shield.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-action.cpp
Examining data/lordsawar-0.3.2+frogknows/src/scenario-list.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gamehost-client.cpp
Examining data/lordsawar-0.3.2+frogknows/src/real_player.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ai_fast.cpp
Examining data/lordsawar-0.3.2+frogknows/src/RoadPathCalculator.h
Examining data/lordsawar-0.3.2+frogknows/src/AICityInfo.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QuestsManager.h
Examining data/lordsawar-0.3.2+frogknows/src/vectormap.h
Examining data/lordsawar-0.3.2+frogknows/src/game-client-decoder.h
Examining data/lordsawar-0.3.2+frogknows/src/MoveResult.h
Examining data/lordsawar-0.3.2+frogknows/src/profilelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game.h
Examining data/lordsawar-0.3.2+frogknows/src/ItemProto.h
Examining data/lordsawar-0.3.2+frogknows/src/gamelist.h
Examining data/lordsawar-0.3.2+frogknows/src/tartan.cpp
Examining data/lordsawar-0.3.2+frogknows/src/GameMap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armyset.cpp
Examining data/lordsawar-0.3.2+frogknows/src/PixMaskCache.h
Examining data/lordsawar-0.3.2+frogknows/src/MapBackpack.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Tile.h
Examining data/lordsawar-0.3.2+frogknows/src/Location.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ruinmap.h
Examining data/lordsawar-0.3.2+frogknows/src/armyprodbase.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tilestyleset.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Configuration.h
Examining data/lordsawar-0.3.2+frogknows/src/Renamable.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stonelist.h
Examining data/lordsawar-0.3.2+frogknows/src/gamehost-client.h
Examining data/lordsawar-0.3.2+frogknows/src/roadlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/PixMask.h
Examining data/lordsawar-0.3.2+frogknows/src/main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-action.h
Examining data/lordsawar-0.3.2+frogknows/src/keeper.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stacktile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/recently-played-game.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tilestyle.h
Examining data/lordsawar-0.3.2+frogknows/src/UniquelyIdentified.h
Examining data/lordsawar-0.3.2+frogknows/src/ScenarioMedia.cpp
Examining data/lordsawar-0.3.2+frogknows/src/shieldstyle.h
Examining data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp
Examining data/lordsawar-0.3.2+frogknows/src/bigmap.h
Examining data/lordsawar-0.3.2+frogknows/src/snd.h
Examining data/lordsawar-0.3.2+frogknows/src/vectormap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game-server.h
Examining data/lordsawar-0.3.2+frogknows/src/Sage.h
Examining data/lordsawar-0.3.2+frogknows/src/shieldsetlist.h
Examining data/lordsawar-0.3.2+frogknows/src/stacklist.h
Examining data/lordsawar-0.3.2+frogknows/src/smallmap.h
Examining data/lordsawar-0.3.2+frogknows/src/ai_smart.h
Examining data/lordsawar-0.3.2+frogknows/src/timing.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stack.cpp
Examining data/lordsawar-0.3.2+frogknows/src/map-tip-position.h
Examining data/lordsawar-0.3.2+frogknows/src/bridgelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/hero.h
Examining data/lordsawar-0.3.2+frogknows/src/keeper.h
Examining data/lordsawar-0.3.2+frogknows/src/gamebigmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/counter.cpp
Examining data/lordsawar-0.3.2+frogknows/src/shield.h
Examining data/lordsawar-0.3.2+frogknows/src/portlist.h
Examining data/lordsawar-0.3.2+frogknows/src/counter.h
Examining data/lordsawar-0.3.2+frogknows/src/NextTurn.h
Examining data/lordsawar-0.3.2+frogknows/src/network_player.h
Examining data/lordsawar-0.3.2+frogknows/src/Itemlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armymap.h
Examining data/lordsawar-0.3.2+frogknows/src/armybase.h
Examining data/lordsawar-0.3.2+frogknows/src/xmlhelper.h
Examining data/lordsawar-0.3.2+frogknows/src/Backpack.h
Examining data/lordsawar-0.3.2+frogknows/src/roadlist.h
Examining data/lordsawar-0.3.2+frogknows/src/maptile.h
Examining data/lordsawar-0.3.2+frogknows/src/ai_dummy.cpp
Examining data/lordsawar-0.3.2+frogknows/src/action.h
Examining data/lordsawar-0.3.2+frogknows/src/MapGenerator.h
Examining data/lordsawar-0.3.2+frogknows/src/game-server.cpp
Examining data/lordsawar-0.3.2+frogknows/src/city.cpp
Examining data/lordsawar-0.3.2+frogknows/src/profile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/recently-played-game-list.h
Examining data/lordsawar-0.3.2+frogknows/src/signpostlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/AI_Analysis.h
Examining data/lordsawar-0.3.2+frogknows/src/GameScenarioOptions.h
Examining data/lordsawar-0.3.2+frogknows/src/SmallTile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/prodslot.h
Examining data/lordsawar-0.3.2+frogknows/src/reward.cpp
Examining data/lordsawar-0.3.2+frogknows/src/heromap.h
Examining data/lordsawar-0.3.2+frogknows/src/Named.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gamelist-client.h
Examining data/lordsawar-0.3.2+frogknows/src/ucompose.hpp
Examining data/lordsawar-0.3.2+frogknows/src/Ownable.cpp
Examining data/lordsawar-0.3.2+frogknows/src/hero.cpp
Examining data/lordsawar-0.3.2+frogknows/src/citylist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QPillageGold.h
Examining data/lordsawar-0.3.2+frogknows/src/hosted-game.h
Examining data/lordsawar-0.3.2+frogknows/src/bridgelist.h
Examining data/lordsawar-0.3.2+frogknows/src/network-connection.h
Examining data/lordsawar-0.3.2+frogknows/src/shieldstyle.cpp
Examining data/lordsawar-0.3.2+frogknows/src/heromap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tartan.h
Examining data/lordsawar-0.3.2+frogknows/src/path.cpp
Examining data/lordsawar-0.3.2+frogknows/src/CreateScenario.h
Examining data/lordsawar-0.3.2+frogknows/src/AI_Allocation.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Immovable.h
Examining data/lordsawar-0.3.2+frogknows/src/QEnemyArmytype.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ghs/ghs-client-tool.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ghs/main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ghs/ghs-client-main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ghs/ghs-client-tool.h
Examining data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.h
Examining data/lordsawar-0.3.2+frogknows/src/citymap.h
Examining data/lordsawar-0.3.2+frogknows/src/Movable.h
Examining data/lordsawar-0.3.2+frogknows/src/rewardlist.h
Examining data/lordsawar-0.3.2+frogknows/src/gls/main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gls/gamelist-server.h
Examining data/lordsawar-0.3.2+frogknows/src/gls/gamelist-server.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gls/gls-client-main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gls/gls-client-tool.h
Examining data/lordsawar-0.3.2+frogknows/src/gls/gls-client-tool.cpp
Examining data/lordsawar-0.3.2+frogknows/src/profilelist.h
Examining data/lordsawar-0.3.2+frogknows/src/network-gls-common.h
Examining data/lordsawar-0.3.2+frogknows/src/ScenarioMedia.h
Examining data/lordsawar-0.3.2+frogknows/src/File.cpp
Examining data/lordsawar-0.3.2+frogknows/src/vector.h
Examining data/lordsawar-0.3.2+frogknows/src/fight.cpp
Examining data/lordsawar-0.3.2+frogknows/src/connection-manager.h
Examining data/lordsawar-0.3.2+frogknows/src/tilesetlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tileset.h
Examining data/lordsawar-0.3.2+frogknows/src/armyprotobase.h
Examining data/lordsawar-0.3.2+frogknows/src/temple.cpp
Examining data/lordsawar-0.3.2+frogknows/src/RoadPathCalculator.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Threatlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armymap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/citysetlist.h
Examining data/lordsawar-0.3.2+frogknows/src/Tile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/historymap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tarhelper.h
Examining data/lordsawar-0.3.2+frogknows/src/bigmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Positioned.h
Examining data/lordsawar-0.3.2+frogknows/src/SightMap.h
Examining data/lordsawar-0.3.2+frogknows/src/shieldset.h
Examining data/lordsawar-0.3.2+frogknows/src/port.h
Examining data/lordsawar-0.3.2+frogknows/src/army.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gamebigmap.h
Examining data/lordsawar-0.3.2+frogknows/src/namelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Quest.cpp
Examining data/lordsawar-0.3.2+frogknows/src/overviewmap.h
Examining data/lordsawar-0.3.2+frogknows/src/PixMask.cpp
Examining data/lordsawar-0.3.2+frogknows/src/itemmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/citysetlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Movable.cpp
Examining data/lordsawar-0.3.2+frogknows/src/temple.h
Examining data/lordsawar-0.3.2+frogknows/src/Triumphs.cpp
Examining data/lordsawar-0.3.2+frogknows/src/input-events.h
Examining data/lordsawar-0.3.2+frogknows/src/stack.h
Examining data/lordsawar-0.3.2+frogknows/src/NextTurnNetworked.h
Examining data/lordsawar-0.3.2+frogknows/src/select-city-map.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Quest.h
Examining data/lordsawar-0.3.2+frogknows/src/heroesmap.h
Examining data/lordsawar-0.3.2+frogknows/src/network_player.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-common.h
Examining data/lordsawar-0.3.2+frogknows/src/tileset.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game-client.cpp
Examining data/lordsawar-0.3.2+frogknows/src/maptile.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QEnemyArmies.cpp
Examining data/lordsawar-0.3.2+frogknows/src/NextTurnNetworked.cpp
Examining data/lordsawar-0.3.2+frogknows/src/road.cpp
Examining data/lordsawar-0.3.2+frogknows/src/snd.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armybase.cpp
Examining data/lordsawar-0.3.2+frogknows/src/UniquelyIdentified.cpp
Examining data/lordsawar-0.3.2+frogknows/src/FogMap.h
Examining data/lordsawar-0.3.2+frogknows/src/file-compat.h
Examining data/lordsawar-0.3.2+frogknows/src/rnd.cpp
Examining data/lordsawar-0.3.2+frogknows/src/armyset.h
Examining data/lordsawar-0.3.2+frogknows/src/chat-client.cpp
Examining data/lordsawar-0.3.2+frogknows/src/vectoredunitlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-assigned-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/status-box.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/main-preferences-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/ruin-rewarded-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-profile-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/diplomacy-report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/surrender-refused-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-network-game-download-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/bar-chart.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/diplomacy-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-info-tip.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/load-progress-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/builder-cache.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/surrender-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-on-player-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/preferences-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-bonus-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-button-box.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/fight-order-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-completed-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-options-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/city-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/buy-production-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-offer-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/lw-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-army-button.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/city-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/item-report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/timed-message-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/load-scenario-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/ruin-report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/tartan-progress-bar.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/main.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-on-city-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/main.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-options-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-network-game-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/item-report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-button-box.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/fight-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/preferences-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/builder-cache.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/driver.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/sage-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/line-chart.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/lw-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/surrender-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/item-bonus-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/tartan-progress-bar.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/ruin-rewarded-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-info-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-bonus-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-lobby-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-preferences-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/font-size.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/main-preferences-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/triumphs-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/destination-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-preferences-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-lobby-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/ruin-report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/load-progress-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-gains-level-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-gains-level-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/splash-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-info-tip.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/destination-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-info-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-info-tip.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/history-report-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-profile-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/buy-production-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/game-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/quick-help-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-tile-box.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/font-size.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/image-helpers.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/load-scenario-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/triumphs-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-network-game-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-tile-box.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-completed-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-offer-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/history-report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/quest-assigned-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/status-box.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-on-player-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/driver.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/diplomacy-report-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/stack-army-button.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/use-item-on-city-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/city-info-tip.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/line-chart.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/bar-chart.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/new-network-game-download-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-levels-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/network-game-selector-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/input-helpers.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/fight-order-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/quick-help-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/diplomacy-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/army-info-tip.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/item-bonus-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/splash-window.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/city-info-tip.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/sage-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/fight-window.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/hero-levels-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/surrender-refused-dialog.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/timed-message-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/gui/image-helpers.h
Examining data/lordsawar-0.3.2+frogknows/src/gui/network-game-selector-dialog.cpp
Examining data/lordsawar-0.3.2+frogknows/src/namelist.h
Examining data/lordsawar-0.3.2+frogknows/src/FogMap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/NextTurnHotseat.cpp
Examining data/lordsawar-0.3.2+frogknows/src/itemmap.h
Examining data/lordsawar-0.3.2+frogknows/src/defs.h
Examining data/lordsawar-0.3.2+frogknows/src/MoveResult.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Namable.h
Examining data/lordsawar-0.3.2+frogknows/src/heroproto.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Sage.cpp
Examining data/lordsawar-0.3.2+frogknows/src/MapBackpack.h
Examining data/lordsawar-0.3.2+frogknows/src/gamelist-client.cpp
Examining data/lordsawar-0.3.2+frogknows/src/shieldsetlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/cityset.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-server.h
Examining data/lordsawar-0.3.2+frogknows/src/network-history.h
Examining data/lordsawar-0.3.2+frogknows/src/Commentator.cpp
Examining data/lordsawar-0.3.2+frogknows/src/file-compat.cpp
Examining data/lordsawar-0.3.2+frogknows/src/scenario-details.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ruin.h
Examining data/lordsawar-0.3.2+frogknows/src/game-actionlist.h
Examining data/lordsawar-0.3.2+frogknows/src/QKillHero.cpp
Examining data/lordsawar-0.3.2+frogknows/src/overviewmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/callback-enums.h
Examining data/lordsawar-0.3.2+frogknows/src/tarfile.h
Examining data/lordsawar-0.3.2+frogknows/src/turn-actionlist.h
Examining data/lordsawar-0.3.2+frogknows/src/LocationBox.h
Examining data/lordsawar-0.3.2+frogknows/src/Item.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Location.h
Examining data/lordsawar-0.3.2+frogknows/src/ruinmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stone.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Configuration.cpp
Examining data/lordsawar-0.3.2+frogknows/src/turn-actionlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/vectoredunit.h
Examining data/lordsawar-0.3.2+frogknows/src/game-client-decoder.cpp
Examining data/lordsawar-0.3.2+frogknows/src/game-station.h
Examining data/lordsawar-0.3.2+frogknows/src/smallmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/signpost.cpp
Examining data/lordsawar-0.3.2+frogknows/src/playerlist.h
Examining data/lordsawar-0.3.2+frogknows/src/GameMap.h
Examining data/lordsawar-0.3.2+frogknows/src/rewardlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QPillageGold.cpp
Examining data/lordsawar-0.3.2+frogknows/src/network-history.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QCitySack.h
Examining data/lordsawar-0.3.2+frogknows/src/playerlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/OwnerId.h
Examining data/lordsawar-0.3.2+frogknows/src/QCityRaze.cpp
Examining data/lordsawar-0.3.2+frogknows/src/questmap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/citymap.cpp
Examining data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp
Examining data/lordsawar-0.3.2+frogknows/src/utils/import.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QuestsManager.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Backpack.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stackreflist.h
Examining data/lordsawar-0.3.2+frogknows/src/AI_Analysis.cpp
Examining data/lordsawar-0.3.2+frogknows/src/Ownable.h
Examining data/lordsawar-0.3.2+frogknows/src/set.h
Examining data/lordsawar-0.3.2+frogknows/src/game-actionlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/CreateScenario.cpp
Examining data/lordsawar-0.3.2+frogknows/src/GameScenarioOptions.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ImageCache.cpp
Examining data/lordsawar-0.3.2+frogknows/src/hosted-game.cpp
Examining data/lordsawar-0.3.2+frogknows/src/citylist.h
Examining data/lordsawar-0.3.2+frogknows/src/historymap.h
Examining data/lordsawar-0.3.2+frogknows/src/stacktile.h
Examining data/lordsawar-0.3.2+frogknows/src/PathCalculator.cpp
Examining data/lordsawar-0.3.2+frogknows/src/road.h
Examining data/lordsawar-0.3.2+frogknows/src/shieldset.cpp
Examining data/lordsawar-0.3.2+frogknows/src/player.h
Examining data/lordsawar-0.3.2+frogknows/src/QEnemyArmytype.h
Examining data/lordsawar-0.3.2+frogknows/src/GameScenario.h
Examining data/lordsawar-0.3.2+frogknows/src/armyprotobase.cpp
Examining data/lordsawar-0.3.2+frogknows/src/profile.h
Examining data/lordsawar-0.3.2+frogknows/src/QKillHero.h
Examining data/lordsawar-0.3.2+frogknows/src/MapRenderer.h
Examining data/lordsawar-0.3.2+frogknows/src/CreateScenarioRandomize.h
Examining data/lordsawar-0.3.2+frogknows/src/Triumphs.h
Examining data/lordsawar-0.3.2+frogknows/src/chat-client.h
Examining data/lordsawar-0.3.2+frogknows/src/stacklist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/PathCalculator.h
Examining data/lordsawar-0.3.2+frogknows/src/tilestyle.cpp
Examining data/lordsawar-0.3.2+frogknows/src/ai_fast.h
Examining data/lordsawar-0.3.2+frogknows/src/QCityOccupy.cpp
Examining data/lordsawar-0.3.2+frogknows/src/NamedLocation.h
Examining data/lordsawar-0.3.2+frogknows/src/gamelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/questmap.h
Examining data/lordsawar-0.3.2+frogknows/src/ruinlist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/QCityOccupy.h
Examining data/lordsawar-0.3.2+frogknows/src/network-ghs-common.h
Examining data/lordsawar-0.3.2+frogknows/src/city.h
Examining data/lordsawar-0.3.2+frogknows/src/prodslotlist.h
Examining data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp
Examining data/lordsawar-0.3.2+frogknows/src/vectoredunitlist.h
Examining data/lordsawar-0.3.2+frogknows/src/stackreflist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/stonelist.cpp
Examining data/lordsawar-0.3.2+frogknows/src/tilesetlist.h
Examining data/lordsawar-0.3.2+frogknows/src/game-parameters.h
Examining data/lordsawar-0.3.2+frogknows/src/cityset.h
Examining data/lordsawar-0.3.2+frogknows/src/armyproto.h
Examining data/lordsawar-0.3.2+frogknows/src/fight.h
Examining data/lordsawar-0.3.2+frogknows/src/AICityInfo.h
Examining data/lordsawar-0.3.2+frogknows/src/timing.h
Examining data/lordsawar-0.3.2+frogknows/src/player.cpp
Examining data/lordsawar-0.3.2+frogknows/src/scenario-details.h
Examining data/lordsawar-0.3.2+frogknows/src/NextTurnHotseat.h
Examining data/lordsawar-0.3.2+frogknows/src/NamedLocation.cpp
Examining data/lordsawar-0.3.2+frogknows/src/recently-played-game-list.cpp
Examining data/lordsawar-0.3.2+frogknows/src/vectoredunit.cpp

FINAL RESULTS:

data/lordsawar-0.3.2+frogknows/src/File.cpp:386:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
Glib::ustring File::getSetDir(Glib::ustring ext, bool system)
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:480:15:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
              fprintf(stderr, 
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:485:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, 
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:937:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf (it, "%s %d %d", name, &code, &value);
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:388:18:  [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.
    int retval = sscanf(value.c_str(), "%s", buf);
data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp:55:76:  [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.
PlayersDialog::PlayersDialog(Gtk::Window &parent, CreateScenarioRandomize *random)
data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp:61:14:  [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.
  d_random = random;
data/lordsawar-0.3.2+frogknows/src/ghs/ghs-client-main.cpp:41:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));         // set the random seed
data/lordsawar-0.3.2+frogknows/src/ghs/main.cpp:41:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));         // set the random seed
data/lordsawar-0.3.2+frogknows/src/gls/gls-client-main.cpp:43:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));         // set the random seed
data/lordsawar-0.3.2+frogknows/src/gls/main.cpp:40:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));         // set the random seed
data/lordsawar-0.3.2+frogknows/src/gui/driver.cpp:159:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("LORDSAWAR_GUI_TEST") != NULL)
data/lordsawar-0.3.2+frogknows/src/gui/game-window.cpp:371:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("LORDSAWAR_GUI_TEST") != NULL)
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:403:27:  [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.
  CreateScenarioRandomize random;
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:408:12:  [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.
  p.name = random.getPlayerName(Shield::WHITE);
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:412:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:415:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:418:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:421:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:424:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:427:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:430:12:  [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.
  p.name = random.getPlayerName(Shield::Colour(p.id));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:527:3:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  random.cleanup();
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:598:27:  [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.
  CreateScenarioRandomize random;
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:600:22:  [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.
  creator.addNeutral(random.getPlayerName(Shield::NEUTRAL), army_id, 
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:630:3:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  random.cleanup();
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:645:26:  [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.
  static char *envlang = getenv("LANG");
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:647:15:  [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.
    envlang = getenv("LC_ALL");
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:649:15:  [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.
    envlang = getenv("LC_CTYPE");
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:236: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).
        s_cacheSize = atoi(temp.c_str());
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:313:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::copy(cfgfile, tmpfile);
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:315:58:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      bool upgraded = FileCompat::getInstance()->upgrade(tmpfile, 
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:318:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        File::copy(tmpfile, cfgfile);
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:319:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:397:42:  [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 GameParameters::NeutralCities(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:427:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return GameParameters::RazingCities(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:455:40:  [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 Configuration::SavingPolicy(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:483:45:  [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 GameParameters::QuickStartPolicy(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:511:40:  [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 GameParameters::QuestPolicy(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:537:42:  [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 GameParameters::VectoringMode(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:565:48:  [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 GameParameters::BuildProductionMode(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Configuration.cpp:597:40:  [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 GameParameters::SackingMode(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/File.cpp:314:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in.open(from.c_str(), std::ios::in | std::ios::binary);
data/lordsawar-0.3.2+frogknows/src/File.cpp:315:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  out.open(to.c_str(), std::ios::out | std::ios::binary);
data/lordsawar-0.3.2+frogknows/src/GameMap.cpp:159: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 hexstr[15];
data/lordsawar-0.3.2+frogknows/src/GameMap.cpp:164:6:  [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 (&hexstr[2], &styles[j*s_width*c + (i * c) + offset], c);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:727:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:739:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  t.saveFile(tmpfile, File::get_basename(goodfilename, true));
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:740:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:775:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:783:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  retval = saveTar(tmpfile, tmptar, goodfilename, true);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1060:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  if (!saveGame(tmpfile))
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1062:46:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      std::cerr<< "Autosave failed, see " << tmpfile << std::endl;
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1067:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  if (File::rename(tmpfile, File::getSaveFile(filename)) == false)
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1070:118:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      std::cerr << String::ucompose(_("Error! can't rename the temporary file `%1' to the autosave file `%2'.  %3"), tmpfile, File::getSaveFile(filename), err) << std::endl;
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1095:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return GameScenario::PlayMode(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1291:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      XML_Helper helper(tmpfile, std::ios::in);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1302:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1425:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      XML_Helper helper(tmpfile, std::ios::in);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1430:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1469:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      XML_Helper helper(tmpfile, std::ios::in);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1478:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/GameScenario.cpp:1532:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[40];
data/lordsawar-0.3.2+frogknows/src/ImageCache.cpp:1431: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(copy, data, height * width * 4 * sizeof(guint8));
data/lordsawar-0.3.2+frogknows/src/ImageCache.cpp:1464: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(copy, data, height * width * 4 * sizeof(guint8));
data/lordsawar-0.3.2+frogknows/src/ItemProto.cpp:369:29:  [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 ItemProto::Bonus(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/Quest.cpp:125:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return Quest::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/ScenarioMedia.cpp:305:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::copy (n, tmpfile);
data/lordsawar-0.3.2+frogknows/src/ScenarioMedia.cpp:309:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          item->file = tmpfile;
data/lordsawar-0.3.2+frogknows/src/Tile.cpp:165: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).
    return Tile::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/action.cpp:2582: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).
    return Action::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/armybase.cpp:243: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).
    return ArmyBase::Bonus(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/armyset.cpp:128:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/armyset.cpp:134:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  return saveTar(tmpfile, tmpfile + ".tar", goodfilename);
data/lordsawar-0.3.2+frogknows/src/boxcompose.h:145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/lordsawar-0.3.2+frogknows/src/bridge.cpp:82: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).
    return Bridge::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/cityset.cpp:242:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/cityset.cpp:248:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  return saveTar(tmpfile, tmpfile + ".tar", goodfilename);
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1089:36:  [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).
  production_spinbutton->set_value(atoi(production_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1120:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cost_spinbutton->set_value(atoi(cost_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1149:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  new_cost_spinbutton->set_value(atoi(new_cost_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1173:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  upkeep_spinbutton->set_value(atoi(upkeep_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1202:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  strength_spinbutton->set_value(atoi(strength_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1231:31:  [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).
  moves_spinbutton->set_value(atoi(moves_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1260:29:  [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).
  exp_spinbutton->set_value(atoi(exp_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1284:31:  [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).
  sight_spinbutton->set_value(atoi(sight_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/armyset-window.cpp:1308: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).
  id_spinbutton->set_value(atoi(id_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/battle-calculator-dialog.cpp:284:13:  [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 str = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/battle-calculator-dialog.cpp:470:13:  [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 str = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp:318:13:  [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 str = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp:340:15:  [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 moves = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp:362:15:  [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 turns = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp:382:16:  [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 upkeep = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/city-editor-dialog.cpp:488:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  income_spinbutton->set_value(atoi(income_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/cityset-window.cpp:542:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  city_tile_width_spinbutton->set_value(atoi(city_tile_width_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/cityset-window.cpp:557:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  ruin_tile_width_spinbutton->set_value(atoi(ruin_tile_width_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/cityset-window.cpp:572:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  temple_tile_width_spinbutton->set_value(atoi(temple_tile_width_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.cpp:598:39:  [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).
  steal_percent_spinbutton->set_value(atoi(steal_percent_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.cpp:614:48:  [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).
  disease_armies_percent_spinbutton->set_value(atoi(disease_armies_percent_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.cpp:629:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  add_mp_spinbutton->set_value(atoi(add_mp_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/itemlist-dialog.cpp:644:39:  [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).
  num_defenders_spinbutton->set_value(atoi(num_defenders_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/new-map-dialog.cpp:311:20:  [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 (guint32) atoi(tile_size_combobox->get_active_text().c_str());
data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp:161:15:  [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).
  player.id = atoi (path.to_string ().c_str ());
data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp:228:18:  [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 gold = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/players-dialog.cpp:277: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).
  guint32 player_id = atoi (path.to_string ().c_str ());
data/lordsawar-0.3.2+frogknows/src/editor/ruin-editor-dialog.cpp:304:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  type_spinbutton->set_value(atoi(type_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/stack-editor-dialog.cpp:382:13:  [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 str = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/stack-editor-dialog.cpp:404:15:  [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 moves = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/stack-editor-dialog.cpp:426:16:  [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 upkeep = atoi(new_text.c_str());
data/lordsawar-0.3.2+frogknows/src/editor/switch-sets-dialog.cpp:118:20:  [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 (guint32) atoi(tile_size_combobox->get_active_text().c_str());
data/lordsawar-0.3.2+frogknows/src/editor/temple-editor-dialog.cpp:70:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  type_spinbutton->set_value(atoi(type_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:189:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (!broken && tmpfile.empty() == false)
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:191:37:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                  XML_Helper helper(tmpfile, std::ios::in);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:192:49:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                  tag = XML_Helper::get_top_tag(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:193:35:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                  VersionLoader l(tmpfile, tag, version, broken);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:195:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                  File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:313:52:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            upgraded = XML_Helper::rewrite_version(tmpfile, tag, version);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:317:33:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:320:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:321:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:362:48:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        upgraded = XML_Helper::rewrite_version(tmpfile, getTag(GAMESCENARIO), 
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:365:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:370:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:374:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:377:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:382:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (f, tmpfile, f);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:385:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:388:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:391:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:397:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:400:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:403:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:406:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:412:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:415:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:418:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:421:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:427:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:430:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:510:38:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            upgraded = xsl_transform(tmpfile, xsl_file);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:512:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:514:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:515:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:547:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        upgraded = xsl_transform(tmpfile, xsl_file);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:550:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:555:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:559:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:562:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:567:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (f, tmpfile, f);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:570:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:573:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:576:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:582:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:585:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:588:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:591:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:597:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:600:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:603:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          if (tmpfile != "")
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:606:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              if (upgrade(tmpfile, same))
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:612:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                      t.replaceFile (n, tmpfile, n);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:615:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
              delfiles.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:628: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.
  const char *params[16 + 1];
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:647:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  xmlChar *out = xmlCharStrdup(tmpfile.c_str());
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:648:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  xsltSaveResultToFilename(tmpfile.c_str(), res, cur, 0);
data/lordsawar-0.3.2+frogknows/src/file-compat.cpp:658:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::rename(tmpfile, filename);
data/lordsawar-0.3.2+frogknows/src/game-client.cpp:234:56:  [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).
    gotKillPlayer(Playerlist::getInstance()->getPlayer(atoi(payload.c_str())));
data/lordsawar-0.3.2+frogknows/src/game-client.cpp:239:45:  [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).
      (Playerlist::getInstance()->getPlayer(atoi(payload.c_str())));
data/lordsawar-0.3.2+frogknows/src/game-client.cpp:256:55:  [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).
    gotOffPlayer(Playerlist::getInstance()->getPlayer(atoi(payload.c_str())));
data/lordsawar-0.3.2+frogknows/src/game-client.cpp:285:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                 atoi(data.c_str()));
data/lordsawar-0.3.2+frogknows/src/game-server.cpp:326:33:  [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).
                                atoi(data.c_str()));
data/lordsawar-0.3.2+frogknows/src/game-server.cpp:853:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/game-server.cpp:856:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  d_game_scenario->saveGame(tmpfile);
data/lordsawar-0.3.2+frogknows/src/game-server.cpp:859:66:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  network_server->sendFile(part->conn, MESSAGE_TYPE_SENDING_MAP, tmpfile);
data/lordsawar-0.3.2+frogknows/src/game-station.cpp:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/lordsawar-0.3.2+frogknows/src/gamehost-client.cpp:248:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  game_scenario->saveGame(tmpfile);
data/lordsawar-0.3.2+frogknows/src/gamehost-client.cpp:249:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  send_map_file(tmpfile);
data/lordsawar-0.3.2+frogknows/src/gamehost-client.cpp:250:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:189:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  game_scenario->saveGame(tmpfile);
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:193:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  argv.push_back(tmpfile);
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:387:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          std::ofstream f(tmpfile.c_str());
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:391:58:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          GameScenario *game_scenario = new GameScenario(tmpfile, broken);
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:392:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:564:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/lordsawar-0.3.2+frogknows/src/gls/gls-client-tool.cpp:71: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 file[256];
data/lordsawar-0.3.2+frogknows/src/gls/gls-client-tool.cpp:80:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char host[256];
data/lordsawar-0.3.2+frogknows/src/gls/gls-client-tool.cpp:86:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char portstr[256];
data/lordsawar-0.3.2+frogknows/src/gui/game-preferences-dialog.cpp:532:37:  [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).
  num_players_spinbutton->set_value(atoi(num_players_spinbutton->get_text().c_str()));
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:239:20:  [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 (guint32) atoi(tile_size_combobox->get_active_text().c_str());
data/lordsawar-0.3.2+frogknows/src/gui/splash-window.cpp:75:23:  [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 *fileptr = fopen (filename.c_str(), "r");
data/lordsawar-0.3.2+frogknows/src/hero.cpp:153: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).
    return Hero::Gender(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/history.cpp:960:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return History::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/maptile.cpp:218:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return Maptile::Building(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:180: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(&val, header, header_size);
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:209:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen (path.c_str(), "wb");
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:257:19:  [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 *fileptr = fopen (filename.c_str(), "r");
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:266: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(buf, &l, MESSAGE_SIZE_BYTES);
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:288: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(buf, &l, MESSAGE_SIZE_BYTES);
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:293: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 (&buf[MESSAGE_HEADER_SIZE], pay.c_str(), pay.size());
data/lordsawar-0.3.2+frogknows/src/network-connection.h:76: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 header[MESSAGE_SIZE_BYTES];
data/lordsawar-0.3.2+frogknows/src/player.cpp:3592: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).
    return Player::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/reward.cpp:607: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).
    return Reward::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/road.cpp:93: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).
    return Road::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/ruin.cpp:201: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).
    return Ruin::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/shieldset.cpp:215:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/shieldset.cpp:221:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  return saveTar(tmpfile, tmpfile + ".tar", goodfilename);
data/lordsawar-0.3.2+frogknows/src/shieldstyle.cpp:94:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return ShieldStyle::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/stone.cpp:463:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return Stone::Type(atoi(str.c_str()));
data/lordsawar-0.3.2+frogknows/src/tarfile.cpp:138:37:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
bool TarFile::saveTar(Glib::ustring tmpfile, Glib::ustring tmptar, Glib::ustring dest, bool add_sets) const
data/lordsawar-0.3.2+frogknows/src/tarfile.cpp:144:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  t.saveFile(tmpfile, File::get_basename(dest, true));
data/lordsawar-0.3.2+frogknows/src/tarfile.cpp:190:27:  [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 *fileptr = fopen (infile.c_str(), "r");
data/lordsawar-0.3.2+frogknows/src/tarfile.cpp:198:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/tarfile.h:52:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    bool saveTar(Glib::ustring tmpfile, Glib::ustring tmptar, Glib::ustring dest, bool add_sets = false) const;
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:105:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[8192];
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:339:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open (filename.c_str(), O_RDONLY);
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:342:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[8192];
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:381: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).
        count = atoi (numerals.c_str ()) + 1;
data/lordsawar-0.3.2+frogknows/src/tileset.cpp:370:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper helper(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/tileset.cpp:376:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  return saveTar(tmpfile, tmpfile + ".tar", goodfilename);
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:474:11:  [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 (&code, &tile, 1);
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:501:11:  [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 (&port, (((char *)&tile)+1), 1);
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:542:11:  [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 (&code, &tile, 1);
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:598:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char roads[156][112];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:637: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 names[8][21];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:680:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[21];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:681:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused[5];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:689:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[256];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:736:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[17];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:737:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused1[2];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:738:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char armies[4];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:739:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused2[16];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:741:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused3[21];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:785:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused[16];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:809:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line1[51];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:810:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line2[51];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:844:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:846: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 bytes[10];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:934:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[21];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:956: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[20];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1222: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 fight_order[29];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1223: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 fight_order_no_boat[28];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1271:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char unused[16];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1344: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 armyname[256];
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1363:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      a = fopen (armyname_file.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1367:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      a = fopen (armyset_file.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1375: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).
          a = fopen (armyset_file.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1383:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      a = fopen (armyset_file.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1394: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 *a = fopen (filename.c_str(), "r");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1503:17:  [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 *m = fopen (map.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1504:17:  [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 *s = fopen (scn.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1505:17:  [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 *r = fopen (rd.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1506:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *sg = fopen (signs.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1507:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *it = fopen (items.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1508:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *sp = fopen (spc.front().c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1512: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).
        a = fopen (armyset_filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1528:17:  [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 *m = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1532:17:  [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 *s = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1536:17:  [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 *r = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1540:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *sg = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1544:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *it = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1548:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *sp = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1554: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).
        a = fopen (armyset_filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1557: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).
          a = fopen (filename.c_str(), "rb");
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:83:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      File::copy(filename, tmpfile);
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:84:58:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      bool upgraded = FileCompat::getInstance()->upgrade(tmpfile, 
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:94:64:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            FileCompat::getInstance()->getTypeByFileInspection(tmpfile, 
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:102:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                (tmpfile, LORDSAWAR_SAVEGAME_VERSION, 
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:115:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                    File::copy(tmpfile, filename);
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:120:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:126:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:130:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          File::copy(tmpfile, filename);
data/lordsawar-0.3.2+frogknows/src/utils/upgrade-file.cpp:131:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
          File::erase(tmpfile);
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:185:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[3];
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[15];
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:482:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    data = atoi((*it).second.c_str());
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:501:33:  [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).
    data = static_cast<guint32>(atoi((*it).second.c_str()));
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:532:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:711:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:736:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:739:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  XML_Helper out(tmpfile, std::ios::out);
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:775:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  File::rename(tmpfile, filename);
data/lordsawar-0.3.2+frogknows/src/File.cpp:90:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (dir.c_str()[strlen(dir.c_str())-1] == '/' ||
data/lordsawar-0.3.2+frogknows/src/File.cpp:91:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      dir.c_str()[strlen(dir.c_str())-1] == '\\')
data/lordsawar-0.3.2+frogknows/src/File.cpp:450:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen(string);
data/lordsawar-0.3.2+frogknows/src/ai_fast.cpp:216:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    Glib::usleep (50000);
data/lordsawar-0.3.2+frogknows/src/ai_fast.cpp:218:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    Glib::usleep (50000);
data/lordsawar-0.3.2+frogknows/src/ai_smart.cpp:123:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  Glib::usleep (50000);
data/lordsawar-0.3.2+frogknows/src/ai_smart.cpp:125:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  Glib::usleep (50000);
data/lordsawar-0.3.2+frogknows/src/editor/tilestyle-organizer-dialog.cpp:115:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  data.set(data.get_target(), 8, (const guchar*)s.c_str(), strlen(s.c_str()));
data/lordsawar-0.3.2+frogknows/src/editor/tilestyle-organizer-dialog.cpp:127:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  data.set(data.get_target(), 8, (const guchar*)s.c_str(), strlen(s.c_str()));
data/lordsawar-0.3.2+frogknows/src/ghs/gamehost-server.cpp:225:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep(1000000);
data/lordsawar-0.3.2+frogknows/src/gui/game-preferences-dialog.cpp:587:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep (10000);
data/lordsawar-0.3.2+frogknows/src/gui/game-window.cpp:1798:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  Glib::usleep (TIMER_BIGMAP_EXPLOSION_DELAY);
data/lordsawar-0.3.2+frogknows/src/gui/game-window.cpp:2590:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep(step);
data/lordsawar-0.3.2+frogknows/src/gui/game-window.cpp:2860:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  Glib::usleep (TIMER_BIGMAP_SELECTOR * 10000);
data/lordsawar-0.3.2+frogknows/src/gui/load-progress-window.cpp:78:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep (10000);
data/lordsawar-0.3.2+frogknows/src/gui/load-scenario-dialog.cpp:300:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep (10000);
data/lordsawar-0.3.2+frogknows/src/gui/new-random-map-dialog.cpp:651:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      Glib::usleep (10000);
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:174:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  in->read(header + (header_size - header_left), len);
data/lordsawar-0.3.2+frogknows/src/network-connection.cpp:191:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  in->read(payload + (payload_size - payload_left), len);
data/lordsawar-0.3.2+frogknows/src/smallmap.cpp:206:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
          Glib::usleep(sleep_interval);
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:344:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t len = read (fd, buff, sizeof (buff));
data/lordsawar-0.3.2+frogknows/src/tarhelper.cpp:348:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read (fd, buff, sizeof (buff));
data/lordsawar-0.3.2+frogknows/src/utils/import.cpp:1347: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 (armyname) == 0)
data/lordsawar-0.3.2+frogknows/src/xmlhelper.cpp:536:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        d_in->read(buffer, sizeof (buffer) - 1);

ANALYSIS SUMMARY:

Hits = 305
Lines analyzed = 147769 in approximately 3.25 seconds (45515 lines/second)
Physical Source Lines of Code (SLOC) = 103189
Hits@level = [0] 133 [1]  24 [2] 252 [3]  24 [4]   5 [5]   0
Hits@level+ = [0+] 438 [1+] 305 [2+] 281 [3+]  29 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 4.24464 [1+] 2.95574 [2+] 2.72316 [3+] 0.281038 [4+] 0.0484548 [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.