Flawfinder version 1.27, (C) 2001-2004 David A. Wheeler. Number of dangerous functions in C/C++ ruleset: 160 Examining src/scoped_timer.cc Examining src/text_layout.cc Examining src/wui/interactive_base.h Examining src/wui/militarysitewindow.cc Examining src/wui/building_statistics_menu.cc Examining src/wui/chatoverlay.h Examining src/wui/game_summary.h Examining src/wui/game_message_menu.h Examining src/wui/game_objectives_menu.h Examining src/wui/game_main_menu.h Examining src/wui/watchwindow.cc Examining src/wui/ware_statistics_menu.h Examining src/wui/buildingwindow.cc Examining src/wui/fieldaction.cc Examining src/wui/multiplayersetupgroup.h Examining src/wui/game_message_menu.cc Examining src/wui/game_options_menu.cc Examining src/wui/watchwindow.h Examining src/wui/actionconfirm.cc Examining src/wui/waresqueuedisplay.cc Examining src/wui/encyclopedia_window.cc Examining src/wui/playerdescrgroup.cc Examining src/wui/game_main_menu_save_game.cc Examining src/wui/general_statistics_menu.cc Examining src/wui/soldiercapacitycontrol.h Examining src/wui/itemwaresdisplay.h Examining src/wui/portdockwaresdisplay.h Examining src/wui/story_message_box.h Examining src/wui/trainingsitewindow.cc Examining src/wui/waresdisplay.cc Examining src/wui/game_options_menu.h Examining src/wui/game_objectives_menu.cc Examining src/wui/attack_box.cc Examining src/wui/interactive_spectator.h Examining src/wui/quicknavigation.h Examining src/wui/transport_draw.cc Examining src/wui/dismantlesitewindow.cc Examining src/wui/transport_ui.cc Examining src/wui/interactive_player.h Examining src/wui/plot_area.cc Examining src/wui/game_options_sound_menu.cc Examining src/wui/mapview.h Examining src/wui/game_tips.cc Examining src/wui/soldierlist.cc Examining src/wui/game_tips.h Examining src/wui/productionsitewindow.cc Examining src/wui/gamechatpanel.h Examining src/wui/playerdescrgroup.h Examining src/wui/military_box.cc Examining src/wui/building_statistics_menu.h Examining src/wui/itemwaresdisplay.cc Examining src/wui/stock_menu.cc Examining src/wui/buildingwindow.h Examining src/wui/constructionsitewindow.cc Examining src/wui/fieldaction.h Examining src/wui/stock_menu.h Examining src/wui/plot_area.h Examining src/wui/game_chat_menu.cc Examining src/wui/waresqueuedisplay.h Examining src/wui/login_box.h Examining src/wui/ware_statistics_menu.cc Examining src/wui/multiplayersetupgroup.cc Examining src/wui/encyclopedia_window.h Examining src/wui/actionconfirm.h Examining src/wui/mapviewpixelconstants.h Examining src/wui/game_debug_ui.cc Examining src/wui/soldierlist.h Examining src/wui/interactive_spectator.cc Examining src/wui/building_ui.cc Examining src/wui/interactive_gamebase.h Examining src/wui/waresdisplay.h Examining src/wui/portdockwaresdisplay.cc Examining src/wui/game_options_sound_menu.h Examining src/wui/attack_box.h Examining src/wui/mapviewpixelfunctions.cc Examining src/wui/interactive_base.cc Examining src/wui/mapviewpixelfunctions.h Examining src/wui/interactive_gamebase.cc Examining src/wui/game_main_menu_save_game.h Examining src/wui/story_message_box.cc Examining src/wui/game_main_menu.cc Examining src/wui/minimap.h Examining src/wui/chatoverlay.cc Examining src/wui/interactive_player.cc Examining src/wui/quicknavigation.cc Examining src/wui/game_summary.cc Examining src/wui/general_statistics_menu.h Examining src/wui/overlay_manager.cc Examining src/wui/login_box.cc Examining src/wui/soldiercapacitycontrol.cc Examining src/wui/military_box.h Examining src/wui/minimap.cc Examining src/wui/mapview.cc Examining src/wui/shipwindow.cc Examining src/wui/gamechatpanel.cc Examining src/wui/warehousewindow.cc Examining src/wui/overlay_manager.h Examining src/wui/game_chat_menu.h Examining src/wui/game_debug_ui.h Examining src/wui/productionsitewindow.h Examining src/campvis.h Examining src/interval.h Examining src/align.cc Examining src/s2map.cc Examining src/container_iterate.h Examining src/economy/supply_list.cc Examining src/economy/shippingitem.h Examining src/economy/flag.cc Examining src/economy/router.cc Examining src/economy/request.cc Examining src/economy/supply.h Examining src/economy/ware_instance.cc Examining src/economy/iroute.h Examining src/economy/shippingitem.cc Examining src/economy/fleet.cc Examining src/economy/road.h Examining src/economy/economy.cc Examining src/economy/portdock.h Examining src/economy/transfer.cc Examining src/economy/ware_instance.h Examining src/economy/flag.h Examining src/economy/economy_data_packet.h Examining src/economy/portdock.cc Examining src/economy/cmd_call_economy_balance.h Examining src/economy/fleet.h Examining src/economy/itransport_cost_calculator.h Examining src/economy/economy_data_packet.cc Examining src/economy/test/economy_test_main.cc Examining src/economy/test/test_routing.cc Examining src/economy/test/test_economy.cc Examining src/economy/test/test_road.cc Examining src/economy/routeastar.cc Examining src/economy/economy.h Examining src/economy/route.cc Examining src/economy/wares_queue.h Examining src/economy/route.h Examining src/economy/request.h Examining src/economy/transfer.h Examining src/economy/router.h Examining src/economy/warehousesupply.h Examining src/economy/road.cc Examining src/economy/routing_node.h Examining src/economy/supply_list.h Examining src/economy/cmd_call_economy_balance.cc Examining src/economy/routeastar.h Examining src/economy/wares_queue.cc Examining src/economy/idleworkersupply.h Examining src/economy/idleworkersupply.cc Examining src/game_io/game_player_info_data_packet.h Examining src/game_io/game_map_data_packet.cc Examining src/game_io/game_data_packet.h Examining src/game_io/game_saver.h Examining src/game_io/game_game_class_data_packet.cc Examining src/game_io/game_game_class_data_packet.h Examining src/game_io/game_interactive_player_data_packet.cc Examining src/game_io/game_interactive_player_data_packet.h Examining src/game_io/game_preload_data_packet.cc Examining src/game_io/game_loader.h Examining src/game_io/game_preload_data_packet.h Examining src/game_io/game_loader.cc Examining src/game_io/game_cmd_queue_data_packet.cc Examining src/game_io/game_map_data_packet.h Examining src/game_io/game_saver.cc Examining src/game_io/game_player_economies_data_packet.h Examining src/game_io/game_cmd_queue_data_packet.h Examining src/game_io/game_player_info_data_packet.cc Examining src/game_io/game_player_economies_data_packet.cc Examining src/parse_map_object_types.h Examining src/TribeBasicInfo.h Examining src/map_generator.h Examining src/port.h Examining src/journal_exceptions.cc Examining src/debugconsole.h Examining src/map_io/widelands_map_terrain_data_packet.cc Examining src/map_io/widelands_map_road_data_packet.cc Examining src/map_io/widelands_map_waredata_data_packet.cc Examining src/map_io/widelands_map_heights_data_packet.h Examining src/map_io/map_loader.h Examining src/map_io/widelands_map_resources_data_packet.cc Examining src/map_io/widelands_map_objective_data_packet.cc Examining src/map_io/widelands_map_ware_data_packet.cc Examining src/map_io/widelands_map_player_names_and_tribes_data_packet.h Examining src/map_io/widelands_map_port_spaces_data_packet.h Examining src/map_io/widelands_map_saver.cc Examining src/map_io/widelands_map_flagdata_data_packet.cc Examining src/map_io/widelands_map_player_position_data_packet.h Examining src/map_io/widelands_map_players_view_data_packet.h Examining src/map_io/widelands_map_map_object_saver.h Examining src/map_io/widelands_map_building_data_packet.h Examining src/map_io/widelands_map_allowed_worker_types_data_packet.h Examining src/map_io/widelands_map_allowed_building_types_data_packet.h Examining src/map_io/widelands_map_roaddata_data_packet.h Examining src/map_io/widelands_map_waredata_data_packet.h Examining src/map_io/widelands_map_version_data_packet.h Examining src/map_io/widelands_map_extradata_data_packet.cc Examining src/map_io/widelands_map_road_data_packet.h Examining src/map_io/widelands_map_player_position_data_packet.cc Examining src/map_io/widelands_map_heights_data_packet.cc Examining src/map_io/widelands_map_map_object_saver.cc Examining src/map_io/widelands_map_object_packet.h Examining src/map_io/widelands_map_ware_data_packet.h Examining src/map_io/widelands_map_scripting_data_packet.h Examining src/map_io/widelands_map_flag_data_packet.h Examining src/map_io/widelands_map_roaddata_data_packet.cc Examining src/map_io/widelands_map_elemental_data_packet.cc Examining src/map_io/widelands_map_buildingdata_data_packet.cc Examining src/map_io/widelands_map_objective_data_packet.h Examining src/map_io/widelands_map_node_ownership_data_packet.cc Examining src/map_io/widelands_map_message_saver.h Examining src/map_io/widelands_map_flag_data_packet.cc Examining src/map_io/widelands_map_bob_data_packet.cc Examining src/map_io/widelands_map_elemental_data_packet.h Examining src/map_io/widelands_map_allowed_worker_types_data_packet.cc Examining src/map_io/widelands_map_bobdata_data_packet.cc Examining src/map_io/widelands_map_terrain_data_packet.h Examining src/map_io/widelands_map_flagdata_data_packet.h Examining src/map_io/widelands_map_map_object_loader.h Examining src/map_io/widelands_map_players_view_data_packet.cc Examining src/map_io/widelands_map_map_object_loader.cc Examining src/map_io/widelands_map_players_messages_data_packet.cc Examining src/map_io/widelands_map_scripting_data_packet.cc Examining src/map_io/widelands_map_exploration_data_packet.cc Examining src/map_io/widelands_map_allowed_building_types_data_packet.cc Examining src/map_io/widelands_map_extradata_data_packet.h Examining src/map_io/widelands_map_port_spaces_data_packet.cc Examining src/map_io/widelands_map_saver.h Examining src/map_io/widelands_map_node_ownership_data_packet.h Examining src/map_io/widelands_map_players_areawatchers_data_packet.cc Examining src/map_io/widelands_map_loader.cc Examining src/map_io/widelands_map_data_packet.h Examining src/map_io/widelands_map_players_areawatchers_data_packet.h Examining src/map_io/widelands_map_buildingdata_data_packet.h Examining src/map_io/widelands_map_bob_data_packet.h Examining src/map_io/widelands_map_loader.h Examining src/map_io/widelands_map_version_data_packet.cc Examining src/map_io/widelands_map_building_data_packet.cc Examining src/map_io/widelands_map_player_names_and_tribes_data_packet.cc Examining src/map_io/widelands_map_players_messages_data_packet.h Examining src/map_io/widelands_map_exploration_data_packet.h Examining src/map_io/widelands_map_object_packet.cc Examining src/map_io/widelands_map_resources_data_packet.h Examining src/map_io/widelands_map_bobdata_data_packet.h Examining src/exceptions.cc Examining src/md5.h Examining src/warning.h Examining src/logmessage.h Examining src/text_layout.h Examining src/backtrace.h Examining src/trackptr.h Examining src/main.cc Examining src/random.h Examining src/rect.h Examining src/editor/tools/editor_set_resources_tool.cc Examining src/editor/tools/editor_increase_height_tool.h Examining src/editor/tools/editor_set_terrain_tool.h Examining src/editor/tools/editor_increase_resources_tool.cc Examining src/editor/tools/editor_delete_bob_tool.cc Examining src/editor/tools/editor_set_height_tool.cc Examining src/editor/tools/editor_place_bob_tool.h Examining src/editor/tools/editor_action_args.h Examining src/editor/tools/editor_place_bob_tool.cc Examining src/editor/tools/editor_info_tool.h Examining src/editor/tools/editor_place_immovable_tool.h Examining src/editor/tools/editor_history.h Examining src/editor/tools/editor_history.cc Examining src/editor/tools/editor_set_port_space_tool.cc Examining src/editor/tools/editor_make_infrastructure_tool.h Examining src/editor/tools/editor_noise_height_tool.cc Examining src/editor/tools/editor_decrease_resources_tool.cc Examining src/editor/tools/editor_noise_height_tool.h Examining src/editor/tools/editor_delete_immovable_tool.h Examining src/editor/tools/editor_delete_immovable_tool.cc Examining src/editor/tools/editor_set_resources_tool.h Examining src/editor/tools/editor_draw_tool.h Examining src/editor/tools/editor_delete_bob_tool.h Examining src/editor/tools/editor_set_terrain_tool.cc Examining src/editor/tools/editor_set_port_space_tool.h Examining src/editor/tools/editor_set_height_tool.h Examining src/editor/tools/editor_decrease_height_tool.h Examining src/editor/tools/editor_decrease_height_tool.cc Examining src/editor/tools/editor_set_origin_tool.cc Examining src/editor/tools/editor_tool_action.h Examining src/editor/tools/editor_set_origin_tool.h Examining src/editor/tools/editor_place_immovable_tool.cc Examining src/editor/tools/editor_decrease_resources_tool.h Examining src/editor/tools/multi_select.h Examining src/editor/tools/editor_draw_tool.cc Examining src/editor/tools/editor_make_infrastructure_tool.cc Examining src/editor/tools/editor_set_starting_pos_tool.h Examining src/editor/tools/editor_increase_height_tool.cc Examining src/editor/tools/editor_tool.h Examining src/editor/tools/editor_set_starting_pos_tool.cc Examining src/editor/tools/editor_increase_resources_tool.h Examining src/editor/tools/editor_info_tool.cc Examining src/editor/ui_menus/editor_main_menu_random_map.cc Examining src/editor/ui_menus/editor_player_menu_allowed_buildings_menu.cc Examining src/editor/ui_menus/editor_player_menu.cc Examining src/editor/ui_menus/editor_tool_place_immovable_options_menu.h Examining src/editor/ui_menus/editor_main_menu_random_map.h Examining src/editor/ui_menus/editor_tool_noise_height_options_menu.h Examining src/editor/ui_menus/editor_main_menu.h Examining src/editor/ui_menus/editor_tool_set_terrain_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_load_map.cc Examining src/editor/ui_menus/editor_toolsize_menu.h Examining src/editor/ui_menus/editor_tool_change_height_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_save_map_make_directory.h Examining src/editor/ui_menus/editor_main_menu_map_options.h Examining src/editor/ui_menus/editor_tool_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_load_map.h Examining src/editor/ui_menus/editor_tool_place_immovable_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_new_map.cc Examining src/editor/ui_menus/editor_tool_change_height_options_menu.h Examining src/editor/ui_menus/editor_main_menu_save_map.cc Examining src/editor/ui_menus/editor_tool_place_bob_options_menu.h Examining src/editor/ui_menus/editor_toolsize_menu.cc Examining src/editor/ui_menus/editor_player_menu_allowed_buildings_menu.h Examining src/editor/ui_menus/editor_tool_place_bob_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_map_options.cc Examining src/editor/ui_menus/editor_player_menu.h Examining src/editor/ui_menus/editor_main_menu_save_map.h Examining src/editor/ui_menus/editor_tool_menu.cc Examining src/editor/ui_menus/editor_main_menu.cc Examining src/editor/ui_menus/editor_tool_menu.h Examining src/editor/ui_menus/editor_tool_options_menu.h Examining src/editor/ui_menus/editor_main_menu_save_map_make_directory.cc Examining src/editor/ui_menus/editor_tool_noise_height_options_menu.cc Examining src/editor/ui_menus/editor_main_menu_new_map.h Examining src/editor/ui_menus/editor_tool_change_resources_options_menu.cc Examining src/editor/ui_menus/editor_tool_change_resources_options_menu.h Examining src/editor/ui_menus/editor_tool_set_terrain_options_menu.h Examining src/editor/editorinteractive.h Examining src/editor/editorinteractive.cc Examining src/graphic/image_cache.cc Examining src/graphic/animation_gfx.cc Examining src/graphic/animation_gfx.h Examining src/graphic/font_handler.cc Examining src/graphic/texture.cc Examining src/graphic/image.h Examining src/graphic/surface.cc Examining src/graphic/render/sdl_helper.cc Examining src/graphic/render/gamerenderer_gl.h Examining src/graphic/render/gamerenderer_gl.cc Examining src/graphic/render/gamerenderer_sdl.h Examining src/graphic/render/sdl_surface.h Examining src/graphic/render/gamerenderer.cc Examining src/graphic/render/minimaprenderer.cc Examining src/graphic/render/gl_surface_screen.cc Examining src/graphic/render/gl_surface_screen.h Examining src/graphic/render/gamerenderer_sdl.cc Examining src/graphic/render/gl_surface_texture.h Examining src/graphic/render/terrain_sdl.cc Examining src/graphic/render/minimaprenderer.h Examining src/graphic/render/gl_utils.cc Examining src/graphic/render/sdl_helper.h Examining src/graphic/render/gl_utils.h Examining src/graphic/render/gamerenderer.h Examining src/graphic/render/gl_surface.cc Examining src/graphic/render/sdl_surface.cc Examining src/graphic/render/gl_surface.h Examining src/graphic/render/terrain_sdl.h Examining src/graphic/render/gl_surface_texture.cc Examining src/graphic/wordwrap.h Examining src/graphic/font_handler.h Examining src/graphic/image_loader_impl.cc Examining src/graphic/surface.h Examining src/graphic/in_memory_image.cc Examining src/graphic/graphic.h Examining src/graphic/animation.h Examining src/graphic/rendertarget.cc Examining src/graphic/richtext.h Examining src/graphic/diranimations.h Examining src/graphic/texture.h Examining src/graphic/font.cc Examining src/graphic/wordwrap.cc Examining src/graphic/surface_cache.cc Examining src/graphic/font_handler1.h Examining src/graphic/image_loader_impl.h Examining src/graphic/compositemode.h Examining src/graphic/image_transformations.cc Examining src/graphic/colormap.cc Examining src/graphic/image_transformations.h Examining src/graphic/graphic.cc Examining src/graphic/richtext.cc Examining src/graphic/font_handler1.cc Examining src/graphic/font.h Examining src/graphic/image_loader.h Examining src/graphic/image_cache.h Examining src/graphic/surface_cache.h Examining src/graphic/in_memory_image.h Examining src/graphic/colormap.h Examining src/graphic/text/textstream.cc Examining src/graphic/text/rt_errors.h Examining src/graphic/text/sdl_ttf_font_impl.h Examining src/graphic/text/rt_errors_impl.h Examining src/graphic/text/rt_render.h Examining src/graphic/text/rt_parse.cc Examining src/graphic/text/sdl_ttf_font.h Examining src/graphic/text/rt_render.cc Examining src/graphic/text/sdl_ttf_font_impl.cc Examining src/graphic/text/sdl_ttf_font_loader_from_filesystem.cc Examining src/graphic/text/rt_parse.h Examining src/graphic/text/sdl_ttf_font_loader_from_file.cc Examining src/graphic/text/textstream.h Examining src/graphic/rendertarget.h Examining src/graphic/animation.cc Examining src/gamecontroller.h Examining src/cookie_priority_queue.h Examining src/point.h Examining src/manager.h Examining src/chat.h Examining src/network/network_lan_promotion.cc Examining src/network/internet_gaming_messages.cc Examining src/network/network.h Examining src/network/network_player_settings_backend.h Examining src/network/nethost.cc Examining src/network/network.cc Examining src/network/internet_gaming.h Examining src/network/netclient.cc Examining src/network/network_gaming_messages.cc Examining src/network/network_player_settings_backend.cc Examining src/network/network_protocol.h Examining src/network/network_lan_promotion.h Examining src/network/netclient.h Examining src/network/nethost.h Examining src/network/internet_gaming.cc Examining src/network/network_gaming_messages.h Examining src/network/internet_gaming_messages.h Examining src/network/internet_gaming_protocol.h Examining src/network/network_system.h Examining src/helper.h Examining src/minizip/zip.h Examining src/minizip/unzip.cc Examining src/minizip/ioapi.h Examining src/minizip/unzip.h Examining src/text_parser.cc Examining src/save_handler.cc Examining src/computer_player.cc Examining src/rgbcolor.h Examining src/sound/fxset.cc Examining src/sound/sound_handler.cc Examining src/sound/sound_handler.h Examining src/sound/songset.h Examining src/sound/fxset.h Examining src/sound/songset.cc Examining src/ref_cast.h Examining src/timestring.h Examining src/campvis.cc Examining src/s2map.h Examining src/profile/profile.h Examining src/profile/profile.cc Examining src/named.h Examining src/map_generator.cc Examining src/align.h Examining src/singleton.h Examining src/journal_exceptions.h Examining src/vector.h Examining src/chat.cc Examining src/text_parser.h Examining src/wexception.h Examining src/constants.h Examining src/compile_diagnostics.h Examining src/build_info.h Examining src/debugconsole.cc Examining src/journal.cc Examining src/scoped_timer.h Examining src/timestring.cc Examining src/backtrace.cc Examining src/gamesettings.h Examining src/wlapplication.cc Examining src/io/streamread.h Examining src/io/filesystem/layered_filesystem.h Examining src/io/filesystem/zip_exceptions.h Examining src/io/filesystem/disk_filesystem.h Examining src/io/filesystem/layered_filesystem.cc Examining src/io/filesystem/filesystem.cc Examining src/io/filesystem/filesystem.h Examining src/io/filesystem/filesystem_exceptions.h Examining src/io/filesystem/disk_filesystem.cc Examining src/io/filesystem/test/filesystem_test_main.cc Examining src/io/filesystem/test/test_filesystem.cc Examining src/io/filesystem/zip_filesystem.cc Examining src/io/filesystem/zip_filesystem.h Examining src/io/basic_filewrite.h Examining src/io/basic_fileread.h Examining src/io/filewrite.h Examining src/io/streamwrite.cc Examining src/io/streamwrite.h Examining src/io/fileread.h Examining src/io/dedicated_log.cc Examining src/io/dedicated_log.h Examining src/io/streamread.cc Examining src/scripting/lua_ui.cc Examining src/scripting/lua_map.cc Examining src/scripting/lua_editor.h Examining src/scripting/luna_impl.h Examining src/scripting/pluto.cc Examining src/scripting/factory.cc Examining src/scripting/lua_bases.cc Examining src/scripting/luna.h Examining src/scripting/lua_bases.h Examining src/scripting/lua_root.h Examining src/scripting/c_utils.h Examining src/scripting/persistence.h Examining src/scripting/pdep.cc Examining src/scripting/lua_map.h Examining src/scripting/lua_ui.h Examining src/scripting/c_utils.cc Examining src/scripting/pluto.h Examining src/scripting/pdep/ldo.h Examining src/scripting/pdep/lua.h Examining src/scripting/pdep/lobject.h Examining src/scripting/pdep/lfunc.h Examining src/scripting/pdep/ltm.h Examining src/scripting/pdep/lgc.h Examining src/scripting/pdep/lopcodes.h Examining src/scripting/pdep/pdep.h Examining src/scripting/pdep/llimits.h Examining src/scripting/pdep/lstring.h Examining src/scripting/pdep/lzio.h Examining src/scripting/pdep/lauxlib.h Examining src/scripting/pdep/lstate.h Examining src/scripting/coroutine_impl.cc Examining src/scripting/lua_game.h Examining src/scripting/persistence.cc Examining src/scripting/test/test_luna.cc Examining src/scripting/test/scripting_test_main.cc Examining src/scripting/lua_editor.cc Examining src/scripting/lua_game.cc Examining src/scripting/lua_globals.cc Examining src/scripting/scripting.cc Examining src/scripting/lua_root.cc Examining src/scripting/scripting.h Examining src/scripting/factory.h Examining src/scripting/lua_globals.h Examining src/scripting/luna_impl.cc Examining src/scripting/coroutine_impl.h Examining src/vertex.h Examining src/helper.cc Examining src/ui_fsmenu/loadreplay.h Examining src/ui_fsmenu/base.cc Examining src/ui_fsmenu/fileview.cc Examining src/ui_fsmenu/singleplayer.cc Examining src/ui_fsmenu/loadgame.cc Examining src/ui_fsmenu/launchMPG.h Examining src/ui_fsmenu/singleplayer.h Examining src/ui_fsmenu/loadgame.h Examining src/ui_fsmenu/internet_lobby.h Examining src/ui_fsmenu/main.cc Examining src/ui_fsmenu/editor.cc Examining src/ui_fsmenu/options.h Examining src/ui_fsmenu/fileview.h Examining src/ui_fsmenu/editor_mapselect.h Examining src/ui_fsmenu/internet_lobby.cc Examining src/ui_fsmenu/multiplayer.h Examining src/ui_fsmenu/campaign_select.h Examining src/ui_fsmenu/launchSPG.h Examining src/ui_fsmenu/mapselect.cc Examining src/ui_fsmenu/intro.h Examining src/ui_fsmenu/main.h Examining src/ui_fsmenu/launchMPG.cc Examining src/ui_fsmenu/mapselect.h Examining src/ui_fsmenu/netsetup_lan.cc Examining src/ui_fsmenu/loadreplay.cc Examining src/ui_fsmenu/campaign_select.cc Examining src/ui_fsmenu/netsetup_lan.h Examining src/ui_fsmenu/options.cc Examining src/ui_fsmenu/base.h Examining src/ui_fsmenu/editor.h Examining src/ui_fsmenu/intro.cc Examining src/ui_fsmenu/editor_mapselect.cc Examining src/ui_fsmenu/launchSPG.cc Examining src/ui_fsmenu/multiplayer.cc Examining src/machdep.h Examining src/workarea_info.h Examining src/logic/wareworker.h Examining src/logic/soldiercontrol.h Examining src/logic/expedition_bootstrap.h Examining src/logic/production_program.h Examining src/logic/game.h Examining src/logic/worker.h Examining src/logic/cmd_expire_message.h Examining src/logic/map_revision.h Examining src/logic/maphollowregion.h Examining src/logic/player.cc Examining src/logic/cmd_calculate_statistics.cc Examining src/logic/areawatcher.h Examining src/logic/carrier.cc Examining src/logic/soldier.h Examining src/logic/walkingdir.h Examining src/logic/pathfield.h Examining src/logic/immovable.h Examining src/logic/cmd_calculate_statistics.h Examining src/logic/mapfringeregion.h Examining src/logic/tribe.h Examining src/logic/building.h Examining src/logic/warelist.h Examining src/logic/worlddata.h Examining src/logic/player_area.h Examining src/logic/tattribute.h Examining src/logic/widelands_streamread_inlines.h Examining src/logic/worker_descr.cc Examining src/logic/legacy.h Examining src/logic/mapfringeregion.cc Examining src/logic/widelands_streamwrite_inlines.h Examining src/logic/playercommand.h Examining src/logic/warelist.cc Examining src/logic/battle.cc Examining src/logic/playersmanager.h Examining src/logic/playercommand.cc Examining src/logic/queue_cmd_ids.h Examining src/logic/widelands_streamread.h Examining src/logic/cmd_queue.h Examining src/logic/path.cc Examining src/logic/widelands_streamwrite.h Examining src/logic/partially_finished_building.cc Examining src/logic/military_data.h Examining src/logic/legacy.cc Examining src/logic/critter_bob.h Examining src/logic/instances.h Examining src/logic/editor_game_base.h Examining src/logic/map.h Examining src/logic/maphollowregion.cc Examining src/logic/cmd_luascript.cc Examining src/logic/message_id.h Examining src/logic/message_queue.h Examining src/logic/trainingsite.cc Examining src/logic/objective.h Examining src/logic/bob.h Examining src/logic/replay.cc Examining src/logic/critter_bob_program.h Examining src/logic/queue_cmd_factory.cc Examining src/logic/cmd_expire_message.cc Examining src/logic/ship.h Examining src/logic/carrier.h Examining src/logic/game_data_error.h Examining src/logic/roadtype.h Examining src/logic/worker_program.h Examining src/logic/mapdifferenceregion.cc Examining src/logic/editor_game_base.cc Examining src/logic/widelands_filewrite.h Examining src/logic/tribe.cc Examining src/logic/areawatcher.cc Examining src/logic/nodecaps.h Examining src/logic/checkstep.cc Examining src/logic/pathfield.cc Examining src/logic/militarysite.h Examining src/logic/queue_cmd_factory.h Examining src/logic/widelands_streamread.cc Examining src/logic/replay.h Examining src/logic/mapastar.h Examining src/logic/maptriangleregion.h Examining src/logic/mapdifferenceregion.h Examining src/logic/cmd_luacoroutine.cc Examining src/logic/militarysite.cc Examining src/logic/findimmovable.cc Examining src/logic/map_revision.cc Examining src/logic/checkstep.h Examining src/logic/message.h Examining src/logic/productionsite.cc Examining src/logic/productionsite.h Examining src/logic/partially_finished_building.h Examining src/logic/trainingsite.h Examining src/logic/program_result.h Examining src/logic/worker_program.cc Examining src/logic/building.cc Examining src/logic/field.cc Examining src/logic/buildcost.cc Examining src/logic/game_data_error.cc Examining src/logic/cmd_queue.cc Examining src/logic/player.h Examining src/logic/warehouse.h Examining src/logic/findnode.cc Examining src/logic/playersmanager.cc Examining src/logic/widelands.h Examining src/logic/production_program.cc Examining src/logic/item_ware_descr.cc Examining src/logic/attackable.h Examining src/logic/instances.cc Examining src/logic/buildcost.h Examining src/logic/widelands_fileread.h Examining src/logic/immovable_program.h Examining src/logic/world.h Examining src/logic/mapregion.h Examining src/logic/requirements.h Examining src/logic/bob.cc Examining src/logic/widelands_geometry.h Examining src/logic/path.h Examining src/logic/cmd_incorporate.cc Examining src/logic/maptriangleregion.cc Examining src/logic/military_data.cc Examining src/logic/world.cc Examining src/logic/walkingdir.cc Examining src/logic/map.cc Examining src/logic/soldier.cc Examining src/logic/immovable.cc Examining src/logic/cmd_luacoroutine.h Examining src/logic/findimmovable.h Examining src/logic/expedition_bootstrap.cc Examining src/logic/findbob.h Examining src/logic/cmd_incorporate.h Examining src/logic/soldier_counts.h Examining src/logic/constructionsite.h Examining src/logic/dismantlesite.h Examining src/logic/field.h Examining src/logic/warehouse.cc Examining src/logic/ship.cc Examining src/logic/constructionsite.cc Examining src/logic/worker.cc Examining src/logic/cmd_luascript.h Examining src/logic/notification.h Examining src/logic/critter_bob.cc Examining src/logic/findbob.cc Examining src/logic/battle.h Examining src/logic/game.cc Examining src/logic/dismantlesite.cc Examining src/logic/mapastar.cc Examining src/logic/requirements.cc Examining src/logic/item_ware_descr.h Examining src/logic/ware_types.h Examining src/logic/findnode.h Examining src/logic/worker_descr.h Examining src/wlapplication.h Examining src/i18n.cc Examining src/save_handler.h Examining src/i18n.h Examining src/ui_basic/spinbox.cc Examining src/ui_basic/multilineeditbox.h Examining src/ui_basic/helpwindow.cc Examining src/ui_basic/slider.h Examining src/ui_basic/listselect.h Examining src/ui_basic/unique_window.h Examining src/ui_basic/editbox.h Examining src/ui_basic/icongrid.cc Examining src/ui_basic/progresswindow.cc Examining src/ui_basic/tabpanel.cc Examining src/ui_basic/editbox.cc Examining src/ui_basic/mouse_constants.h Examining src/ui_basic/icongrid.h Examining src/ui_basic/multilinetextarea.cc Examining src/ui_basic/button.h Examining src/ui_basic/radiobutton.h Examining src/ui_basic/textarea.h Examining src/ui_basic/panel.h Examining src/ui_basic/checkbox.h Examining src/ui_basic/multilinetextarea.h Examining src/ui_basic/window.cc Examining src/ui_basic/radiobutton.cc Examining src/ui_basic/button.cc Examining src/ui_basic/table.cc Examining src/ui_basic/icon.cc Examining src/ui_basic/messagebox.cc Examining src/ui_basic/listselect.cc Examining src/ui_basic/spinbox.h Examining src/ui_basic/tabpanel.h Examining src/ui_basic/box.h Examining src/ui_basic/icon.h Examining src/ui_basic/multilineeditbox.cc Examining src/ui_basic/scrollbar.cc Examining src/ui_basic/panel.cc Examining src/ui_basic/slider.cc Examining src/ui_basic/textarea.cc Examining src/ui_basic/scrollbar.h Examining src/ui_basic/window.h Examining src/ui_basic/table.h Examining src/ui_basic/progressbar.h Examining src/ui_basic/unique_window.cc Examining src/ui_basic/progresswindow.h Examining src/ui_basic/helpwindow.h Examining src/ui_basic/messagebox.h Examining src/ui_basic/box.cc Examining src/ui_basic/checkbox.cc Examining src/ui_basic/progressbar.cc Examining src/log.h Examining src/computer_player.h Examining src/journal.h Examining src/descr_maintainer.h Examining src/gamecontroller.cc Examining src/log.cc Examining src/upcast.h Examining src/ai/ai_help_structs.h Examining src/ai/defaultai.h Examining src/ai/ai_hints.h Examining src/ai/ai_hints.cc Examining src/ai/defaultai.cc Examining src/ai/ai_help_structs.cc Examining src/random.cc Examining src/utf8.h Examining src/md5.cc src/wlapplication.cc:953: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. Reconsider approach. size_t size = readlink("/proc/self/exe", buffer, PATH_MAX); src/economy/transfer.cc:288: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/editor/tools/editor_set_starting_pos_tool.cc:65: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). strcpy(fsel_picsname, FSEL_PIC_FILENAME); src/exceptions.cc:38: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/exceptions.cc:63: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), em, va); src/graphic/animation.cc:276: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(sectname, sizeof(sectname), sectnamebase, dirstrings[dir]); src/graphic/animation.cc:290: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(sectname, sizeof(sectname), dirpictempl, dirstrings[dir]); src/graphic/animation_gfx.cc:57: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). strcpy(filename, data.picnametempl.c_str()); src/graphic/animation_gfx.cc:75: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). strcpy(after_basename, extensions[extnr]); src/graphic/animation_gfx.cc:105: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). strcpy(after_basename + 3, extensions[extnr]); src/io/dedicated_log.cc:38: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/io/streamread.cc:35: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/io/streamwrite.cc:41: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. int32_t i = vsnprintf(buffer, sizeof(buffer), fmt, va); src/io/streamwrite.cc:60: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. i = vsnprintf(heapbuf, i + 1, fmt, va); src/log.cc:38: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/logic/game_data_error.cc:33: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/logic/instances.cc:453: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/logic/militarysite.cc:118: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/logic/militarysite.cc:123: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/logic/militarysite.cc:947: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/logic/trainingsite.cc:668: [4] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. sprintf(buf, "%s%d", upgrade.prefix.c_str(), level); src/map_io/widelands_map_players_areawatchers_data_packet.cc:52: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), FILENAME_TEMPLATE, p); src/map_io/widelands_map_players_areawatchers_data_packet.cc:112: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), PLAYERDIRNAME_TEMPLATE, p); src/map_io/widelands_map_players_areawatchers_data_packet.cc:114: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), DIRNAME_TEMPLATE, p); src/map_io/widelands_map_players_areawatchers_data_packet.cc:116: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), FILENAME_TEMPLATE, p); src/map_io/widelands_map_players_messages_data_packet.cc:46: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), FILENAME_TEMPLATE, p); src/map_io/widelands_map_players_messages_data_packet.cc:245: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), PLAYERDIRNAME_TEMPLATE, p); src/map_io/widelands_map_players_messages_data_packet.cc:247: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), FILENAME_TEMPLATE, p); src/map_io/widelands_map_players_view_data_packet.cc:113: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), filename_template, plnum, version); \ src/map_io/widelands_map_players_view_data_packet.cc:129: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), filename_template, plnum, fileversion); \ src/map_io/widelands_map_players_view_data_packet.cc:146: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), file_templ, plnum, fileversion); \ src/map_io/widelands_map_players_view_data_packet.cc:243: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/map_io/widelands_map_players_view_data_packet.cc:347: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/map_io/widelands_map_players_view_data_packet.cc:878: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), filename_template, plnum, version); \ src/map_io/widelands_map_players_view_data_packet.cc:1017: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), PLAYERDIRNAME_TEMPLATE, plnum); src/map_io/widelands_map_players_view_data_packet.cc:1019: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(filename, sizeof(filename), DIRNAME_TEMPLATE, plnum); src/network/network.cc:223: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/profile/profile.cc:716: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/scripting/c_utils.cc:107: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), fmt, va); src/ui_basic/progresswindow.cc:165: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), format, va); src/ui_fsmenu/loadgame.cc:241: [4] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. sprintf(buf, "%s", _("Unknown")); src/ui_fsmenu/loadreplay.cc:197: [4] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. sprintf(buf, "%s", _("Unknown")); src/wlapplication.cc:658: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf(buffer, sizeof(buffer), SCREENSHOT_DIR "/shot%04u.png", nr); src/wlapplication.cc:1042: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). strcpy(videodrvused + 16, videomode[i].c_str()); src/wui/game_main_menu_save_game.cc:140: [4] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. sprintf(buf, "%i %s", player_nr, ngettext(_("player"), _("players"), player_nr)); src/wui/game_main_menu_save_game.cc:176: [4] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. sprintf src/wui/interactive_player.cc:294: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate. Use a constant for the format specification. snprintf src/i18n.cc:130: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once. Check environment variables carefully before using them. lang = getenv("LANG"); src/i18n.cc:135: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once. Check environment variables carefully before using them. lang = getenv("LANGUAGE"); src/io/filesystem/filesystem.cc:163: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once. Check environment variables carefully before using them. homedir = getenv(name); \ src/io/filesystem/filesystem.cc:175: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once. Check environment variables carefully before using them. if (char const * const h = getenv("HOME")) src/wlapplication.cc:1032: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once. Check environment variables carefully before using them. videodrv = getenv("SDL_VIDEODRIVER"); src/campvis.cc:105: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%i", i); src/campvis.cc:109: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cvisible, "campvisi%i", i); src/campvis.cc:110: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cnewvisi, "cnewvisi%i", i); src/campvis.cc:120: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%i", i); src/campvis.cc:128: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%i", i); src/campvis.cc:133: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%02i", imap); src/campvis.cc:148: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%02i", imap); src/campvis.cc:153: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%i", i); src/editor/ui_menus/editor_main_menu_load_map.cc:189: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", map.get_nrplayers()); src/editor/ui_menus/editor_main_menu_load_map.cc:192: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ix%i", map.get_width(), map.get_height()); src/editor/ui_menus/editor_main_menu_map_options.cc:122: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ix%i", map.get_width(), map.get_height()); src/editor/ui_menus/editor_main_menu_map_options.cc:126: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", map.get_nrplayers()); src/editor/ui_menus/editor_main_menu_save_map.cc:242: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", map.get_nrplayers()); src/editor/ui_menus/editor_main_menu_save_map.cc:245: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ix%i", map.get_width(), map.get_height()); src/editor/ui_menus/editor_tool_change_height_options_menu.cc:193: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", m_increase_tool.get_change_by()); src/editor/ui_menus/editor_tool_change_height_options_menu.cc:195: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", m_increase_tool.set_tool().get_interval().min); src/editor/ui_menus/editor_tool_change_resources_options_menu.cc:229: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", m_increase_tool.get_change_by()); src/editor/ui_menus/editor_tool_change_resources_options_menu.cc:231: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", m_increase_tool.set_tool().get_set_to()); src/graphic/animation_gfx.cc:103: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). Risk is low because the source is a constant string. strcpy(after_basename, "_pc"); src/graphic/colormap.cc:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(palette, &pal, sizeof(palette)); src/graphic/graphic.cc:209: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_caps.gl.major_version = atoi(str); src/graphic/graphic.cc:210: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_caps.gl.minor_version = strstr(str, ".")?atoi(strstr(str, ".") + 1):0; src/graphic/image_transformations.cc:69: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(dstpix, srcpix, rowsize); src/graphic/texture.cc:192: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy src/io/basic_filewrite.h:103: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(data + i, src, size); src/io/filesystem/disk_filesystem.cc:91: [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?. FILE * const f = fopen(fullname.c_str(), "a"); src/io/filesystem/disk_filesystem.cc:374: [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?. file = fopen(fullname.c_str(), "rb"); src/io/filesystem/disk_filesystem.cc:430: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. file = open(fullname.c_str(), O_RDONLY); src/io/filesystem/disk_filesystem.cc:432: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. file = open(fullname.c_str(), O_RDONLY); src/io/filesystem/disk_filesystem.cc:434: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. file = open(fullname.c_str(), O_RDONLY|O_NOATIME); src/io/filesystem/disk_filesystem.cc:473: [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?. FILE * const f = fopen(fullname.c_str(), append ? "a" : "wb"); src/io/filesystem/disk_filesystem.cc:506: [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?. : m_file(fopen(fname.c_str(), "rb")) src/io/filesystem/disk_filesystem.cc:551: [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?. m_file = fopen(fname.c_str(), "wb"); src/journal.cc:212: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. m_recordstream.open src/journal.cc:262: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. m_playbackstream.open(m_playbackname.c_str(), std::ios::binary); src/logic/immovable.cc:904: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long int const value = atoi(params[i].c_str()); src/logic/immovable.cc:1153: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_buildtime = atoi(params[1].c_str()); src/logic/immovable.cc:1154: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_decaytime = atoi(params[2].c_str()); src/logic/production_program.cc:234: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, ":%u", group.second); src/logic/production_program.cc:833: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, ":%u", count); src/logic/production_program.cc:934: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, _("%u "), count); src/logic/production_program.cc:1030: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, _("%u "), count); src/logic/worker_program.cc:635: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). act->iparam1 = atoi(cmd[1].c_str()); src/logic/worker_program.cc:636: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). act->iparam2 = atoi(cmd[2].c_str()); src/logic/worker_program.cc:657: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(cmd[2].c_str()); src/machdep.h:92: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(&r, ptr, sizeof(r)); src/machdep.h:98: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(&r, ptr, sizeof(r)); src/machdep.h:104: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(&r, ptr, sizeof(r)); src/main.cc:87: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents?. open("/dev/null", O_RDWR); src/map_io/widelands_map_buildingdata_data_packet.cc:1088: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(productionsite.m_statistics_buffer, fr.Data(40), 40); src/map_io/widelands_map_players_view_data_packet.cc:112: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char (filename)[FILENAME_SIZE]; \ src/map_io/widelands_map_players_view_data_packet.cc:127: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char (filename)[FILENAME_SIZE]; \ src/map_io/widelands_map_players_view_data_packet.cc:144: [2] (buffer) char: Statically-sized arrays can be overflowed. Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char (filename)[FILENAME_SIZE]; \ src/md5.cc:75: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy (&ctx->buffer[bytes], fillbuf, pad); src/md5.cc:107: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy (&ctx->buffer[left_over], buffer, add); src/md5.cc:114: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy src/md5.cc:135: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy (ctx->buffer, buffer, len); src/minizip/unzip.cc:2568: [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?. file = fopen(filename, mode_fopen); src/network/netclient.cc:824: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(fp.part, &buf[0], size); src/network/nethost.cc:1533: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(fp.part, fr.Data(readout), readout); src/network/network_lan_promotion.cc:166: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). Risk is low because the source is a constant string. strcpy (gameinfo.magic, "GAME"); src/profile/profile.cc:609: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%i", value); src/profile/profile.cc:632: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%i %i", value.x, value.y); src/s2map.cc:151: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(buffer, fr.Data(6), 6); src/s2map.cc:188: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(section + y * width, ptr, width); src/s2map.cc:214: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(&header, fr.Data(sizeof(header)), sizeof(header)); src/s2map.cc:262: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination. Make sure destination can always hold the source data. memcpy(&header, fr.Data(sizeof(header)), sizeof(header)); src/text_parser.cc:285: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). element.set_font_size(atoi(val.c_str())); src/text_parser.cc:289: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). element.set_line_spacing(atoi(val.c_str())); src/ui_fsmenu/campaign_select.cc:156: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cname, "campname%u", i); src/ui_fsmenu/campaign_select.cc:157: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cdifficulty, "campdiff%u", i); src/ui_fsmenu/campaign_select.cc:158: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cdescription, "campdesc%u", i); src/ui_fsmenu/campaign_select.cc:159: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cdif_descr, "campdiffdescr%u", i); src/ui_fsmenu/campaign_select.cc:208: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%u", i); src/ui_fsmenu/campaign_select.cc:211: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cname, "campname%u", i); src/ui_fsmenu/campaign_select.cc:212: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cdifficulty, "campdiff%u", i); src/ui_fsmenu/campaign_select.cc:236: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%u", i); src/ui_fsmenu/campaign_select.cc:400: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cname, "campname%u", campaign); src/ui_fsmenu/campaign_select.cc:405: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csection, "campsect%u", campaign); src/ui_fsmenu/campaign_select.cc:413: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%02u", i); src/ui_fsmenu/campaign_select.cc:429: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%02u", i); src/ui_fsmenu/editor_mapselect.cc:194: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", map.get_nrplayers()); src/ui_fsmenu/editor_mapselect.cc:197: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ix%i", map.get_width(), map.get_height()); src/ui_fsmenu/launchSPG.cc:152: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(posIco, "pics/fsel_editor_set_player_0%i_pos.png", i + 1); src/ui_fsmenu/loadgame.cc:239: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", gpdp.get_number_of_players()); src/ui_fsmenu/loadreplay.cc:195: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", gpdp.get_number_of_players()); src/ui_fsmenu/mapselect.cc:271: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%-4ux%4u", map.width, map.height); src/ui_fsmenu/mapselect.cc:273: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%i", map.nrplayers); src/ui_fsmenu/mapselect.cc:432: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "(%i)", mapdata.nrplayers); src/ui_fsmenu/mapselect.cc:491: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "(%i)", mapdata.nrplayers); src/ui_fsmenu/mapselect.cc:518: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "(%i)", mapdata.nrplayers); src/ui_fsmenu/options.cc:264: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf src/ui_fsmenu/options.cc:276: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ix%i %i bit", opt.xres, opt.yres, opt.depth); src/wlapplication.cc:1039: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination. Consider using strncpy or strlcpy (warning, strncpy is easily misused). Risk is low because the source is a constant string. strcpy(videodrvused, "SDL_VIDEODRIVER=\0"); src/wlapplication.cc:2315: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tfile.tm_mday = atoi(timestr.substr(8, 2).c_str()); src/wlapplication.cc:2316: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tfile.tm_mon = atoi(timestr.substr(5, 2).c_str()) - 1; src/wlapplication.cc:2317: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tfile.tm_year = atoi(timestr.substr(0, 4).c_str()) - 1900; src/wui/attack_box.cc:135: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u / %u", m_slider_soldiers->get_value(), max_attackers); src/wui/attack_box.cc:138: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u", max_attackers); src/wui/attack_box.cc:153: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u %%", m_slider_retreat->get_value()); src/wui/attack_box.cc:181: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u / %u", max_attackers > 0 ? 1 : 0, max_attackers); src/wui/attack_box.cc:196: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u", max_attackers); src/wui/attack_box.cc:219: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u %%", m_pl->get_retreat_percentage()); src/wui/encyclopedia_window.cc:205: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(amount_string, "%u", j.current->second); src/wui/interactive_base.cc:992: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). uint32_t serial = atoi(args[1].c_str()); src/wui/interactive_player.cc:489: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range. If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int const n = atoi(args[1].c_str()); src/wui/military_box.cc:117: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u %%", m_slider_retreat->get_value()); src/wui/military_box.cc:135: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u %%", m_pl->get_retreat_percentage()); src/wui/soldiercapacitycontrol.cc:93: [2] (buffer) sprintf: Does not check for buffer overflows. Use snprintf or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%2u", capacity); src/chat.cc:232: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%.2x%.2x%.2x", clr.r, clr.g, clr.b); src/economy/transfer.cc:315: [1] (buffer) read: Check buffer boundaries if used in a loop. void Transfer::read(FileRead & fr, Transfer::ReadData & rd) src/economy/transfer.h:72: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(FileRead & fr, ReadData & rd); src/economy/ware_instance.cc:567: [1] (buffer) read: Check buffer boundaries if used in a loop. ware.m_transfer->read(fr, m_transfer); src/editor/tools/editor_info_tool.cc:52: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:71: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:86: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:97: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:101: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:107: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:116: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/tools/editor_info_tool.cc:123: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_new_map.cc:63: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_new_map.cc:83: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_new_map.cc:154: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_new_map.cc:158: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:82: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:115: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:124: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:166: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Water: %u %%"), m_waterval); src/editor/ui_menus/editor_main_menu_random_map.cc:191: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:217: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:227: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:327: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Players: %u"), m_pn); src/editor/ui_menus/editor_main_menu_random_map.cc:429: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:433: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:438: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:441: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:444: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:447: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_main_menu_random_map.cc:451: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Players: %u"), m_pn); src/editor/ui_menus/editor_main_menu_save_map.cc:368: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). if (filename.size() >= strlen(WLMF_SUFFIX)) { src/editor/ui_menus/editor_main_menu_save_map.cc:371: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). (buffer, sizeof(WLMF_SUFFIX), filename.size() - strlen(WLMF_SUFFIX)); src/editor/ui_menus/editor_main_menu_save_map.cc:372: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). if (!strncasecmp(buffer, WLMF_SUFFIX, strlen(WLMF_SUFFIX))) src/editor/ui_menus/editor_tool_noise_height_options_menu.cc:147: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Minimum: %u"), height_interval.min); src/editor/ui_menus/editor_tool_noise_height_options_menu.cc:149: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Maximum: %u"), height_interval.max); src/editor/ui_menus/editor_tool_noise_height_options_menu.cc:152: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/editor/ui_menus/editor_toolsize_menu.cc:75: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _("Current Size: %u"), val + 1); src/game_io/game_preload_data_packet.cc:54: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("preload", 0, fs); src/graphic/animation.cc:115: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(templbuf, sizeof(templbuf), "%s.png", s.get_name()); src/graphic/animation.cc:120: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(pictempl, sizeof(pictempl), "%s%s", directory, picnametempl); src/graphic/animation.cc:121: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). assert(4 <= strlen(pictempl)); src/graphic/animation.cc:122: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). size_t const len = strlen(pictempl) - 4; src/graphic/animation.cc:246: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(sectnamebase, sizeof(sectnamebase), "%s", sectnametempl); src/graphic/animation.cc:253: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. Risk is low because the source is a constant string. strncpy(repl, "%s", 2); src/graphic/animation.cc:259: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(dirpictempl, sizeof(dirpictempl), "%s", string); src/graphic/animation.cc:266: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. Risk is low because the source is a constant string. strncpy(repl, "%s", 2); src/graphic/animation.cc:268: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(dirpictempl, sizeof(dirpictempl), "%s_??.png", sectnamebase); src/graphic/graphic.cc:709: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "worlds/%s/pics/roadt_normal.png", worldname.c_str()); src/graphic/graphic.cc:711: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "worlds/%s/pics/roadt_busy.png", worldname.c_str()); src/graphic/texture.cc:61: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(fname, sizeof(fname), "%s", fnametmpl.c_str()); src/graphic/texture.cc:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). char * p = fname + strlen(fname); src/io/filesystem/zip_filesystem.cc:184: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). return filename_inzip[strlen(filename_inzip) - 1] == '/'; src/io/filesystem/zip_filesystem.cc:340: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "read error %i", len); src/io/streamwrite.h:87: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). void CString(char const * const x) {Data(x, strlen(x) + 1);} src/io/streamwrite.h:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). void Text (char const * const x) {Data(x, strlen(x));} src/journal.cc:93: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read (int8_t & v) src/journal.cc:95: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(uint8_t)); src/journal.cc:101: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read(uint8_t & v) src/journal.cc:103: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(uint8_t)); src/journal.cc:109: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read (int16_t & v) { src/journal.cc:110: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(int16_t)); src/journal.cc:117: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read(uint16_t & v) { src/journal.cc:118: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(uint16_t)); src/journal.cc:125: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read (int32_t & v) { src/journal.cc:126: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(int32_t)); src/journal.cc:133: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read(uint32_t & v) { src/journal.cc:134: [1] (buffer) read: Check buffer boundaries if used in a loop. m_playbackstream.read(reinterpret_cast(&v), sizeof(uint32_t)); src/journal.cc:142: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read(SDLKey & v) src/journal.cc:145: [1] (buffer) read: Check buffer boundaries if used in a loop. read(x); src/journal.cc:153: [1] (buffer) read: Check buffer boundaries if used in a loop. void Journal::read(SDLMod & v) src/journal.cc:156: [1] (buffer) read: Check buffer boundaries if used in a loop. read(x); src/journal.cc:167: [1] (buffer) read: Check buffer boundaries if used in a loop. read(filecode); src/journal.cc:263: [1] (buffer) read: Check buffer boundaries if used in a loop. read(magic); src/journal.cc:392: [1] (buffer) read: Check buffer boundaries if used in a loop. read(recordtype); src/journal.cc:396: [1] (buffer) read: Check buffer boundaries if used in a loop. read(eventtype); src/journal.cc:400: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.mod); src/journal.cc:401: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.sym); src/journal.cc:402: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.unicode); src/journal.cc:406: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.mod); src/journal.cc:407: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.sym); src/journal.cc:408: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.key.keysym.unicode); src/journal.cc:412: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.button); src/journal.cc:413: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.x); src/journal.cc:414: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.y); src/journal.cc:415: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.state); src/journal.cc:419: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.button); src/journal.cc:420: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.x); src/journal.cc:421: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.y); src/journal.cc:422: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.button.state); src/journal.cc:426: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.motion.state); src/journal.cc:427: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.motion.x); src/journal.cc:428: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.motion.y); src/journal.cc:429: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.motion.xrel); src/journal.cc:430: [1] (buffer) read: Check buffer boundaries if used in a loop. read(e.motion.yrel); src/journal.cc:474: [1] (buffer) read: Check buffer boundaries if used in a loop. read(stamp); src/journal.h:106: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(int8_t &); src/journal.h:107: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(uint8_t &); src/journal.h:108: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(int16_t &); src/journal.h:109: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(uint16_t &); src/journal.h:110: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(int32_t &); src/journal.h:111: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(uint32_t &); src/journal.h:112: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(SDLKey &); src/journal.h:113: [1] (buffer) read: Check buffer boundaries if used in a loop. void read(SDLMod &); src/logic/building.cc:926: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). (strlen("

") + src/logic/building.cc:929: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). strlen("
")); src/logic/critter_bob.cc:50: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%i", idx); src/logic/dismantlesite.cc:98: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/game.cc:600: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified. Use nanosleep(2) or setitimer(2) instead. if (usleep(100) == -1) src/logic/map.cc:586: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(m_filename, sizeof(m_filename), "%s", string); src/logic/map.cc:591: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(m_author, sizeof(m_author), "%s", string); src/logic/map.cc:596: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(m_name, sizeof(m_name), "%s", string); src/logic/map.cc:601: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(m_description, sizeof(m_description), "%s", string); src/logic/map.cc:611: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(m_worldname, sizeof(m_worldname), "%s", string); src/logic/militarysite.cc:131: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), " (+%u)", m_capacity - total); src/logic/militarysite.cc:238: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/militarysite.cc:839: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/militarysite.cc:898: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:455: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:699: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(ps.m_result_buffer, sizeof(ps.m_result_buffer), "No use for ships on this map!"); src/logic/production_program.cc:843: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:945: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:1039: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:1206: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:1280: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:1290: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/production_program.cc:1380: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/productionsite.cc:347: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/productionsite.cc:351: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/requirements.cc:45: [1] (buffer) read: Check buffer boundaries if used in a loop. *this = RequirementsStorage::read(fr, egbase, mol); src/logic/requirements.cc:86: [1] (buffer) read: Check buffer boundaries if used in a loop. Requirements RequirementsStorage::read src/logic/requirements.h:121: [1] (buffer) read: Check buffer boundaries if used in a loop. static Requirements read src/logic/soldier.cc:115: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "hp_level_%u_pic", i); src/logic/soldier.cc:120: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "attack_level_%u_pic", i); src/logic/soldier.cc:125: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "defense_level_%u_pic", i); src/logic/soldier.cc:130: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "evade_level_%i_pic", i); src/logic/soldier.cc:1547: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/tribe.cc:493: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "resi_%s%i", res->name().c_str(), i); src/logic/tribe.cc:520: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/warehouse.cc:470: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/worker.cc:951: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/worker.cc:1870: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/worker.cc:2991: [1] (buffer) read: Check buffer boundaries if used in a loop. worker.m_transfer->read(fr, m_transfer); src/logic/worker_program.cc:69: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i", idx); src/logic/world.cc:587: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/world.cc:589: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/world.cc:591: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/logic/world.cc:599: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(fname, sizeof(fname), "%s/resconf", m_basedir.c_str()); src/logic/world.cc:617: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(fname, sizeof(fname), "%s/terrainconf", m_basedir.c_str()); src/logic/world.cc:660: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(fname, sizeof(fname), "%s/mapgenconf", m_basedir.c_str()); src/logic/world.cc:911: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(fnametmpl, sizeof(fnametmpl), "%s/%s", directory, texture); src/logic/world.cc:913: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/map_io/widelands_map_allowed_building_types_data_packet.cc:44: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("allowed_building_types", 0, fs); src/map_io/widelands_map_allowed_building_types_data_packet.cc:47: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("allowed_buildings", 0, fs); src/map_io/widelands_map_allowed_building_types_data_packet.cc:72: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_allowed_building_types_data_packet.cc:110: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_allowed_worker_types_data_packet.cc:47: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("allowed_worker_types", 0, fs); src/map_io/widelands_map_allowed_worker_types_data_packet.cc:59: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_allowed_worker_types_data_packet.cc:96: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_buildingdata_data_packet.cc:1094: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/map_io/widelands_map_buildingdata_data_packet.cc:1112: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/map_io/widelands_map_elemental_data_packet.cc:38: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("elemental", 0, fs); src/map_io/widelands_map_extradata_data_packet.cc:50: [1] (buffer) read: Check buffer boundaries if used in a loop. try {prof.read("extra_data", 0, fs);} catch (...) {return;} src/map_io/widelands_map_objective_data_packet.cc:42: [1] (buffer) read: Check buffer boundaries if used in a loop. try {prof.read("objective", 0, fs);} catch (...) {return;} src/map_io/widelands_map_player_names_and_tribes_data_packet.cc:60: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("player_names", 0, fs); src/map_io/widelands_map_player_names_and_tribes_data_packet.cc:69: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_player_names_and_tribes_data_packet.cc:98: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_player_position_data_packet.cc:36: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("player_position", 0, fs); src/map_io/widelands_map_player_position_data_packet.cc:51: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_player_position_data_packet.cc:78: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "player_%u", p); src/map_io/widelands_map_players_messages_data_packet.cc:48: [1] (buffer) read: Check buffer boundaries if used in a loop. try {prof.read(filename, 0, fs);} catch (...) {continue;} src/map_io/widelands_map_port_spaces_data_packet.cc:40: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("port_spaces", 0, fs); src/map_io/widelands_map_port_spaces_data_packet.cc:56: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%u", i); src/map_io/widelands_map_port_spaces_data_packet.cc:104: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%u", i++); src/map_io/widelands_map_version_data_packet.cc:45: [1] (buffer) read: Check buffer boundaries if used in a loop. try {prof.read("version", 0, fs);} catch (...) src/md5.cc:41: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%02x", data[i]); src/minizip/unzip.cc:1958: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). size_comment = comment ? static_cast(strlen(comment)) : 0; src/minizip/unzip.cc:1960: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). size_filename = static_cast(strlen(filename)); src/minizip/unzip.cc:2402: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). global_comment ? static_cast(strlen(global_comment)) : 0; src/network/internet_gaming.cc:268: [1] (buffer) read: Check buffer boundaries if used in a loop. if (!m_deserializer.read(m_sock)) { src/network/netclient.cc:300: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "network player %i", d->settings.playernum); src/network/netclient.cc:1057: [1] (buffer) read: Check buffer boundaries if used in a loop. if (!d->deserializer.read(d->sock)) { src/network/nethost.cc:763: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified. Use nanosleep(2) or setitimer(2) instead. if (usleep(100000)) // Sleep for 0.1 seconds - there is not anybody connected anyways. src/network/nethost.cc:770: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified. Use nanosleep(2) or setitimer(2) instead. if (usleep(200) == -1) src/network/nethost.cc:1342: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("map/elemental", 0, *sg_fs); src/network/nethost.cc:1406: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/network/nethost.cc:1986: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), _("Computer%u"), ++suffix); src/network/nethost.cc:2059: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%u", i++); src/network/nethost.cc:2248: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%li", deltanow); src/network/nethost.cc:2253: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%li", 300 - deltanow); src/network/nethost.cc:2505: [1] (buffer) read: Check buffer boundaries if used in a loop. if (!client.deserializer.read(client.sock)) { src/network/nethost.cc:2629: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("map/elemental", 0, *sg_fs); src/network/network.cc:189: [1] (buffer) read: Check buffer boundaries if used in a loop. bool Deserializer::read(TCPsocket sock) src/network/network.h:143: [1] (buffer) read: Check buffer boundaries if used in a loop. bool read(TCPsocket sock); src/network/network_lan_promotion.cc:50: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. strncpy (ifr.ifr_name, ifnames[i].if_name, IFNAMSIZ); src/network/network_lan_promotion.cc:171: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. strncpy src/network/network_lan_promotion.cc:211: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. strncpy (gameinfo.map, map, sizeof(gameinfo.map)); src/network/network_lan_promotion.cc:232: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. Risk is low because the source is a constant string. strncpy (magic, "QUERY", 8); src/parse_map_object_types.h:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). path.resize(path.size() - strlen("conf")); \ src/profile/profile.cc:688: [1] (buffer) read: Check buffer boundaries if used in a loop. read(filename, global_section); src/profile/profile.cc:699: [1] (buffer) read: Check buffer boundaries if used in a loop. read(filename, global_section); src/profile/profile.cc:853: [1] (buffer) read: Check buffer boundaries if used in a loop. void Profile::read src/profile/profile.cc:905: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). (char * eot = line + strlen(line) - 1; src/profile/profile.cc:941: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). char * const eot = tail + strlen(tail) - 1; src/profile/profile.cc:945: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). char * const eot2 = tail + strlen(tail) - 1; src/profile/profile.cc:1014: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). uint32_t spaces = strlen(v.current->get_name()); src/profile/profile.cc:1017: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). for (uint32_t i = 0; i < strlen(str); ++i) { src/profile/profile.h:250: [1] (buffer) read: Check buffer boundaries if used in a loop. void read src/s2map.cc:54: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers. strncpy(m_filename, filename, sizeof(m_filename)); src/s2map.cc:871: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/save_handler.cc:136: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). if (filename.size() >= strlen(WLGF_SUFFIX)) { src/save_handler.cc:139: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). (buffer, sizeof(WLGF_SUFFIX), filename.size() - strlen(WLGF_SUFFIX)); src/save_handler.cc:140: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). if (!strncasecmp(buffer, WLGF_SUFFIX, strlen(WLGF_SUFFIX))) src/scripting/coroutine_impl.cc:100: [1] (buffer) read: Check buffer boundaries if used in a loop. void LuaCoroutine_Impl::read src/scripting/coroutine_impl.h:45: [1] (buffer) read: Check buffer boundaries if used in a loop. virtual void read src/scripting/lua_bases.cc:228: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/scripting/lua_game.cc:1088: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), _(" (achieved %s)"), o.descname().c_str()); src/scripting/lua_map.cc:2475: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i_%i", m_c.x, m_c.y); src/scripting/lua_map.cc:2814: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "Field(%i,%i)", m_c.x, m_c.y); src/scripting/luna.h:103: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). if (strlen(sub_namespace) != 0) { src/scripting/pdep/lstring.h:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) src/scripting/pluto.cc:1081: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). strlen(lua_tostring(upi->L, -1))); src/scripting/pluto.cc:1098: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). strlen(lua_tostring(upi->L, -1))); src/scripting/pluto.cc:1110: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). (upi->L, lua_tostring(upi->L, -1), strlen(lua_tostring(upi->L, -1))); src/scripting/scripting.cc:488: [1] (buffer) read: Check buffer boundaries if used in a loop. rv->read(m_L, fr, mol, size); src/scripting/test/test_luna.cc:212: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script1, strlen(script1), "testscript1")); src/scripting/test/test_luna.cc:228: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script1, strlen(script1), "testscript1")); src/scripting/test/test_luna.cc:249: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script2, strlen(script2), "testscript2")); src/scripting/test/test_luna.cc:269: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script3, strlen(script3), "testscript3")); src/scripting/test/test_luna.cc:288: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script4, strlen(script4), "testscript4")); src/scripting/test/test_luna.cc:308: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script5, strlen(script5), "testscript5")); src/scripting/test/test_luna.cc:327: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script6, strlen(script6), "testscript6")); src/scripting/test/test_luna.cc:347: [1] (buffer) strlen: Does not handle strings that are not \0-terminated (it could cause a crash if unprotected). BOOST_REQUIRE_EQUAL(0, luaL_loadbuffer(L, script6, strlen(script6), "testscript6")); src/ui_basic/progresswindow.cc:111: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%02d.jpg", intbuf); src/ui_basic/spinbox.cc:106: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i %s", sbi->value, sbi->unit.c_str()); src/ui_basic/spinbox.cc:169: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i %s", sbi->value, sbi->unit.c_str()); src/ui_basic/spinbox.cc:336: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i %s", value, sbi->unit.c_str()); src/ui_fsmenu/base.cc:60: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "pics/%s", bgpic); src/ui_fsmenu/launchMPG.cc:381: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("map/elemental", 0, *l_fs); src/ui_fsmenu/launchMPG.cc:544: [1] (buffer) read: Check buffer boundaries if used in a loop. prof.read("map/player_names", 0, *l_fs); src/ui_fsmenu/launchMPG.cc:556: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "player_%u", i); src/ui_fsmenu/launchMPG.cc:562: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), _("Player %u"), i); src/wlapplication.cc:849: [1] (buffer) read: Check buffer boundaries if used in a loop. g_options.read("config", "global"); src/wlapplication.cc:1513: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified. Use nanosleep(2) or setitimer(2) instead. usleep (500000); src/wlapplication.cc:1840: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%s %u", _("Player"), oldplayers + 1); src/wui/building_statistics_menu.cc:468: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%3u", percent); src/wui/building_statistics_menu.cc:475: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), " "); src/wui/building_statistics_menu.cc:484: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%3u", nr_owned); // space-pad for sort src/wui/building_statistics_menu.cc:490: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%3u", nr_build); // space-pad for sort src/wui/buildingwindow.cc:232: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:157: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%u", m_serial); src/wui/game_debug_ui.cc:183: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "DEAD: %u", m_serial); src/wui/game_debug_ui.cc:283: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:312: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "Player %u:\n", plnum); src/wui/game_debug_ui.cc:314: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:319: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), " vision: %u\n", vision); src/wui/game_debug_ui.cc:325: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:336: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:352: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:365: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), " seen %u times\n", vision - 1); src/wui/game_debug_ui.cc:374: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:380: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:390: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/game_debug_ui.cc:431: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/general_statistics_menu.cc:144: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "pics/genstats_enable_plr_%02u.png", p); src/wui/interactive_base.cc:315: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/interactive_base.cc:337: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/multiplayersetupgroup.cc:117: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/multiplayersetupgroup.cc:120: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf2, sizeof(buf2), _("Player %i"), us.position + 1); src/wui/multiplayersetupgroup.cc:122: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf2, sizeof(buf2), _("Spectator")); src/wui/multiplayersetupgroup.cc:170: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/multiplayersetupgroup.cc:285: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(pic, sizeof(pic), "pics/fsel_editor_set_player_0%i_pos.png", player_setting.shared_in); src/wui/multiplayersetupgroup.cc:286: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(hover, sizeof(hover), _("Player %i"), player_setting.shared_in); src/wui/multiplayersetupgroup.cc:342: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i", player_setting.team); src/wui/playerdescrgroup.cc:216: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buf, sizeof(buf), "%i", player.team); src/wui/productionsitewindow.cc:175: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/soldierlist.cc:485: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf src/wui/watchwindow.cc:207: [1] (port) snprintf: On some very old systems, snprintf is incorrectly implemented and permits buffer overflows; there are also incompatible standard definitions of it. Check it during installation, or use something else. snprintf(buffer, sizeof(buffer), "%i", i + 1); Hits = 440 Lines analyzed = 172823 in 4.00 seconds (49364 lines/second) Physical Source Lines of Code (SLOC) = 109580 Hits@level = [0] 0 [1] 279 [2] 109 [3] 5 [4] 46 [5] 1 Hits@level+ = [0+] 440 [1+] 440 [2+] 161 [3+] 52 [4+] 47 [5+] 1 Hits/KSLOC@level+ = [0+] 4.01533 [1+] 4.01533 [2+] 1.46925 [3+] 0.474539 [4+] 0.42891 [5+] 0.00912575 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code!