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/endless-sky-0.9.8/source/AI.cpp Examining data/endless-sky-0.9.8/source/AI.h Examining data/endless-sky-0.9.8/source/Account.cpp Examining data/endless-sky-0.9.8/source/Account.h Examining data/endless-sky-0.9.8/source/Angle.cpp Examining data/endless-sky-0.9.8/source/Angle.h Examining data/endless-sky-0.9.8/source/Armament.cpp Examining data/endless-sky-0.9.8/source/Armament.h Examining data/endless-sky-0.9.8/source/AsteroidField.cpp Examining data/endless-sky-0.9.8/source/AsteroidField.h Examining data/endless-sky-0.9.8/source/Audio.cpp Examining data/endless-sky-0.9.8/source/Audio.h Examining data/endless-sky-0.9.8/source/BankPanel.cpp Examining data/endless-sky-0.9.8/source/BankPanel.h Examining data/endless-sky-0.9.8/source/BoardingPanel.cpp Examining data/endless-sky-0.9.8/source/BoardingPanel.h Examining data/endless-sky-0.9.8/source/Body.cpp Examining data/endless-sky-0.9.8/source/Body.h Examining data/endless-sky-0.9.8/source/CaptureOdds.cpp Examining data/endless-sky-0.9.8/source/CaptureOdds.h Examining data/endless-sky-0.9.8/source/CargoHold.cpp Examining data/endless-sky-0.9.8/source/CargoHold.h Examining data/endless-sky-0.9.8/source/ClickZone.h Examining data/endless-sky-0.9.8/source/CollisionSet.cpp Examining data/endless-sky-0.9.8/source/CollisionSet.h Examining data/endless-sky-0.9.8/source/Color.cpp Examining data/endless-sky-0.9.8/source/Color.h Examining data/endless-sky-0.9.8/source/Command.cpp Examining data/endless-sky-0.9.8/source/Command.h Examining data/endless-sky-0.9.8/source/ConditionSet.cpp Examining data/endless-sky-0.9.8/source/ConditionSet.h Examining data/endless-sky-0.9.8/source/Conversation.cpp Examining data/endless-sky-0.9.8/source/Conversation.h Examining data/endless-sky-0.9.8/source/ConversationPanel.cpp Examining data/endless-sky-0.9.8/source/ConversationPanel.h Examining data/endless-sky-0.9.8/source/DataFile.cpp Examining data/endless-sky-0.9.8/source/DataFile.h Examining data/endless-sky-0.9.8/source/DataNode.cpp Examining data/endless-sky-0.9.8/source/DataNode.h Examining data/endless-sky-0.9.8/source/DataWriter.cpp Examining data/endless-sky-0.9.8/source/DataWriter.h Examining data/endless-sky-0.9.8/source/Date.cpp Examining data/endless-sky-0.9.8/source/Date.h Examining data/endless-sky-0.9.8/source/Depreciation.cpp Examining data/endless-sky-0.9.8/source/Depreciation.h Examining data/endless-sky-0.9.8/source/Dialog.cpp Examining data/endless-sky-0.9.8/source/Dialog.h Examining data/endless-sky-0.9.8/source/DistanceMap.cpp Examining data/endless-sky-0.9.8/source/DistanceMap.h Examining data/endless-sky-0.9.8/source/DrawList.cpp Examining data/endless-sky-0.9.8/source/DrawList.h Examining data/endless-sky-0.9.8/source/Effect.cpp Examining data/endless-sky-0.9.8/source/Effect.h Examining data/endless-sky-0.9.8/source/Engine.cpp Examining data/endless-sky-0.9.8/source/Engine.h Examining data/endless-sky-0.9.8/source/EscortDisplay.cpp Examining data/endless-sky-0.9.8/source/EscortDisplay.h Examining data/endless-sky-0.9.8/source/File.cpp Examining data/endless-sky-0.9.8/source/File.h Examining data/endless-sky-0.9.8/source/Files.cpp Examining data/endless-sky-0.9.8/source/Files.h Examining data/endless-sky-0.9.8/source/FillShader.cpp Examining data/endless-sky-0.9.8/source/FillShader.h Examining data/endless-sky-0.9.8/source/Fleet.cpp Examining data/endless-sky-0.9.8/source/Fleet.h Examining data/endless-sky-0.9.8/source/Flotsam.cpp Examining data/endless-sky-0.9.8/source/Flotsam.h Examining data/endless-sky-0.9.8/source/FogShader.cpp Examining data/endless-sky-0.9.8/source/FogShader.h Examining data/endless-sky-0.9.8/source/Font.cpp Examining data/endless-sky-0.9.8/source/Font.h Examining data/endless-sky-0.9.8/source/FontSet.cpp Examining data/endless-sky-0.9.8/source/FontSet.h Examining data/endless-sky-0.9.8/source/Format.cpp Examining data/endless-sky-0.9.8/source/Format.h Examining data/endless-sky-0.9.8/source/FrameTimer.cpp Examining data/endless-sky-0.9.8/source/FrameTimer.h Examining data/endless-sky-0.9.8/source/Galaxy.cpp Examining data/endless-sky-0.9.8/source/Galaxy.h Examining data/endless-sky-0.9.8/source/GameData.cpp Examining data/endless-sky-0.9.8/source/GameData.h Examining data/endless-sky-0.9.8/source/GameEvent.cpp Examining data/endless-sky-0.9.8/source/GameEvent.h Examining data/endless-sky-0.9.8/source/Government.cpp Examining data/endless-sky-0.9.8/source/Government.h Examining data/endless-sky-0.9.8/source/HailPanel.cpp Examining data/endless-sky-0.9.8/source/HailPanel.h Examining data/endless-sky-0.9.8/source/Hardpoint.cpp Examining data/endless-sky-0.9.8/source/Hardpoint.h Examining data/endless-sky-0.9.8/source/HiringPanel.cpp Examining data/endless-sky-0.9.8/source/HiringPanel.h Examining data/endless-sky-0.9.8/source/ImageBuffer.cpp Examining data/endless-sky-0.9.8/source/ImageBuffer.h Examining data/endless-sky-0.9.8/source/Information.cpp Examining data/endless-sky-0.9.8/source/Information.h Examining data/endless-sky-0.9.8/source/Interface.cpp Examining data/endless-sky-0.9.8/source/Interface.h Examining data/endless-sky-0.9.8/source/ItemInfoDisplay.cpp Examining data/endless-sky-0.9.8/source/ItemInfoDisplay.h Examining data/endless-sky-0.9.8/source/LineShader.cpp Examining data/endless-sky-0.9.8/source/LineShader.h Examining data/endless-sky-0.9.8/source/LoadPanel.cpp Examining data/endless-sky-0.9.8/source/LoadPanel.h Examining data/endless-sky-0.9.8/source/LocationFilter.cpp Examining data/endless-sky-0.9.8/source/LocationFilter.h Examining data/endless-sky-0.9.8/source/LogbookPanel.cpp Examining data/endless-sky-0.9.8/source/LogbookPanel.h Examining data/endless-sky-0.9.8/source/MainPanel.cpp Examining data/endless-sky-0.9.8/source/MainPanel.h Examining data/endless-sky-0.9.8/source/MapDetailPanel.cpp Examining data/endless-sky-0.9.8/source/MapDetailPanel.h Examining data/endless-sky-0.9.8/source/MapOutfitterPanel.cpp Examining data/endless-sky-0.9.8/source/MapOutfitterPanel.h Examining data/endless-sky-0.9.8/source/MapPanel.cpp Examining data/endless-sky-0.9.8/source/MapPanel.h Examining data/endless-sky-0.9.8/source/MapSalesPanel.cpp Examining data/endless-sky-0.9.8/source/MapSalesPanel.h Examining data/endless-sky-0.9.8/source/MapShipyardPanel.cpp Examining data/endless-sky-0.9.8/source/MapShipyardPanel.h Examining data/endless-sky-0.9.8/source/Mask.cpp Examining data/endless-sky-0.9.8/source/Mask.h Examining data/endless-sky-0.9.8/source/MenuPanel.cpp Examining data/endless-sky-0.9.8/source/MenuPanel.h Examining data/endless-sky-0.9.8/source/Messages.cpp Examining data/endless-sky-0.9.8/source/Messages.h Examining data/endless-sky-0.9.8/source/Minable.cpp Examining data/endless-sky-0.9.8/source/Minable.h Examining data/endless-sky-0.9.8/source/Mission.cpp Examining data/endless-sky-0.9.8/source/Mission.h Examining data/endless-sky-0.9.8/source/MissionAction.cpp Examining data/endless-sky-0.9.8/source/MissionAction.h Examining data/endless-sky-0.9.8/source/MissionPanel.cpp Examining data/endless-sky-0.9.8/source/MissionPanel.h Examining data/endless-sky-0.9.8/source/Mortgage.cpp Examining data/endless-sky-0.9.8/source/Mortgage.h Examining data/endless-sky-0.9.8/source/Music.cpp Examining data/endless-sky-0.9.8/source/Music.h Examining data/endless-sky-0.9.8/source/NPC.cpp Examining data/endless-sky-0.9.8/source/NPC.h Examining data/endless-sky-0.9.8/source/Outfit.cpp Examining data/endless-sky-0.9.8/source/Outfit.h Examining data/endless-sky-0.9.8/source/OutfitInfoDisplay.cpp Examining data/endless-sky-0.9.8/source/OutfitInfoDisplay.h Examining data/endless-sky-0.9.8/source/OutfitterPanel.cpp Examining data/endless-sky-0.9.8/source/OutfitterPanel.h Examining data/endless-sky-0.9.8/source/OutlineShader.cpp Examining data/endless-sky-0.9.8/source/OutlineShader.h Examining data/endless-sky-0.9.8/source/Panel.cpp Examining data/endless-sky-0.9.8/source/Person.cpp Examining data/endless-sky-0.9.8/source/Person.h Examining data/endless-sky-0.9.8/source/Personality.cpp Examining data/endless-sky-0.9.8/source/Personality.h Examining data/endless-sky-0.9.8/source/Phrase.cpp Examining data/endless-sky-0.9.8/source/Phrase.h Examining data/endless-sky-0.9.8/source/Planet.cpp Examining data/endless-sky-0.9.8/source/Planet.h Examining data/endless-sky-0.9.8/source/PlanetLabel.cpp Examining data/endless-sky-0.9.8/source/PlanetLabel.h Examining data/endless-sky-0.9.8/source/PlanetPanel.cpp Examining data/endless-sky-0.9.8/source/PlanetPanel.h Examining data/endless-sky-0.9.8/source/PlayerInfo.cpp Examining data/endless-sky-0.9.8/source/PlayerInfo.h Examining data/endless-sky-0.9.8/source/PlayerInfoPanel.cpp Examining data/endless-sky-0.9.8/source/PlayerInfoPanel.h Examining data/endless-sky-0.9.8/source/Point.cpp Examining data/endless-sky-0.9.8/source/Point.h Examining data/endless-sky-0.9.8/source/PointerShader.cpp Examining data/endless-sky-0.9.8/source/PointerShader.h Examining data/endless-sky-0.9.8/source/Politics.cpp Examining data/endless-sky-0.9.8/source/Politics.h Examining data/endless-sky-0.9.8/source/Preferences.cpp Examining data/endless-sky-0.9.8/source/Preferences.h Examining data/endless-sky-0.9.8/source/PreferencesPanel.cpp Examining data/endless-sky-0.9.8/source/PreferencesPanel.h Examining data/endless-sky-0.9.8/source/Projectile.cpp Examining data/endless-sky-0.9.8/source/Projectile.h Examining data/endless-sky-0.9.8/source/Radar.cpp Examining data/endless-sky-0.9.8/source/Radar.h Examining data/endless-sky-0.9.8/source/Random.cpp Examining data/endless-sky-0.9.8/source/Random.h Examining data/endless-sky-0.9.8/source/Rectangle.cpp Examining data/endless-sky-0.9.8/source/Rectangle.h Examining data/endless-sky-0.9.8/source/RingShader.cpp Examining data/endless-sky-0.9.8/source/RingShader.h Examining data/endless-sky-0.9.8/source/Sale.h Examining data/endless-sky-0.9.8/source/SavedGame.cpp Examining data/endless-sky-0.9.8/source/SavedGame.h Examining data/endless-sky-0.9.8/source/Screen.cpp Examining data/endless-sky-0.9.8/source/Screen.h Examining data/endless-sky-0.9.8/source/Set.h Examining data/endless-sky-0.9.8/source/Shader.cpp Examining data/endless-sky-0.9.8/source/Shader.h Examining data/endless-sky-0.9.8/source/Ship.cpp Examining data/endless-sky-0.9.8/source/Ship.h Examining data/endless-sky-0.9.8/source/ShipEvent.cpp Examining data/endless-sky-0.9.8/source/ShipEvent.h Examining data/endless-sky-0.9.8/source/ShipInfoDisplay.cpp Examining data/endless-sky-0.9.8/source/ShipInfoDisplay.h Examining data/endless-sky-0.9.8/source/ShipInfoPanel.cpp Examining data/endless-sky-0.9.8/source/ShipInfoPanel.h Examining data/endless-sky-0.9.8/source/ShipyardPanel.cpp Examining data/endless-sky-0.9.8/source/ShipyardPanel.h Examining data/endless-sky-0.9.8/source/ShopPanel.cpp Examining data/endless-sky-0.9.8/source/ShopPanel.h Examining data/endless-sky-0.9.8/source/Sound.cpp Examining data/endless-sky-0.9.8/source/Sound.h Examining data/endless-sky-0.9.8/source/SpaceportPanel.cpp Examining data/endless-sky-0.9.8/source/SpaceportPanel.h Examining data/endless-sky-0.9.8/source/Sprite.cpp Examining data/endless-sky-0.9.8/source/Sprite.h Examining data/endless-sky-0.9.8/source/SpriteQueue.cpp Examining data/endless-sky-0.9.8/source/SpriteQueue.h Examining data/endless-sky-0.9.8/source/SpriteSet.cpp Examining data/endless-sky-0.9.8/source/SpriteSet.h Examining data/endless-sky-0.9.8/source/SpriteShader.cpp Examining data/endless-sky-0.9.8/source/SpriteShader.h Examining data/endless-sky-0.9.8/source/StarField.cpp Examining data/endless-sky-0.9.8/source/StarField.h Examining data/endless-sky-0.9.8/source/StartConditions.cpp Examining data/endless-sky-0.9.8/source/StartConditions.h Examining data/endless-sky-0.9.8/source/StellarObject.cpp Examining data/endless-sky-0.9.8/source/StellarObject.h Examining data/endless-sky-0.9.8/source/System.cpp Examining data/endless-sky-0.9.8/source/System.h Examining data/endless-sky-0.9.8/source/Table.cpp Examining data/endless-sky-0.9.8/source/Table.h Examining data/endless-sky-0.9.8/source/Trade.cpp Examining data/endless-sky-0.9.8/source/Trade.h Examining data/endless-sky-0.9.8/source/TradingPanel.cpp Examining data/endless-sky-0.9.8/source/TradingPanel.h Examining data/endless-sky-0.9.8/source/UI.cpp Examining data/endless-sky-0.9.8/source/UI.h Examining data/endless-sky-0.9.8/source/Weapon.cpp Examining data/endless-sky-0.9.8/source/Weapon.h Examining data/endless-sky-0.9.8/source/WrappedText.cpp Examining data/endless-sky-0.9.8/source/WrappedText.h Examining data/endless-sky-0.9.8/source/gl_header.h Examining data/endless-sky-0.9.8/source/main.cpp Examining data/endless-sky-0.9.8/source/pi.h Examining data/endless-sky-0.9.8/source/shift.h Examining data/endless-sky-0.9.8/source/Panel.h FINAL RESULTS: data/endless-sky-0.9.8/source/AI.cpp:839:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(it->GetSystem() == system && it->IsTargetable() && gov->IsEnemy(it->GetGovernment())) data/endless-sky-0.9.8/source/AI.cpp:919:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(it->GetSystem() == system && it->GetGovernment() != gov && it->IsTargetable()) data/endless-sky-0.9.8/source/AI.cpp:2461:69: [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. && object.GetPlanet()->WormholeDestination(ship.GetSystem()) == system && player.HasVisited(system)) data/endless-sky-0.9.8/source/AI.cpp:2461:97: [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. && object.GetPlanet()->WormholeDestination(ship.GetSystem()) == system && player.HasVisited(system)) data/endless-sky-0.9.8/source/AI.cpp:2469:25: [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. ship.SetTargetSystem(system); data/endless-sky-0.9.8/source/AI.cpp:2485:66: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.Destination() && mission.Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/AI.cpp:2499:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(planet->IsInSystem(system)) data/endless-sky-0.9.8/source/BoardingPanel.cpp:68:46: [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. plunder.emplace_back(it.first, it.second, system.Trade(it.first)); data/endless-sky-0.9.8/source/CargoHold.cpp:556:40: [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. int64_t CargoHold::Value(const System *system) const data/endless-sky-0.9.8/source/CargoHold.h:99:30: [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. int64_t Value(const System *system) const; data/endless-sky-0.9.8/source/ConversationPanel.cpp:51:106: [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. ConversationPanel::ConversationPanel(PlayerInfo &player, const Conversation &conversation, const System *system, const Ship *ship) data/endless-sky-0.9.8/source/ConversationPanel.cpp:52:60: [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. : player(player), conversation(conversation), scroll(0.), system(system) data/endless-sky-0.9.8/source/ConversationPanel.cpp:52:67: [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. : player(player), conversation(conversation), scroll(0.), system(system) data/endless-sky-0.9.8/source/ConversationPanel.cpp:194:44: [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. GetUI()->Push(new MapDetailPanel(player, system)); data/endless-sky-0.9.8/source/ConversationPanel.h:124:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. const System *system; data/endless-sky-0.9.8/source/Dialog.cpp:95:70: [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. Dialog::Dialog(const string &text, PlayerInfo &player, const System *system) data/endless-sky-0.9.8/source/Dialog.cpp:97:2: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(system), player(&player) data/endless-sky-0.9.8/source/Dialog.cpp:97:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(system), player(&player) data/endless-sky-0.9.8/source/Dialog.cpp:219: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. else if((key == 'm' || command.Has(Command::MAP)) && system && player) data/endless-sky-0.9.8/source/Dialog.cpp:220:45: [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. GetUI()->Push(new MapDetailPanel(*player, system)); data/endless-sky-0.9.8/source/DistanceMap.cpp:74:42: [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. bool DistanceMap::HasRoute(const System *system) const data/endless-sky-0.9.8/source/DistanceMap.cpp:76:21: [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. return route.count(system); data/endless-sky-0.9.8/source/DistanceMap.cpp:82:37: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int DistanceMap::Days(const System *system) const data/endless-sky-0.9.8/source/DistanceMap.cpp:84:23: [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. auto it = route.find(system); data/endless-sky-0.9.8/source/DistanceMap.cpp:91:48: [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. const System *DistanceMap::Route(const System *system) const data/endless-sky-0.9.8/source/DistanceMap.cpp:93:23: [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. auto it = route.find(system); data/endless-sky-0.9.8/source/DistanceMap.cpp:110:39: [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. DistanceMap::Edge::Edge(const System *system) data/endless-sky-0.9.8/source/DistanceMap.cpp:111:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. : next(system) data/endless-sky-0.9.8/source/DistanceMap.h:47:30: [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. bool HasRoute(const System *system) const; data/endless-sky-0.9.8/source/DistanceMap.h:49:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int Days(const System *system) const; data/endless-sky-0.9.8/source/DistanceMap.h:51:36: [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. const System *Route(const System *system) const; data/endless-sky-0.9.8/source/Engine.cpp:115:20: [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. for(const System *system : links) data/endless-sky-0.9.8/source/Engine.cpp:856:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system != to && system->Neighbors().count(to) == 0) data/endless-sky-0.9.8/source/Engine.cpp:886:25: [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. fleet.Get()->Place(*system, ships); data/endless-sky-0.9.8/source/Engine.cpp:912:24: [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. raidFleet->Place(*system, ships); data/endless-sky-0.9.8/source/Engine.cpp:1112:20: [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. for(const System *system : links) data/endless-sky-0.9.8/source/EscortDisplay.cpp:80:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!escort.system.empty()) data/endless-sky-0.9.8/source/EscortDisplay.cpp:81:21: [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. font.Draw(escort.system, pos + Point(-10., 10.), elsewhereColor); data/endless-sky-0.9.8/source/EscortDisplay.cpp:178:2: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system((!isHere && ship.GetSystem()) ? ship.GetSystem()->Name() : ""), data/endless-sky-0.9.8/source/EscortDisplay.cpp:197:20: [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. return 30 + 15 * !system.empty(); data/endless-sky-0.9.8/source/EscortDisplay.cpp:209:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.empty() && !other.system.empty()) data/endless-sky-0.9.8/source/EscortDisplay.cpp:209:30: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.empty() && !other.system.empty()) data/endless-sky-0.9.8/source/EscortDisplay.cpp:210:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system = other.system; data/endless-sky-0.9.8/source/EscortDisplay.cpp:263:46: [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. auto mit = merged[it->isHostile].find(it->system); data/endless-sky-0.9.8/source/EscortDisplay.cpp:266:31: [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. merged[it->isHostile][it->system] = &*it; data/endless-sky-0.9.8/source/EscortDisplay.h:62:15: [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. std::string system; data/endless-sky-0.9.8/source/Fleet.cpp:113:33: [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. void Fleet::Enter(const System &system, list<shared_ptr<Ship>> &ships, const Planet *planet) const data/endless-sky-0.9.8/source/Fleet.cpp:125:26: [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. const System *source = &system; data/endless-sky-0.9.8/source/Fleet.cpp:126:26: [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. const System *target = &system; data/endless-sky-0.9.8/source/Fleet.cpp:153:26: [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. bool isWelcomeHere = !system.GetGovernment()->IsEnemy(government); data/endless-sky-0.9.8/source/Fleet.cpp:154:44: [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. for(const System *neighbor : (hasJump ? system.Neighbors() : system.Links())) data/endless-sky-0.9.8/source/Fleet.cpp:154:65: [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. for(const System *neighbor : (hasJump ? system.Neighbors() : system.Links())) data/endless-sky-0.9.8/source/Fleet.cpp:169:38: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/Fleet.cpp:180:38: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/Fleet.cpp:209:37: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/Fleet.cpp:233:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(source == &system) data/endless-sky-0.9.8/source/Fleet.cpp:238:18: [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. angle = Angle(system.Position() - source->Position()); data/endless-sky-0.9.8/source/Fleet.cpp:256:33: [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. void Fleet::Place(const System &system, list<shared_ptr<Ship>> &ships, bool carried) const data/endless-sky-0.9.8/source/Fleet.cpp:267:30: [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. Point center = ChooseCenter(system); data/endless-sky-0.9.8/source/Fleet.cpp:283:20: [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. ship->SetSystem(&system); data/endless-sky-0.9.8/source/Fleet.cpp:298:33: [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. void Fleet::Enter(const System &system, Ship &ship) data/endless-sky-0.9.8/source/Fleet.cpp:300:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.Links().empty()) data/endless-sky-0.9.8/source/Fleet.cpp:302:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. Place(system, ship); data/endless-sky-0.9.8/source/Fleet.cpp:307:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int choice = Random::Int(system.Links().size()); data/endless-sky-0.9.8/source/Fleet.cpp:308:43: [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. set<const System *>::const_iterator it = system.Links().begin(); data/endless-sky-0.9.8/source/Fleet.cpp:317:24: [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. ship.SetTargetSystem(&system); data/endless-sky-0.9.8/source/Fleet.cpp:322:33: [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. void Fleet::Place(const System &system, Ship &ship) data/endless-sky-0.9.8/source/Fleet.cpp:325:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. Point pos = ChooseCenter(system) + Angle::Random().Unit() * Random::Real() * 400.; data/endless-sky-0.9.8/source/Fleet.cpp:329:18: [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. ship.SetSystem(&system); data/endless-sky-0.9.8/source/Fleet.cpp:382:41: [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. Point Fleet::ChooseCenter(const System &system) data/endless-sky-0.9.8/source/Fleet.cpp:385:36: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/Fleet.h:45:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void Enter(const System &system, std::list<std::shared_ptr<Ship>> &ships, const Planet *planet = nullptr) const; data/endless-sky-0.9.8/source/Fleet.h:47:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void Place(const System &system, std::list<std::shared_ptr<Ship>> &ships, bool carried = true) const; data/endless-sky-0.9.8/source/Fleet.h:50:34: [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. static void Enter(const System &system, Ship &ship); data/endless-sky-0.9.8/source/Fleet.h:51:34: [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. static void Place(const System &system, Ship &ship); data/endless-sky-0.9.8/source/Fleet.h:68:42: [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. static Point ChooseCenter(const System &system); data/endless-sky-0.9.8/source/FogShader.cpp:167:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.Name().empty() || !player.HasVisited(&system)) data/endless-sky-0.9.8/source/FogShader.cpp:167:52: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.Name().empty() || !player.HasVisited(&system)) data/endless-sky-0.9.8/source/FogShader.cpp:169:24: [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. Point pos = zoom * (system.Position() + center); data/endless-sky-0.9.8/source/GameData.cpp:370:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system.SetSupply(commodity, child.Value(++index)); data/endless-sky-0.9.8/source/GameData.cpp:421:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system.SetSupply(cit.first, system.Supply(cit.first) - cit.second); data/endless-sky-0.9.8/source/GameData.cpp:421:32: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system.SetSupply(cit.first, system.Supply(cit.first) - cit.second); data/endless-sky-0.9.8/source/GameData.cpp:435:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.Links().size()) data/endless-sky-0.9.8/source/GameData.cpp:438:21: [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. double supply = system.Supply(commodity.name); data/endless-sky-0.9.8/source/GameData.cpp:439:34: [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. for(const System *neighbor : system.Links()) data/endless-sky-0.9.8/source/GameData.cpp:445:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system.SetSupply(commodity.name, supply); data/endless-sky-0.9.8/source/GameData.cpp:452:42: [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. void GameData::AddPurchase(const System &system, const string &commodity, int tons) data/endless-sky-0.9.8/source/GameData.cpp:455:14: [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. purchases[&system][commodity] += tons; data/endless-sky-0.9.8/source/GameData.h:77:40: [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. static void AddPurchase(const System &system, const std::string &commodity, int tons); data/endless-sky-0.9.8/source/GameEvent.cpp:62:21: [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. for(const System *system : systemsToUnvisit) data/endless-sky-0.9.8/source/GameEvent.cpp:63:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system && !system->Name().empty()) data/endless-sky-0.9.8/source/GameEvent.cpp:110:20: [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. for(const System *system : systemsToUnvisit) data/endless-sky-0.9.8/source/GameEvent.cpp:111:18: [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. player.Unvisit(system); data/endless-sky-0.9.8/source/LocationFilter.cpp:49:51: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int Distance(const System *center, const System *system, int maximum) data/endless-sky-0.9.8/source/LocationFilter.cpp:67:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int d = distance.Days(system); data/endless-sky-0.9.8/source/LocationFilter.cpp:162:23: [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. for(const System *system : systems) data/endless-sky-0.9.8/source/LocationFilter.cpp:221:44: [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. bool LocationFilter::Matches(const System *system, const System *origin) const data/endless-sky-0.9.8/source/LocationFilter.cpp:223:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/LocationFilter.cpp:225:40: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!systems.empty() && !systems.count(system)) data/endless-sky-0.9.8/source/LocationFilter.cpp:234:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(Distance(center, system, centerMaxDistance) < centerMinDistance) data/endless-sky-0.9.8/source/LocationFilter.cpp:241:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(Distance(origin, system, originMaxDistance) < originMinDistance) data/endless-sky-0.9.8/source/LocationFilter.h:45:29: [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. bool Matches(const System *system, const System *origin = nullptr) const; data/endless-sky-0.9.8/source/MapDetailPanel.cpp:77:66: [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. MapDetailPanel::MapDetailPanel(PlayerInfo &player, const System *system) data/endless-sky-0.9.8/source/MapDetailPanel.cpp:78:21: [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. : MapPanel(player, system ? MapPanel::SHOW_REPUTATION : player.MapColoring(), system) data/endless-sky-0.9.8/source/MapDetailPanel.cpp:78:80: [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. : MapPanel(player, system ? MapPanel::SHOW_REPUTATION : player.MapColoring(), system) data/endless-sky-0.9.8/source/MapOutfitterPanel.cpp:122:53: [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. double MapOutfitterPanel::SystemValue(const System *system) const data/endless-sky-0.9.8/source/MapOutfitterPanel.cpp:124:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/MapOutfitterPanel.cpp:127:80: [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. auto it = player.Harvested().lower_bound(pair<const System *, const Outfit *>(system, nullptr)); data/endless-sky-0.9.8/source/MapOutfitterPanel.cpp:128:56: [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. for( ; it != player.Harvested().end() && it->first == system; ++it) data/endless-sky-0.9.8/source/MapOutfitterPanel.h:46:43: [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. virtual double SystemValue(const System *system) const override; data/endless-sky-0.9.8/source/MapPanel.cpp:154:35: [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. bool isKnown = player.KnowsName(system); data/endless-sky-0.9.8/source/MapPanel.cpp:160:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(player.HasVisited(system) && system->IsInhabited(player.Flagship()) && gov) data/endless-sky-0.9.8/source/MapPanel.cpp:169:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasVisited(system) && !player.HasVisited(link)) data/endless-sky-0.9.8/source/MapPanel.cpp:197:41: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MapPanel.cpp:214:20: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(waypoint == system) data/endless-sky-0.9.8/source/MapPanel.cpp:217:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(stopover->IsInSystem(system)) data/endless-sky-0.9.8/source/MapPanel.cpp:405:44: [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. double MapPanel::SystemValue(const System *system) const data/endless-sky-0.9.8/source/MapPanel.cpp:412:37: [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. void MapPanel::Select(const System *system) data/endless-sky-0.9.8/source/MapPanel.cpp:414:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/MapPanel.cpp:416:19: [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. selectedSystem = system; data/endless-sky-0.9.8/source/MapPanel.cpp:436:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(localDistance.Days(system) <= 0) data/endless-sky-0.9.8/source/MapPanel.cpp:440:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. while(system != *it) data/endless-sky-0.9.8/source/MapPanel.cpp:442:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. it = ++plan.insert(it, system); data/endless-sky-0.9.8/source/MapPanel.cpp:443:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system = localDistance.Route(system); data/endless-sky-0.9.8/source/MapPanel.cpp:446:24: [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. else if(distance.Days(system) > 0) data/endless-sky-0.9.8/source/MapPanel.cpp:452:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. while(system != source) data/endless-sky-0.9.8/source/MapPanel.cpp:454:19: [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. plan.push_back(system); data/endless-sky-0.9.8/source/MapPanel.cpp:455:28: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system = distance.Route(system); data/endless-sky-0.9.8/source/MapPanel.cpp:677:22: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasSeen(system)) data/endless-sky-0.9.8/source/MapPanel.cpp:681:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(link < system || !player.HasSeen(link)) data/endless-sky-0.9.8/source/MapPanel.cpp:686:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasVisited(system) && !player.HasVisited(link)) data/endless-sky-0.9.8/source/MapPanel.cpp:715:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.Name().empty()) data/endless-sky-0.9.8/source/MapPanel.cpp:717:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasSeen(&system) && &system != specialSystem) data/endless-sky-0.9.8/source/MapPanel.cpp:717:35: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasSeen(&system) && &system != specialSystem) data/endless-sky-0.9.8/source/MapPanel.cpp:720:25: [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. Point pos = Zoom() * (system.Position() + center); data/endless-sky-0.9.8/source/MapPanel.cpp:723:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasVisited(&system)) data/endless-sky-0.9.8/source/MapPanel.cpp:725:11: [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. else if(system.IsInhabited(player.Flagship()) || commodity == SHOW_SPECIAL) data/endless-sky-0.9.8/source/MapPanel.cpp:733:21: [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. double price = system.Trade(com.name); data/endless-sky-0.9.8/source/MapPanel.cpp:742:40: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/MapPanel.cpp:750:40: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/MapPanel.cpp:759:40: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/MapPanel.cpp:769:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. value = SystemValue(&system); data/endless-sky-0.9.8/source/MapPanel.cpp:775:29: [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. const Government *gov = system.GetGovernment(); data/endless-sky-0.9.8/source/MapPanel.cpp:790:25: [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. double reputation = system.GetGovernment()->Reputation(); data/endless-sky-0.9.8/source/MapPanel.cpp:800:39: [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. for(const StellarObject &object : system.Objects()) data/endless-sky-0.9.8/source/MapPanel.cpp:841:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.KnowsName(&system) || system.Name().empty()) data/endless-sky-0.9.8/source/MapPanel.cpp:841:36: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.KnowsName(&system) || system.Name().empty()) data/endless-sky-0.9.8/source/MapPanel.cpp:844:13: [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. font.Draw(system.Name(), Zoom() * (system.Position() + center) + offset, data/endless-sky-0.9.8/source/MapPanel.cpp:844:38: [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. font.Draw(system.Name(), Zoom() * (system.Position() + center) + offset, data/endless-sky-0.9.8/source/MapPanel.cpp:867:15: [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. DrawPointer(system, angle[system], mission.HasSpace(player) ? availableColor : unavailableColor); data/endless-sky-0.9.8/source/MapPanel.cpp:867:29: [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. DrawPointer(system, angle[system], mission.HasSpace(player) ? availableColor : unavailableColor); data/endless-sky-0.9.8/source/MapPanel.cpp:884:15: [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. DrawPointer(system, angle[system], blink ? black : isSatisfied ? currentColor : blockedColor, isSatisfied); data/endless-sky-0.9.8/source/MapPanel.cpp:884:29: [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. DrawPointer(system, angle[system], blink ? black : isSatisfied ? currentColor : blockedColor, isSatisfied); data/endless-sky-0.9.8/source/MapPanel.cpp:903:42: [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. void MapPanel::DrawPointer(const System *system, Angle &angle, const Color &color, bool bigger) data/endless-sky-0.9.8/source/MapPanel.h:75:43: [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. virtual double SystemValue(const System *system) const; data/endless-sky-0.9.8/source/MapPanel.h:77:28: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void Select(const System *system); data/endless-sky-0.9.8/source/MapPanel.h:116:33: [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. void DrawPointer(const System *system, Angle &angle, const Color &color, bool bigger = false); data/endless-sky-0.9.8/source/MapSalesPanel.h:55:43: [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. virtual double SystemValue(const System *system) const = 0; data/endless-sky-0.9.8/source/MapShipyardPanel.cpp:117:52: [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. double MapShipyardPanel::SystemValue(const System *system) const data/endless-sky-0.9.8/source/MapShipyardPanel.cpp:119:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system || !system->IsInhabited(player.Flagship())) data/endless-sky-0.9.8/source/MapShipyardPanel.h:46:43: [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. virtual double SystemValue(const System *system) const override; data/endless-sky-0.9.8/source/Mission.cpp:197:36: [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. MissionAction &action = onEnter[system]; data/endless-sky-0.9.8/source/Mission.cpp:321:21: [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. for(const System *system : waypoints) data/endless-sky-0.9.8/source/Mission.cpp:776:19: [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. waypoints.erase(system); data/endless-sky-0.9.8/source/Mission.cpp:778:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. Enter(system, player, ui); data/endless-sky-0.9.8/source/Mission.cpp:820:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/Mission.cpp:822:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. result.waypoints.insert(system); data/endless-sky-0.9.8/source/Mission.cpp:921:20: [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. for(const System *system : result.waypoints) data/endless-sky-0.9.8/source/Mission.cpp:922:26: [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. destinations.push_back(system); data/endless-sky-0.9.8/source/Mission.cpp:1013:35: [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. void Mission::Enter(const System *system, PlayerInfo &player, UI *ui) data/endless-sky-0.9.8/source/Mission.cpp:1015:26: [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. auto eit = onEnter.find(system); data/endless-sky-0.9.8/source/Mission.h:140:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void Enter(const System *system, PlayerInfo &player, UI *u); data/endless-sky-0.9.8/source/MissionAction.cpp:181:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system.empty()) data/endless-sky-0.9.8/source/MissionAction.cpp:184:28: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. out.Write("on", trigger, system); data/endless-sky-0.9.8/source/MissionAction.cpp:352:18: [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. result.system = system; data/endless-sky-0.9.8/source/MissionAction.h:64:14: [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. std::string system; data/endless-sky-0.9.8/source/MissionPanel.cpp:133:22: [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. while(distance.Days(system) > 0) data/endless-sky-0.9.8/source/MissionPanel.cpp:135:39: [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. const System *next = distance.Route(system); data/endless-sky-0.9.8/source/MissionPanel.cpp:307:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system) data/endless-sky-0.9.8/source/MissionPanel.cpp:309:10: [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. Select(system); data/endless-sky-0.9.8/source/MissionPanel.cpp:347:80: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(availableIt != available.end() && availableIt->Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MissionPanel.cpp:349:77: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(acceptedIt != accepted.end() && acceptedIt->Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MissionPanel.cpp:498:20: [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. for(const System *system : mission.Waypoints()) data/endless-sky-0.9.8/source/MissionPanel.cpp:659:58: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(it->Destination() && it->Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MissionPanel.cpp:725: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. bool MissionPanel::FindMissionForSystem(const System *system) data/endless-sky-0.9.8/source/MissionPanel.cpp:727:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/MissionPanel.cpp:733:45: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(availableIt->Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MissionPanel.cpp:736:71: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(acceptedIt->IsVisible() && acceptedIt->Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/MissionPanel.h:66:42: [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. bool FindMissionForSystem(const System *system); data/endless-sky-0.9.8/source/NPC.cpp:356:18: [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. result.system = system; data/endless-sky-0.9.8/source/NPC.cpp:357:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!result.system && !location.IsEmpty()) data/endless-sky-0.9.8/source/NPC.cpp:372:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!result.system) data/endless-sky-0.9.8/source/NPC.cpp:386:23: [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. fleet.Place(*result.system, result.ships, false); data/endless-sky-0.9.8/source/NPC.cpp:388:24: [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. fleet->Place(*result.system, result.ships, false); data/endless-sky-0.9.8/source/NPC.cpp:398:25: [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. Fleet::Enter(*result.system, *ship); data/endless-sky-0.9.8/source/NPC.cpp:400:25: [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. Fleet::Place(*result.system, *ship); data/endless-sky-0.9.8/source/OutfitterPanel.cpp:272:23: [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. for(const System *system : distance.Systems()) data/endless-sky-0.9.8/source/OutfitterPanel.cpp:273:28: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasVisited(system)) data/endless-sky-0.9.8/source/OutfitterPanel.cpp:274:20: [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. player.Visit(system); data/endless-sky-0.9.8/source/OutfitterPanel.cpp:765:20: [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. for(const System *system : distance.Systems()) data/endless-sky-0.9.8/source/OutfitterPanel.cpp:766:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!player.HasVisited(system)) data/endless-sky-0.9.8/source/Person.cpp:54:37: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int Person::Frequency(const System *system) const data/endless-sky-0.9.8/source/Person.cpp:56:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system || !ship || IsDestroyed() || ship->GetSystem()) data/endless-sky-0.9.8/source/Person.cpp:59:49: [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. return (location.IsEmpty() || location.Matches(system)) ? frequency : 0; data/endless-sky-0.9.8/source/Person.h:35:30: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int Frequency(const System *system) const; data/endless-sky-0.9.8/source/Planet.cpp:360:39: [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. bool Planet::IsInSystem(const System *system) const data/endless-sky-0.9.8/source/Planet.cpp:362:47: [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. return (find(systems.begin(), systems.end(), system) != systems.end()); data/endless-sky-0.9.8/source/Planet.cpp:367:38: [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. void Planet::SetSystem(const System *system) data/endless-sky-0.9.8/source/Planet.cpp:369:42: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(find(systems.begin(), systems.end(), system) == systems.end()) data/endless-sky-0.9.8/source/Planet.cpp:370:21: [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. systems.push_back(system); data/endless-sky-0.9.8/source/Planet.cpp:377:41: [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. void Planet::RemoveSystem(const System *system) data/endless-sky-0.9.8/source/Planet.cpp:379:49: [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. auto it = find(systems.begin(), systems.end(), system); data/endless-sky-0.9.8/source/Planet.h:96:32: [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. bool IsInSystem(const System *system) const; data/endless-sky-0.9.8/source/Planet.h:97:31: [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. void SetSystem(const System *system); data/endless-sky-0.9.8/source/Planet.h:100:34: [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. void RemoveSystem(const System *system); data/endless-sky-0.9.8/source/PlanetLabel.cpp:43:92: [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. PlanetLabel::PlanetLabel(const Point &position, const StellarObject &object, const System *system, double zoom) data/endless-sky-0.9.8/source/PlanetLabel.cpp:66:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/PlanetLabel.h:28:80: [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. PlanetLabel(const Point &position, const StellarObject &object, const System *system, double zoom); data/endless-sky-0.9.8/source/PlanetPanel.cpp:45:31: [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. planet(*player.GetPlanet()), system(*player.GetSystem()), data/endless-sky-0.9.8/source/PlanetPanel.h:57:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. const System &system; data/endless-sky-0.9.8/source/PlayerInfo.cpp:382:21: [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. for(const System *system : visitedSystems) data/endless-sky-0.9.8/source/PlayerInfo.cpp:384:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. seen.insert(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:530:33: [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. assets += ship->Cargo().Value(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:546:42: [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. void PlayerInfo::SetSystem(const System *system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:548:17: [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. this->system = system; data/endless-sky-0.9.8/source/PlayerInfo.cpp:549:8: [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. Visit(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:557:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return system; data/endless-sky-0.9.8/source/PlayerInfo.cpp:581:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system || !planet) data/endless-sky-0.9.8/source/PlayerInfo.cpp:673:45: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!it->IsParked() && it->GetSystem() == system && it->CanBeFlagship()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:713:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ships.back()->SetSystem(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:893:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system || !planet) data/endless-sky-0.9.8/source/PlayerInfo.cpp:941:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(ship->GetSystem() == system && !ship->IsDisabled()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1046:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system || !planet) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1100:48: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!ship->IsParked() && ship->GetSystem() == system && !ship->IsDisabled()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1148:69: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(ship->IsParked() || ship->IsDisabled() || ship->GetSystem() != system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1328:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(ship->GetSystem() == system && !ship->IsParked() && !ship->IsDisabled()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1609:40: [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. bool PlayerInfo::HasSeen(const System *system) const data/endless-sky-0.9.8/source/PlayerInfo.cpp:1613:32: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.Waypoints().count(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1616:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(planet->IsInSystem(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1624:32: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.Waypoints().count(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1627:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(planet->IsInSystem(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1631:21: [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. return (seen.count(system) || KnowsName(system)); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1631:42: [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. return (seen.count(system) || KnowsName(system)); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1637:43: [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. bool PlayerInfo::HasVisited(const System *system) const data/endless-sky-0.9.8/source/PlayerInfo.cpp:1639:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1641:30: [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. return visitedSystems.count(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1658:42: [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. bool PlayerInfo::KnowsName(const System *system) const data/endless-sky-0.9.8/source/PlayerInfo.cpp:1660:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(HasVisited(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1664:40: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1668:63: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(mission.IsVisible() && mission.Destination()->IsInSystem(system)) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1677:38: [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. void PlayerInfo::Visit(const System *system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1679:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1682:24: [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. visitedSystems.insert(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1683:14: [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. seen.insert(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1700:40: [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. void PlayerInfo::Unvisit(const System *system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1702:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1705:23: [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. visitedSystems.erase(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:1771:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(planet->IsInSystem(system) && Flagship()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:1831:48: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!ship->IsParked() && ship->GetSystem() == system && ship.get() != Flagship() data/endless-sky-0.9.8/source/PlayerInfo.cpp:2027:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(type && system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2028:30: [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. harvested.insert(make_pair(system, type)); data/endless-sky-0.9.8/source/PlayerInfo.cpp:2093:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(planet && !system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2095:43: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!planet || planet->Name().empty() || !system || system->Name().empty()) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2107:20: [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. ship->SetSystem(system); data/endless-sky-0.9.8/source/PlayerInfo.cpp:2108:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(ship->GetSystem() == system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2127:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2179:71: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!ship->IsParked() && !ship->IsDisabled() && ship->GetSystem() == system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2266:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(!planet || !system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2277:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if(system) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2287:20: [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. for(const System *system : travelPlan) data/endless-sky-0.9.8/source/PlayerInfo.cpp:2420:20: [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. for(const System *system : visitedSystems) data/endless-sky-0.9.8/source/PlayerInfo.h:95:31: [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. void SetSystem(const System *system); data/endless-sky-0.9.8/source/PlayerInfo.h:182:29: [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. bool HasSeen(const System *system) const; data/endless-sky-0.9.8/source/PlayerInfo.h:183:32: [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. bool HasVisited(const System *system) const; data/endless-sky-0.9.8/source/PlayerInfo.h:185:31: [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. bool KnowsName(const System *system) const; data/endless-sky-0.9.8/source/PlayerInfo.h:186:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void Visit(const System *system); data/endless-sky-0.9.8/source/PlayerInfo.h:189:29: [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. void Unvisit(const System *system); data/endless-sky-0.9.8/source/PlayerInfoPanel.cpp:534:14: [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. table.Draw(system ? system->Name() : ""); data/endless-sky-0.9.8/source/SavedGame.cpp:95:2: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system.clear(); data/endless-sky-0.9.8/source/SavedGame.cpp:127:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return system; data/endless-sky-0.9.8/source/SavedGame.h:55:14: [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. std::string system; data/endless-sky-0.9.8/source/Ship.cpp:578:36: [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. void Ship::SetSystem(const System *system) data/endless-sky-0.9.8/source/Ship.cpp:580:18: [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. currentSystem = system; data/endless-sky-0.9.8/source/Ship.cpp:2508:42: [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. void Ship::SetTargetSystem(const System *system) data/endless-sky-0.9.8/source/Ship.cpp:2510:17: [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. targetSystem = system; data/endless-sky-0.9.8/source/Ship.h:127:31: [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. void SetSystem(const System *system); data/endless-sky-0.9.8/source/Ship.h:334:37: [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. void SetTargetSystem(const System *system); data/endless-sky-0.9.8/source/StartConditions.cpp:59:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return system ? system : GetPlanet() ? GetPlanet()->GetSystem() : GameData::Systems().Get("Rutilicus"); data/endless-sky-0.9.8/source/StartConditions.cpp:59:18: [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. return system ? system : GetPlanet() ? GetPlanet()->GetSystem() : GameData::Systems().Get("Rutilicus"); data/endless-sky-0.9.8/source/System.cpp:318:20: [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. for(const System *system : links) data/endless-sky-0.9.8/source/System.cpp:320:21: [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. neighbors.insert(system); data/endless-sky-0.9.8/source/TradingPanel.cpp:61:20: [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. : player(player), system(*player.GetSystem()), COMMODITY_COUNT(GameData::Commodities().size()) data/endless-sky-0.9.8/source/TradingPanel.cpp:159:15: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int price = system.Trade(commodity.name); data/endless-sky-0.9.8/source/TradingPanel.cpp:237:20: [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. int64_t price = system.Trade(it.name); data/endless-sky-0.9.8/source/TradingPanel.cpp:248:26: [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. GameData::AddPurchase(system, it.name, -amount); data/endless-sky-0.9.8/source/TradingPanel.cpp:302:18: [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. int64_t price = system.Trade(type); data/endless-sky-0.9.8/source/TradingPanel.cpp:323:24: [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. GameData::AddPurchase(system, type, -amount); data/endless-sky-0.9.8/source/TradingPanel.h:48:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. const System &system; data/endless-sky-0.9.8/source/StarField.cpp:296:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. float fx = (x & (TILE_SIZE - 1)) + (random & 15) * 0.0625f; data/endless-sky-0.9.8/source/StarField.cpp:297:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. float fy = (y & (TILE_SIZE - 1)) + (random >> 8) * 0.0625f; data/endless-sky-0.9.8/source/StarField.cpp:298:19: [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. float size = (((random >> 4) & 15) + 20) * 0.0625f; data/endless-sky-0.9.8/source/Command.h:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char aim[32] = {}; data/endless-sky-0.9.8/source/Files.cpp:62:14: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int size = MultiByteToWideChar(CP_UTF8, 0, &path[0], path.length() - endsInSlash, nullptr, 0); data/endless-sky-0.9.8/source/Files.cpp:64:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, &path[0], path.length() - endsInSlash, &result[0], size); data/endless-sky-0.9.8/source/Files.cpp:484:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(path.c_str(), write ? "wb" : "rb"); data/endless-sky-0.9.8/source/Format.cpp:52:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char suffix[3] = {'M', 'B', 'T'}; data/endless-sky-0.9.8/source/LoadPanel.cpp:46: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[BUF_SIZE]; data/endless-sky-0.9.8/source/Music.cpp:206:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&input.front(), stream.next_frame, remainder); data/endless-sky-0.9.8/source/Shader.cpp:102:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&text.front(), version.data(), version.length()); data/endless-sky-0.9.8/source/Shader.cpp:103:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&text.front() + version.length(), str, length); data/endless-sky-0.9.8/source/Sound.cpp:147: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 data[4]; data/endless-sky-0.9.8/source/Sound.cpp:160: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 data[2]; data/endless-sky-0.9.8/source/shift.h:19:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char SHIFT[128] = { data/endless-sky-0.9.8/source/DataFile.cpp:67:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(&*data.begin() + currentSize, BLOCK); data/endless-sky-0.9.8/source/Fleet.cpp:87:6: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. is_permutation(it->ships.begin(), it->ships.end(), toRemove.ships.begin())) data/endless-sky-0.9.8/source/Music.cpp:211:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!read || feof(file)) data/endless-sky-0.9.8/source/Shader.cpp:100:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(str); data/endless-sky-0.9.8/source/WrappedText.cpp:143:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). SetText(str, strlen(str)); ANALYSIS SUMMARY: Hits = 318 Lines analyzed = 56613 in approximately 1.55 seconds (36510 lines/second) Physical Source Lines of Code (SLOC) = 36845 Hits@level = [0] 5 [1] 5 [2] 12 [3] 3 [4] 298 [5] 0 Hits@level+ = [0+] 323 [1+] 318 [2+] 313 [3+] 301 [4+] 298 [5+] 0 Hits/KSLOC@level+ = [0+] 8.76645 [1+] 8.63075 [2+] 8.49505 [3+] 8.16936 [4+] 8.08794 [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.