Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/btanks-0.9.8083/editor/layer_item.h
Examining data/btanks-0.9.8083/editor/add_tileset_dialog.cpp
Examining data/btanks-0.9.8083/editor/add_object_dialog.h
Examining data/btanks-0.9.8083/editor/morph_dialog.cpp
Examining data/btanks-0.9.8083/editor/add_tileset_dialog.h
Examining data/btanks-0.9.8083/editor/morph_dialog.h
Examining data/btanks-0.9.8083/editor/tilebox_brush.cpp
Examining data/btanks-0.9.8083/editor/base_brush.cpp
Examining data/btanks-0.9.8083/editor/open_map_dialog.cpp
Examining data/btanks-0.9.8083/editor/command.cpp
Examining data/btanks-0.9.8083/editor/tilebox_brush.h
Examining data/btanks-0.9.8083/editor/resize_dialog.cpp
Examining data/btanks-0.9.8083/editor/object_properties.cpp
Examining data/btanks-0.9.8083/editor/open_map_dialog.h
Examining data/btanks-0.9.8083/editor/base_brush.h
Examining data/btanks-0.9.8083/editor/command.h
Examining data/btanks-0.9.8083/editor/resize_dialog.h
Examining data/btanks-0.9.8083/editor/layer_list_dialog.cpp
Examining data/btanks-0.9.8083/editor/editor.cpp
Examining data/btanks-0.9.8083/editor/object_properties.h
Examining data/btanks-0.9.8083/editor/layer_properties.cpp
Examining data/btanks-0.9.8083/editor/tileset_dialog.cpp
Examining data/btanks-0.9.8083/editor/layer_item.cpp
Examining data/btanks-0.9.8083/editor/layer_list_dialog.h
Examining data/btanks-0.9.8083/editor/editor.h
Examining data/btanks-0.9.8083/editor/add_object_dialog.cpp
Examining data/btanks-0.9.8083/editor/layer_properties.h
Examining data/btanks-0.9.8083/editor/tileset_dialog.h
Examining data/btanks-0.9.8083/math/quad_tree.h
Examining data/btanks-0.9.8083/math/unary.h
Examining data/btanks-0.9.8083/math/elastic_bset.h
Examining data/btanks-0.9.8083/math/graph.h
Examining data/btanks-0.9.8083/math/vector.h
Examining data/btanks-0.9.8083/math/binary.h
Examining data/btanks-0.9.8083/math/matrix.h
Examining data/btanks-0.9.8083/math/v2.h
Examining data/btanks-0.9.8083/math/v3.h
Examining data/btanks-0.9.8083/math/range_list.h
Examining data/btanks-0.9.8083/objects/corpse.cpp
Examining data/btanks-0.9.8083/objects/gta_car.cpp
Examining data/btanks-0.9.8083/objects/tank.h
Examining data/btanks-0.9.8083/objects/mortar.cpp
Examining data/btanks-0.9.8083/objects/car.cpp
Examining data/btanks-0.9.8083/objects/poison.cpp
Examining data/btanks-0.9.8083/objects/fakemod.h
Examining data/btanks-0.9.8083/objects/shilka.cpp
Examining data/btanks-0.9.8083/objects/buggy.cpp
Examining data/btanks-0.9.8083/objects/explosion.cpp
Examining data/btanks-0.9.8083/objects/barrier.cpp
Examining data/btanks-0.9.8083/objects/sandworm.cpp
Examining data/btanks-0.9.8083/objects/tank.cpp
Examining data/btanks-0.9.8083/objects/item.cpp
Examining data/btanks-0.9.8083/objects/paratrooper.cpp
Examining data/btanks-0.9.8083/objects/teleport.cpp
Examining data/btanks-0.9.8083/objects/trooper.h
Examining data/btanks-0.9.8083/objects/dirt.cpp
Examining data/btanks-0.9.8083/objects/missile.cpp
Examining data/btanks-0.9.8083/objects/ai_tank.cpp
Examining data/btanks-0.9.8083/objects/ai_machinegunner_player.cpp
Examining data/btanks-0.9.8083/objects/mortar.h
Examining data/btanks-0.9.8083/objects/train.cpp
Examining data/btanks-0.9.8083/objects/bomb.cpp
Examining data/btanks-0.9.8083/objects/shilka_turret.cpp
Examining data/btanks-0.9.8083/objects/boat.cpp
Examining data/btanks-0.9.8083/objects/zombie.cpp
Examining data/btanks-0.9.8083/objects/old_school_destructable.cpp
Examining data/btanks-0.9.8083/objects/heli.h
Examining data/btanks-0.9.8083/objects/civilian.cpp
Examining data/btanks-0.9.8083/objects/item.h
Examining data/btanks-0.9.8083/objects/barrack.cpp
Examining data/btanks-0.9.8083/objects/launcher.h
Examining data/btanks-0.9.8083/objects/raider_heli.cpp
Examining data/btanks-0.9.8083/objects/single_pose.cpp
Examining data/btanks-0.9.8083/objects/destructable_object.h
Examining data/btanks-0.9.8083/objects/ai_mortar.cpp
Examining data/btanks-0.9.8083/objects/damage.cpp
Examining data/btanks-0.9.8083/objects/heli.cpp
Examining data/btanks-0.9.8083/objects/ai_shilka.cpp
Examining data/btanks-0.9.8083/objects/watchtower.cpp
Examining data/btanks-0.9.8083/objects/bullet.cpp
Examining data/btanks-0.9.8083/objects/cow.cpp
Examining data/btanks-0.9.8083/objects/traffic_lights.cpp
Examining data/btanks-0.9.8083/objects/ai_heli.cpp
Examining data/btanks-0.9.8083/objects/kamikaze.cpp
Examining data/btanks-0.9.8083/objects/helicopter.cpp
Examining data/btanks-0.9.8083/objects/machinegunner_on_launcher.cpp
Examining data/btanks-0.9.8083/objects/launcher.cpp
Examining data/btanks-0.9.8083/objects/ai_trooper.cpp
Examining data/btanks-0.9.8083/objects/ctf_flag.cpp
Examining data/btanks-0.9.8083/objects/fakemod.cpp
Examining data/btanks-0.9.8083/objects/ctf_base.cpp
Examining data/btanks-0.9.8083/objects/destructable_object.cpp
Examining data/btanks-0.9.8083/objects/pillbox.cpp
Examining data/btanks-0.9.8083/objects/slime.cpp
Examining data/btanks-0.9.8083/objects/ai_launcher.cpp
Examining data/btanks-0.9.8083/objects/mortar_bullet.cpp
Examining data/btanks-0.9.8083/objects/cannon.cpp
Examining data/btanks-0.9.8083/objects/turrel.cpp
Examining data/btanks-0.9.8083/objects/missiles_in_vehicle.cpp
Examining data/btanks-0.9.8083/objects/explosive.cpp
Examining data/btanks-0.9.8083/objects/shilka.h
Examining data/btanks-0.9.8083/objects/submarine.cpp
Examining data/btanks-0.9.8083/objects/mine.cpp
Examining data/btanks-0.9.8083/objects/tooltip.cpp
Examining data/btanks-0.9.8083/objects/trooper.cpp
Examining data/btanks-0.9.8083/objects/ballistic_missile.cpp
Examining data/btanks-0.9.8083/mrt/socket_set.cpp
Examining data/btanks-0.9.8083/mrt/xml.h
Examining data/btanks-0.9.8083/mrt/udp_socket.h
Examining data/btanks-0.9.8083/mrt/crash.h
Examining data/btanks-0.9.8083/mrt/utf8_utils.cpp
Examining data/btanks-0.9.8083/mrt/scoped_ptr.h
Examining data/btanks-0.9.8083/mrt/chunk.cpp
Examining data/btanks-0.9.8083/mrt/serializable.h
Examining data/btanks-0.9.8083/mrt/dict_serializator.cpp
Examining data/btanks-0.9.8083/mrt/serializator.h
Examining data/btanks-0.9.8083/mrt/file.cpp
Examining data/btanks-0.9.8083/mrt/lang.cpp
Examining data/btanks-0.9.8083/mrt/fs_node.h
Examining data/btanks-0.9.8083/mrt/net_exception.cpp
Examining data/btanks-0.9.8083/mrt/zip_file.h
Examining data/btanks-0.9.8083/mrt/utf8_utils.h
Examining data/btanks-0.9.8083/mrt/chunk.h
Examining data/btanks-0.9.8083/mrt/fs_node.cpp
Examining data/btanks-0.9.8083/mrt/export_base.h
Examining data/btanks-0.9.8083/mrt/ioexception.cpp
Examining data/btanks-0.9.8083/mrt/memory_info.h
Examining data/btanks-0.9.8083/mrt/timespy.cpp
Examining data/btanks-0.9.8083/mrt/tcp_socket.cpp
Examining data/btanks-0.9.8083/mrt/base_directory.cpp
Examining data/btanks-0.9.8083/mrt/exception.cpp
Examining data/btanks-0.9.8083/mrt/zip_dir.cpp
Examining data/btanks-0.9.8083/mrt/zip_file.cpp
Examining data/btanks-0.9.8083/mrt/directory.cpp
Examining data/btanks-0.9.8083/mrt/base_file.cpp
Examining data/btanks-0.9.8083/mrt/net_exception.h
Examining data/btanks-0.9.8083/mrt/calendar.h
Examining data/btanks-0.9.8083/mrt/gzip.h
Examining data/btanks-0.9.8083/mrt/random.cpp
Examining data/btanks-0.9.8083/mrt/memory_info.cpp
Examining data/btanks-0.9.8083/mrt/logger.h
Examining data/btanks-0.9.8083/mrt/sys_socket.cpp
Examining data/btanks-0.9.8083/mrt/fmt.cpp
Examining data/btanks-0.9.8083/mrt/ioexception.h
Examining data/btanks-0.9.8083/mrt/hash_compat.h
Examining data/btanks-0.9.8083/mrt/timespy.h
Examining data/btanks-0.9.8083/mrt/xml.cpp
Examining data/btanks-0.9.8083/mrt/udp_socket.cpp
Examining data/btanks-0.9.8083/mrt/crash.cpp
Examining data/btanks-0.9.8083/mrt/b64.h
Examining data/btanks-0.9.8083/mrt/tcp_socket.h
Examining data/btanks-0.9.8083/mrt/base_directory.h
Examining data/btanks-0.9.8083/mrt/exception.h
Examining data/btanks-0.9.8083/mrt/zip_dir.h
Examining data/btanks-0.9.8083/mrt/serializable.cpp
Examining data/btanks-0.9.8083/mrt/singleton.h
Examining data/btanks-0.9.8083/mrt/socket_set.h
Examining data/btanks-0.9.8083/mrt/serializator.cpp
Examining data/btanks-0.9.8083/mrt/export_mrt.h
Examining data/btanks-0.9.8083/mrt/calendar.cpp
Examining data/btanks-0.9.8083/mrt/directory.h
Examining data/btanks-0.9.8083/mrt/gzip.cpp
Examining data/btanks-0.9.8083/mrt/logger.cpp
Examining data/btanks-0.9.8083/mrt/dict_serializator.h
Examining data/btanks-0.9.8083/mrt/file.h
Examining data/btanks-0.9.8083/mrt/random.h
Examining data/btanks-0.9.8083/mrt/lang.h
Examining data/btanks-0.9.8083/mrt/sys_socket.h
Examining data/btanks-0.9.8083/mrt/b64.cpp
Examining data/btanks-0.9.8083/mrt/fmt.h
Examining data/btanks-0.9.8083/mrt/tclUniData.c
Examining data/btanks-0.9.8083/mrt/base_file.h
Examining data/btanks-0.9.8083/engine/luaxx/state.cpp
Examining data/btanks-0.9.8083/engine/luaxx/lua_hooks.cpp
Examining data/btanks-0.9.8083/engine/luaxx/state.h
Examining data/btanks-0.9.8083/engine/luaxx/lua_hooks.h
Examining data/btanks-0.9.8083/engine/controls/joyplayer.cpp
Examining data/btanks-0.9.8083/engine/controls/default_keys.cpp
Examining data/btanks-0.9.8083/engine/controls/control_method.cpp
Examining data/btanks-0.9.8083/engine/controls/joyplayer.h
Examining data/btanks-0.9.8083/engine/controls/control_method.h
Examining data/btanks-0.9.8083/engine/controls/keyplayer.cpp
Examining data/btanks-0.9.8083/engine/controls/simple_joy_bindings.cpp
Examining data/btanks-0.9.8083/engine/controls/mouse_control.cpp
Examining data/btanks-0.9.8083/engine/controls/keyplayer.h
Examining data/btanks-0.9.8083/engine/controls/simple_joy_bindings.h
Examining data/btanks-0.9.8083/engine/controls/mouse_control.h
Examining data/btanks-0.9.8083/engine/menu/map_desc.cpp
Examining data/btanks-0.9.8083/engine/menu/host_item.h
Examining data/btanks-0.9.8083/engine/menu/host_list.h
Examining data/btanks-0.9.8083/engine/menu/menu.cpp
Examining data/btanks-0.9.8083/engine/menu/label.cpp
Examining data/btanks-0.9.8083/engine/menu/video_control.cpp
Examining data/btanks-0.9.8083/engine/menu/control.cpp
Examining data/btanks-0.9.8083/engine/menu/campaign_menu.h
Examining data/btanks-0.9.8083/engine/menu/prompt.cpp
Examining data/btanks-0.9.8083/engine/menu/join_team.h
Examining data/btanks-0.9.8083/engine/menu/image.cpp
Examining data/btanks-0.9.8083/engine/menu/profiles_menu.h
Examining data/btanks-0.9.8083/engine/menu/checkbox.cpp
Examining data/btanks-0.9.8083/engine/menu/image_view.cpp
Examining data/btanks-0.9.8083/engine/menu/container.h
Examining data/btanks-0.9.8083/engine/menu/main_menu.h
Examining data/btanks-0.9.8083/engine/menu/shop_item.cpp
Examining data/btanks-0.9.8083/engine/menu/shop.h
Examining data/btanks-0.9.8083/engine/menu/slider.h
Examining data/btanks-0.9.8083/engine/menu/options_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/tooltip.cpp
Examining data/btanks-0.9.8083/engine/menu/map_picker.h
Examining data/btanks-0.9.8083/engine/menu/button.h
Examining data/btanks-0.9.8083/engine/menu/control.h
Examining data/btanks-0.9.8083/engine/menu/image.h
Examining data/btanks-0.9.8083/engine/menu/box.cpp
Examining data/btanks-0.9.8083/engine/menu/new_profile_dialog.cpp
Examining data/btanks-0.9.8083/engine/menu/text_control.h
Examining data/btanks-0.9.8083/engine/menu/checkbox.h
Examining data/btanks-0.9.8083/engine/menu/host_item.cpp
Examining data/btanks-0.9.8083/engine/menu/textual.h
Examining data/btanks-0.9.8083/engine/menu/network_status.cpp
Examining data/btanks-0.9.8083/engine/menu/player_picker.h
Examining data/btanks-0.9.8083/engine/menu/menu_config.h
Examining data/btanks-0.9.8083/engine/menu/tooltip.h
Examining data/btanks-0.9.8083/engine/menu/player_name_control.h
Examining data/btanks-0.9.8083/engine/menu/chooser.cpp
Examining data/btanks-0.9.8083/engine/menu/campaign_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/join_team.cpp
Examining data/btanks-0.9.8083/engine/menu/profiles_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/mode_panel.h
Examining data/btanks-0.9.8083/engine/menu/menu.h
Examining data/btanks-0.9.8083/engine/menu/shop.cpp
Examining data/btanks-0.9.8083/engine/menu/medals.h
Examining data/btanks-0.9.8083/engine/menu/video_control.h
Examining data/btanks-0.9.8083/engine/menu/button.cpp
Examining data/btanks-0.9.8083/engine/menu/start_server_menu.h
Examining data/btanks-0.9.8083/engine/menu/image_view.h
Examining data/btanks-0.9.8083/engine/menu/map_details.cpp
Examining data/btanks-0.9.8083/engine/menu/menu_item.cpp
Examining data/btanks-0.9.8083/engine/menu/chat.h
Examining data/btanks-0.9.8083/engine/menu/number_control.cpp
Examining data/btanks-0.9.8083/engine/menu/player_picker.cpp
Examining data/btanks-0.9.8083/engine/menu/menu_config.cpp
Examining data/btanks-0.9.8083/engine/menu/notepad.cpp
Examining data/btanks-0.9.8083/engine/menu/grid.h
Examining data/btanks-0.9.8083/engine/menu/popup_menu.h
Examining data/btanks-0.9.8083/engine/menu/simple_gamepad_setup.h
Examining data/btanks-0.9.8083/engine/menu/new_profile_dialog.h
Examining data/btanks-0.9.8083/engine/menu/box.h
Examining data/btanks-0.9.8083/engine/menu/network_status.h
Examining data/btanks-0.9.8083/engine/menu/mode_panel.cpp
Examining data/btanks-0.9.8083/engine/menu/medals.cpp
Examining data/btanks-0.9.8083/engine/menu/chooser.h
Examining data/btanks-0.9.8083/engine/menu/start_server_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/host_list.cpp
Examining data/btanks-0.9.8083/engine/menu/upper_box.h
Examining data/btanks-0.9.8083/engine/menu/redefine_keys.cpp
Examining data/btanks-0.9.8083/engine/menu/join_server_menu.h
Examining data/btanks-0.9.8083/engine/menu/chat.cpp
Examining data/btanks-0.9.8083/engine/menu/map_desc.h
Examining data/btanks-0.9.8083/engine/menu/container.cpp
Examining data/btanks-0.9.8083/engine/menu/control_picker.h
Examining data/btanks-0.9.8083/engine/menu/slider.cpp
Examining data/btanks-0.9.8083/engine/menu/label.h
Examining data/btanks-0.9.8083/engine/menu/grid.cpp
Examining data/btanks-0.9.8083/engine/menu/prompt.h
Examining data/btanks-0.9.8083/engine/menu/map_details.h
Examining data/btanks-0.9.8083/engine/menu/popup_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/simple_gamepad_setup.cpp
Examining data/btanks-0.9.8083/engine/menu/menu_item.h
Examining data/btanks-0.9.8083/engine/menu/shop_item.h
Examining data/btanks-0.9.8083/engine/menu/number_control.h
Examining data/btanks-0.9.8083/engine/menu/scroll_list.h
Examining data/btanks-0.9.8083/engine/menu/notepad.h
Examining data/btanks-0.9.8083/engine/menu/video_control_disabled.h
Examining data/btanks-0.9.8083/engine/menu/upper_box.cpp
Examining data/btanks-0.9.8083/engine/menu/main_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/join_server_menu.cpp
Examining data/btanks-0.9.8083/engine/menu/map_picker.cpp
Examining data/btanks-0.9.8083/engine/menu/control_picker.cpp
Examining data/btanks-0.9.8083/engine/menu/redefine_keys.h
Examining data/btanks-0.9.8083/engine/menu/options_menu.h
Examining data/btanks-0.9.8083/engine/menu/text_control.cpp
Examining data/btanks-0.9.8083/engine/menu/scroll_list.cpp
Examining data/btanks-0.9.8083/engine/menu/player_name_control.cpp
Examining data/btanks-0.9.8083/engine/menu/video_control_disabled.cpp
Examining data/btanks-0.9.8083/engine/net/client.cpp
Examining data/btanks-0.9.8083/engine/net/scanner.h
Examining data/btanks-0.9.8083/engine/net/connection.cpp
Examining data/btanks-0.9.8083/engine/net/client.h
Examining data/btanks-0.9.8083/engine/net/connection.h
Examining data/btanks-0.9.8083/engine/net/message.cpp
Examining data/btanks-0.9.8083/engine/net/server.cpp
Examining data/btanks-0.9.8083/engine/net/monitor.cpp
Examining data/btanks-0.9.8083/engine/net/message.h
Examining data/btanks-0.9.8083/engine/net/scanner.cpp
Examining data/btanks-0.9.8083/engine/net/server.h
Examining data/btanks-0.9.8083/engine/net/monitor.h
Examining data/btanks-0.9.8083/engine/sl08/sl08.cpp
Examining data/btanks-0.9.8083/engine/sl08/sl08.h
Examining data/btanks-0.9.8083/engine/src/finder.h
Examining data/btanks-0.9.8083/engine/src/animation_model.cpp
Examining data/btanks-0.9.8083/engine/src/window.h
Examining data/btanks-0.9.8083/engine/src/credits.h
Examining data/btanks-0.9.8083/engine/src/game.h
Examining data/btanks-0.9.8083/engine/src/utils.h
Examining data/btanks-0.9.8083/engine/src/var.h
Examining data/btanks-0.9.8083/engine/src/base_object.h
Examining data/btanks-0.9.8083/engine/src/window.cpp
Examining data/btanks-0.9.8083/engine/src/finder.cpp
Examining data/btanks-0.9.8083/engine/src/console.h
Examining data/btanks-0.9.8083/engine/src/game.cpp
Examining data/btanks-0.9.8083/engine/src/config.h
Examining data/btanks-0.9.8083/engine/src/netstats.h
Examining data/btanks-0.9.8083/engine/src/cheater.cpp
Examining data/btanks-0.9.8083/engine/src/special_zone.cpp
Examining data/btanks-0.9.8083/engine/src/xml_parser.cpp
Examining data/btanks-0.9.8083/engine/src/random_pool.h
Examining data/btanks-0.9.8083/engine/src/rotating_object.h
Examining data/btanks-0.9.8083/engine/src/campaign.h
Examining data/btanks-0.9.8083/engine/src/game_monitor.h
Examining data/btanks-0.9.8083/engine/src/nickname.h
Examining data/btanks-0.9.8083/engine/src/team.h
Examining data/btanks-0.9.8083/engine/src/player_state.cpp
Examining data/btanks-0.9.8083/engine/src/world.h
Examining data/btanks-0.9.8083/engine/src/credits.cpp
Examining data/btanks-0.9.8083/engine/src/alarm.h
Examining data/btanks-0.9.8083/engine/src/registrar.cpp
Examining data/btanks-0.9.8083/engine/src/netstats.cpp
Examining data/btanks-0.9.8083/engine/src/config.cpp
Examining data/btanks-0.9.8083/engine/src/object.cpp
Examining data/btanks-0.9.8083/engine/src/rt_config.cpp
Examining data/btanks-0.9.8083/engine/src/rotating_object.cpp
Examining data/btanks-0.9.8083/engine/src/object_grid_old.h
Examining data/btanks-0.9.8083/engine/src/campaign.cpp
Examining data/btanks-0.9.8083/engine/src/object_grid.h
Examining data/btanks-0.9.8083/engine/src/xml_parser.h
Examining data/btanks-0.9.8083/engine/src/profiler.cpp
Examining data/btanks-0.9.8083/engine/src/special_owners.h
Examining data/btanks-0.9.8083/engine/src/i18n.h
Examining data/btanks-0.9.8083/engine/src/nickname.cpp
Examining data/btanks-0.9.8083/engine/src/player_manager.cpp
Examining data/btanks-0.9.8083/engine/src/world.cpp
Examining data/btanks-0.9.8083/engine/src/version.h
Examining data/btanks-0.9.8083/engine/src/logo.cpp
Examining data/btanks-0.9.8083/engine/src/player_state.h
Examining data/btanks-0.9.8083/engine/src/notifying_xml_parser.cpp
Examining data/btanks-0.9.8083/engine/src/registrar.h
Examining data/btanks-0.9.8083/engine/src/vehicle_traits.h
Examining data/btanks-0.9.8083/engine/src/object.h
Examining data/btanks-0.9.8083/engine/src/i18n.cpp
Examining data/btanks-0.9.8083/engine/src/game_type.h
Examining data/btanks-0.9.8083/engine/src/rt_config.h
Examining data/btanks-0.9.8083/engine/src/hud.cpp
Examining data/btanks-0.9.8083/engine/src/zbox.cpp
Examining data/btanks-0.9.8083/engine/src/main.cpp
Examining data/btanks-0.9.8083/engine/src/version.cpp
Examining data/btanks-0.9.8083/engine/src/resource_manager.h
Examining data/btanks-0.9.8083/engine/src/profiler.h
Examining data/btanks-0.9.8083/engine/src/var.cpp
Examining data/btanks-0.9.8083/engine/src/player_manager.h
Examining data/btanks-0.9.8083/engine/src/variants.h
Examining data/btanks-0.9.8083/engine/src/base_object.cpp
Examining data/btanks-0.9.8083/engine/src/console.cpp
Examining data/btanks-0.9.8083/engine/src/player_slot.h
Examining data/btanks-0.9.8083/engine/src/animation_model.h
Examining data/btanks-0.9.8083/engine/src/vehicle_traits.cpp
Examining data/btanks-0.9.8083/engine/src/logo.h
Examining data/btanks-0.9.8083/engine/src/notifying_xml_parser.h
Examining data/btanks-0.9.8083/engine/src/special_zone.h
Examining data/btanks-0.9.8083/engine/src/cheater.h
Examining data/btanks-0.9.8083/engine/src/game_monitor.cpp
Examining data/btanks-0.9.8083/engine/src/resource_manager.cpp
Examining data/btanks-0.9.8083/engine/src/object_common.h
Examining data/btanks-0.9.8083/engine/src/hud.h
Examining data/btanks-0.9.8083/engine/src/team.cpp
Examining data/btanks-0.9.8083/engine/src/variants.cpp
Examining data/btanks-0.9.8083/engine/src/zbox.h
Examining data/btanks-0.9.8083/engine/src/export_btanks.h
Examining data/btanks-0.9.8083/engine/src/alarm.cpp
Examining data/btanks-0.9.8083/engine/src/player_slot.cpp
Examining data/btanks-0.9.8083/engine/sound/mixer.cpp
Examining data/btanks-0.9.8083/engine/sound/ogg_stream.cpp
Examining data/btanks-0.9.8083/engine/sound/ogg_ex.cpp
Examining data/btanks-0.9.8083/engine/sound/mixer.h
Examining data/btanks-0.9.8083/engine/sound/ogg_stream.h
Examining data/btanks-0.9.8083/engine/sound/ogg_ex.h
Examining data/btanks-0.9.8083/engine/tmx/tileset.h
Examining data/btanks-0.9.8083/engine/tmx/generator_object.h
Examining data/btanks-0.9.8083/engine/tmx/layer.h
Examining data/btanks-0.9.8083/engine/tmx/map.h
Examining data/btanks-0.9.8083/engine/tmx/tileset_list.cpp
Examining data/btanks-0.9.8083/engine/tmx/generator.cpp
Examining data/btanks-0.9.8083/engine/tmx/tileset.cpp
Examining data/btanks-0.9.8083/engine/tmx/tileset_list.h
Examining data/btanks-0.9.8083/engine/tmx/generator.h
Examining data/btanks-0.9.8083/engine/tmx/generator_object.cpp
Examining data/btanks-0.9.8083/engine/tmx/layer.cpp
Examining data/btanks-0.9.8083/engine/tmx/map.cpp
Examining data/btanks-0.9.8083/engine/ai/synchronizable.h
Examining data/btanks-0.9.8083/engine/ai/trooper.h
Examining data/btanks-0.9.8083/engine/ai/waypoints.h
Examining data/btanks-0.9.8083/engine/ai/creator.h
Examining data/btanks-0.9.8083/engine/ai/traits.cpp
Examining data/btanks-0.9.8083/engine/ai/targets.cpp
Examining data/btanks-0.9.8083/engine/ai/base.cpp
Examining data/btanks-0.9.8083/engine/ai/traits.h
Examining data/btanks-0.9.8083/engine/ai/targets.h
Examining data/btanks-0.9.8083/engine/ai/base.h
Examining data/btanks-0.9.8083/engine/ai/rush.cpp
Examining data/btanks-0.9.8083/engine/ai/herd.cpp
Examining data/btanks-0.9.8083/engine/ai/buratino.cpp
Examining data/btanks-0.9.8083/engine/ai/old_school.cpp
Examining data/btanks-0.9.8083/engine/ai/rush.h
Examining data/btanks-0.9.8083/engine/ai/herd.h
Examining data/btanks-0.9.8083/engine/ai/buratino.h
Examining data/btanks-0.9.8083/engine/ai/old_school.h
Examining data/btanks-0.9.8083/engine/ai/trooper.cpp
Examining data/btanks-0.9.8083/engine/ai/waypoints.cpp
Examining data/btanks-0.9.8083/sdlx/gfx/SDL_rotozoom.h
Examining data/btanks-0.9.8083/sdlx/gfx/SDL_rotozoom.c
Examining data/btanks-0.9.8083/sdlx/joystick.h
Examining data/btanks-0.9.8083/sdlx/mutex.h
Examining data/btanks-0.9.8083/sdlx/thread.cpp
Examining data/btanks-0.9.8083/sdlx/SDL_win32_main.c
Examining data/btanks-0.9.8083/sdlx/font.h
Examining data/btanks-0.9.8083/sdlx/cursor.cpp
Examining data/btanks-0.9.8083/sdlx/color.cpp
Examining data/btanks-0.9.8083/sdlx/export_sdlx.h
Examining data/btanks-0.9.8083/sdlx/timer.cpp
Examining data/btanks-0.9.8083/sdlx/sdl_ex.h
Examining data/btanks-0.9.8083/sdlx/c_map.h
Examining data/btanks-0.9.8083/sdlx/module.cpp
Examining data/btanks-0.9.8083/sdlx/file_rw.cpp
Examining data/btanks-0.9.8083/sdlx/semaphore.h
Examining data/btanks-0.9.8083/sdlx/surface.cpp
Examining data/btanks-0.9.8083/sdlx/system.h
Examining data/btanks-0.9.8083/sdlx/SDL_main.h
Examining data/btanks-0.9.8083/sdlx/joystick.cpp
Examining data/btanks-0.9.8083/sdlx/rect.h
Examining data/btanks-0.9.8083/sdlx/mutex.cpp
Examining data/btanks-0.9.8083/sdlx/ttf.h
Examining data/btanks-0.9.8083/sdlx/font.cpp
Examining data/btanks-0.9.8083/sdlx/thread.h
Examining data/btanks-0.9.8083/sdlx/sdl_ex.cpp
Examining data/btanks-0.9.8083/sdlx/sdlx.h
Examining data/btanks-0.9.8083/sdlx/c_map.cpp
Examining data/btanks-0.9.8083/sdlx/c_test.cpp
Examining data/btanks-0.9.8083/sdlx/cursor.h
Examining data/btanks-0.9.8083/sdlx/wrappers/d3dsdl.h
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL.c
Examining data/btanks-0.9.8083/sdlx/wrappers/d3dsdl8.cpp
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.6.c
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.7.c
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.8.c
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL.h
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.6.h
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.7.h
Examining data/btanks-0.9.8083/sdlx/wrappers/d3dsdl.cpp
Examining data/btanks-0.9.8083/sdlx/wrappers/glSDL-0.8.h
Examining data/btanks-0.9.8083/sdlx/semaphore.cpp
Examining data/btanks-0.9.8083/sdlx/color.h
Examining data/btanks-0.9.8083/sdlx/system.cpp
Examining data/btanks-0.9.8083/sdlx/timer.h
Examining data/btanks-0.9.8083/sdlx/module.h
Examining data/btanks-0.9.8083/sdlx/file_rw.h
Examining data/btanks-0.9.8083/sdlx/surface.h
Examining data/btanks-0.9.8083/sdlx/ttf.cpp
Examining data/btanks-0.9.8083/clunk/clunk_assert.h
Examining data/btanks-0.9.8083/clunk/source.h
Examining data/btanks-0.9.8083/clunk/clunk_ex.cpp
Examining data/btanks-0.9.8083/clunk/buffer.cpp
Examining data/btanks-0.9.8083/clunk/object.h
Examining data/btanks-0.9.8083/clunk/distance_model.h
Examining data/btanks-0.9.8083/clunk/test.cpp
Examining data/btanks-0.9.8083/clunk/sdl_ex.h
Examining data/btanks-0.9.8083/clunk/logger.h
Examining data/btanks-0.9.8083/clunk/context.cpp
Examining data/btanks-0.9.8083/clunk/locker.h
Examining data/btanks-0.9.8083/clunk/sample.h
Examining data/btanks-0.9.8083/clunk/kemar.c
Examining data/btanks-0.9.8083/clunk/mdct_context.h
Examining data/btanks-0.9.8083/clunk/stream.h
Examining data/btanks-0.9.8083/clunk/sse_fft_context.h
Examining data/btanks-0.9.8083/clunk/kemar.h
Examining data/btanks-0.9.8083/clunk/object.cpp
Examining data/btanks-0.9.8083/clunk/distance_model.cpp
Examining data/btanks-0.9.8083/clunk/clunk_ex.h
Examining data/btanks-0.9.8083/clunk/buffer.h
Examining data/btanks-0.9.8083/clunk/sdl_ex.cpp
Examining data/btanks-0.9.8083/clunk/logger.cpp
Examining data/btanks-0.9.8083/clunk/contrib/ogg_stream.cpp
Examining data/btanks-0.9.8083/clunk/contrib/ogg_stream.h
Examining data/btanks-0.9.8083/clunk/sample.cpp
Examining data/btanks-0.9.8083/clunk/clunk.h
Examining data/btanks-0.9.8083/clunk/export_clunk.h
Examining data/btanks-0.9.8083/clunk/fft_context.h
Examining data/btanks-0.9.8083/clunk/context.h
Examining data/btanks-0.9.8083/clunk/stream.cpp
Examining data/btanks-0.9.8083/clunk/v3.h
Examining data/btanks-0.9.8083/clunk/sse_fft_context.cpp
Examining data/btanks-0.9.8083/clunk/source.cpp

FINAL RESULTS:

data/btanks-0.9.8083/clunk/clunk_ex.cpp:25:13:  [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 (CWE-134). Use
  a constant for the format specification.
#    ifndef snprintf
data/btanks-0.9.8083/clunk/clunk_ex.cpp:26:17:  [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 (CWE-134). Use
  a constant for the format specification.
#        define snprintf _snprintf
data/btanks-0.9.8083/clunk/clunk_ex.cpp:26:26:  [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 (CWE-134). Use
  a constant for the format specification.
#        define snprintf _snprintf
data/btanks-0.9.8083/clunk/logger.cpp:27:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/btanks-0.9.8083/clunk/logger.cpp:34:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/btanks-0.9.8083/clunk/logger.cpp:44:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   	int r = vsnprintf (static_buf, FORMAT_BUFFER_SIZE - 1, fmt, ap);
data/btanks-0.9.8083/clunk/logger.cpp:57:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    	int r = vsnprintf ((char *)buf.get_ptr(), size - 1, fmt, ap);
data/btanks-0.9.8083/clunk/logger.h:31:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void CLUNKAPI log_debug(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/btanks-0.9.8083/clunk/logger.h:32:87:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	const std::string CLUNKAPI format_string(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/btanks-0.9.8083/engine/luaxx/lua_hooks.cpp:377:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system) {
data/btanks-0.9.8083/mrt/exception.cpp:23:15:  [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 (CWE-134). Use
  a constant for the format specification.
#	if !defined snprintf
data/btanks-0.9.8083/mrt/exception.cpp:24:11:  [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 (CWE-134). Use
  a constant for the format specification.
#		define snprintf _snprintf
data/btanks-0.9.8083/mrt/exception.cpp:24:20:  [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 (CWE-134). Use
  a constant for the format specification.
#		define snprintf _snprintf
data/btanks-0.9.8083/mrt/fmt.cpp:28:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#	if !defined vsnprintf
data/btanks-0.9.8083/mrt/fmt.cpp:29:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#		define vsnprintf _vsnprintf
data/btanks-0.9.8083/mrt/fmt.cpp:53:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   	int r = vsnprintf (static_buf, FORMAT_BUFFER_SIZE - 1, fmt, ap);
data/btanks-0.9.8083/mrt/fmt.cpp:66:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    	int r = vsnprintf ((char *)buf.get_ptr(), size - 1, fmt, ap);
data/btanks-0.9.8083/mrt/fmt.h:33:84:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
const std::string MRTAPI format_string(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/btanks-0.9.8083/mrt/serializator.cpp:24:10:  [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 (CWE-134). Use
  a constant for the format specification.
#	ifndef snprintf
data/btanks-0.9.8083/mrt/serializator.cpp:25:11:  [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 (CWE-134). Use
  a constant for the format specification.
#		define snprintf _snprintf
data/btanks-0.9.8083/mrt/serializator.cpp:25:20:  [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 (CWE-134). Use
  a constant for the format specification.
#		define snprintf _snprintf
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:16:27:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
# define _getcwd(str,len)	wcscpy(str,TEXT(""))
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:333:2:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	wcscpy (bufp, TEXT("\""));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:335:2:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	wcscpy (bufp+wcslen(bufp), TEXT("\" "));
data/btanks-0.9.8083/sdlx/system.cpp:201:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void System::init(int system) {
data/btanks-0.9.8083/sdlx/system.cpp:202:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	LOG_DEBUG(("calling SDL_init('%08x')", (unsigned)system));
data/btanks-0.9.8083/sdlx/system.cpp:203:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (SDL_Init(system) == -1) 
data/btanks-0.9.8083/sdlx/system.h:27:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		static void init(int system);
data/btanks-0.9.8083/engine/ai/old_school.cpp:57:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int action = mrt::random(3);
data/btanks-0.9.8083/engine/ai/old_school.cpp:62:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int dir = mrt::random(dirs);
data/btanks-0.9.8083/engine/ai/old_school.cpp:66:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int dir = mrt::random(dirs);
data/btanks-0.9.8083/engine/ai/rush.cpp:55:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int dir = mrt::random(dirs);
data/btanks-0.9.8083/engine/ai/rush.cpp:67:40:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		len = 1 + len / 2 + (len % 2) + mrt::random(len / 2);
data/btanks-0.9.8083/engine/ai/traits.cpp:43:32:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	const float v = hint1 + (mrt::random(1000000) / 1000000.0) * hint2;
data/btanks-0.9.8083/engine/luaxx/lua_hooks.cpp:98:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int idx = mrt::random(n);
data/btanks-0.9.8083/engine/luaxx/lua_hooks.cpp:991:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	lua_pushinteger(L, mrt::random(n));
data/btanks-0.9.8083/engine/menu/map_picker.cpp:275:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			object = objects[mrt::random(sizeof(objects) / sizeof(objects[0]))];
data/btanks-0.9.8083/engine/menu/menu_config.cpp:86:36:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		slots[0].vehicle = vehicles[mrt::random(3)];
data/btanks-0.9.8083/engine/menu/menu_config.cpp:88:36:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		slots[1].vehicle = vehicles[mrt::random(3)];
data/btanks-0.9.8083/engine/menu/menu_config.cpp:92:36:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		slots[0].vehicle = vehicles[mrt::random(3)];
data/btanks-0.9.8083/engine/sound/mixer.cpp:187:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int p = mrt::random(n);
data/btanks-0.9.8083/engine/sound/mixer.cpp:242:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int n = mrt::random(samples.size());
data/btanks-0.9.8083/engine/sound/mixer.cpp:288:33:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			pitch += (double)sdp * (mrt::random(2000) - 1000) / 1000.0;
data/btanks-0.9.8083/engine/src/game.cpp:600:40:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		std::string vehicle = c_vehicle[mrt::random(3)], animation;
data/btanks-0.9.8083/engine/src/game.cpp:1033:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int i = mrt::random(tips_available.size());
data/btanks-0.9.8083/engine/src/game_monitor.cpp:637:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int wp = mrt::random(_waypoint_edges.size() * 2);
data/btanks-0.9.8083/engine/src/hud.cpp:717:54:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		_splash = ResourceManager->load_surface(files[mrt::random(files.size())], w, 0);
data/btanks-0.9.8083/engine/src/nickname.cpp:7:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define RANDOM_ITEM(q) ((q)[mrt::random((q).size())])
data/btanks-0.9.8083/engine/src/nickname.cpp:18:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int n = mrt::random(3);
data/btanks-0.9.8083/engine/src/nickname.cpp:20:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bool has_prefix = mrt::random(100) >= 80;
data/btanks-0.9.8083/engine/src/nickname.cpp:21:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bool has_suffix = mrt::random(100) < 80;
data/btanks-0.9.8083/engine/src/player_manager.cpp:1547:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int idx = mrt::random(keys.size());
data/btanks-0.9.8083/engine/src/player_slot.cpp:461:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int idx = mrt::random(n);
data/btanks-0.9.8083/engine/src/player_slot.cpp:581:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				animation = colors[mrt::random(4)];
data/btanks-0.9.8083/engine/src/random_pool.h:21:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int idx = mrt::random(pool.size());
data/btanks-0.9.8083/engine/src/world.cpp:659:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int n = mrt::random(2);
data/btanks-0.9.8083/engine/src/world.cpp:660:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int k1 = mrt::random(2), k2 = mrt::random(2);
data/btanks-0.9.8083/engine/src/world.cpp:660:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int k1 = mrt::random(2), k2 = mrt::random(2);
data/btanks-0.9.8083/engine/src/world.cpp:1534:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			bool win = mrt::random(sum_w) < 2 * w;
data/btanks-0.9.8083/engine/tmx/generator.cpp:117:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random) {
data/btanks-0.9.8083/engine/tmx/generator.cpp:118:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				if (percentage < mrt::random(100) + 1)
data/btanks-0.9.8083/engine/tmx/layer.cpp:78:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int dir = mrt::random(dirs);
data/btanks-0.9.8083/engine/tmx/tileset.cpp:53:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int n = mrt::random(_objects.size());
data/btanks-0.9.8083/mrt/crash.cpp:38:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("MRT_NO_CRASH_HANDLER") != NULL)
data/btanks-0.9.8083/mrt/directory.cpp:191:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *home_env = getenv("HOME");
data/btanks-0.9.8083/mrt/lang.cpp:148:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char * lang_env = getenv("LANG");
data/btanks-0.9.8083/mrt/random.cpp:61:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
const int mrt::random(const unsigned max) {
data/btanks-0.9.8083/mrt/random.h:28:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	const int MRTAPI random(const unsigned max);
data/btanks-0.9.8083/mrt/random.h:31:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			value += (T)(error * random(20000) / 10000.0 - error);
data/btanks-0.9.8083/objects/ai_heli.cpp:74:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		next_target.x = (int)size.x / 2 + mrt::random(map_size.x - (int)size.x);
data/btanks-0.9.8083/objects/ai_heli.cpp:75:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		next_target.y = (int)size.y / 2 + mrt::random(map_size.y - (int)size.y);
data/btanks-0.9.8083/objects/bullet.cpp:212:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int sign = (mrt::random(103) % 3) - 1;
data/btanks-0.9.8083/objects/bullet.cpp:213:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int d = sign * (mrt::random(dirs/4 - 1) + 1) ;
data/btanks-0.9.8083/objects/cow.cpp:120:36:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		dir = (dirs + dir + dirs / (mrt::random(2)?4:-4)) % dirs;
data/btanks-0.9.8083/objects/explosion.cpp:151:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				int p = mrt::random(1000);
data/btanks-0.9.8083/objects/heli.cpp:88:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				bool gay = mrt::random(6) == 3;
data/btanks-0.9.8083/objects/heli.cpp:91:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				bool gay = mrt::random(6) == 4;
data/btanks-0.9.8083/objects/heli.cpp:94:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				bool gay = mrt::random(6) == 2;
data/btanks-0.9.8083/objects/helicopter.cpp:121:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				int pt = mrt::random(6);
data/btanks-0.9.8083/objects/helicopter.cpp:140:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		_next_target.x = mrt::random(size.x);
data/btanks-0.9.8083/objects/helicopter.cpp:141:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		_next_target.y = mrt::random(size.y);
data/btanks-0.9.8083/objects/old_school_destructable.cpp:113:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		dpos.x = mrt::random((int)size.x) - size.x / 2;
data/btanks-0.9.8083/objects/old_school_destructable.cpp:114:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		dpos.y = mrt::random((int)size.y) - size.y / 2;
data/btanks-0.9.8083/objects/sandworm.cpp:177:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int n = mrt::random(coords.size());
data/btanks-0.9.8083/objects/submarine.cpp:59:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	_wakeup.set(mrt::random(5) + 5);
data/btanks-0.9.8083/objects/submarine.cpp:80:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		_wakeup.set(mrt::random(5) + 5);
data/btanks-0.9.8083/objects/submarine.cpp:90:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int n = mrt::random(3) + 3;
data/btanks-0.9.8083/objects/teleport.cpp:114:61:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		Teleport *dst = teleports[(teleports.size() == 1)?0: mrt::random(teleports.size())];
data/btanks-0.9.8083/objects/tooltip.cpp:46:30:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		Object::set_direction(mrt::random(n));
data/btanks-0.9.8083/objects/tooltip.cpp:53:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			Object::set_direction(mrt::random(get_directions_number()));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:261:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	handle = LoadLibrary(TEXT("DDRAW.DLL"));
data/btanks-0.9.8083/clunk/buffer.cpp:48:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, c.ptr, c.size);
data/btanks-0.9.8083/clunk/buffer.cpp:77:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, p, s);
data/btanks-0.9.8083/clunk/buffer.cpp:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, p, s);
data/btanks-0.9.8083/clunk/buffer.cpp:104:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) ptr + s1, other.ptr, s2);
data/btanks-0.9.8083/clunk/buffer.cpp:113:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) ptr + s, data, data_size);
data/btanks-0.9.8083/clunk/clunk_assert.h:8:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char CLUNK_JOIN(assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
data/btanks-0.9.8083/clunk/clunk_ex.cpp:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/btanks-0.9.8083/clunk/clunk_ex.cpp:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/btanks-0.9.8083/clunk/context.cpp:232:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fdump = fopen(file.c_str(), "wb");
data/btanks-0.9.8083/clunk/context.cpp:384:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cvt.buf, src.get_ptr(), src.get_size());
data/btanks-0.9.8083/clunk/contrib/ogg_stream.cpp:42:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	_file = fopen(fname.c_str(), "rb");
data/btanks-0.9.8083/clunk/logger.cpp:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char static_buf[FORMAT_BUFFER_SIZE];
data/btanks-0.9.8083/editor/add_object_dialog.cpp:173:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file.open(fname, "wb");
data/btanks-0.9.8083/editor/editor.cpp:641:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f.open(fname, "wb");
data/btanks-0.9.8083/editor/open_map_dialog.cpp:100:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file.open(mrt::format_string("%s/maps/%s.tmx", base.c_str(), map.c_str()), "wb");
data/btanks-0.9.8083/engine/controls/simple_joy_bindings.cpp:33:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int i = atoi(str.c_str() + 2);
data/btanks-0.9.8083/engine/controls/simple_joy_bindings.cpp:46:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int i = atoi(str.c_str() + 1);
data/btanks-0.9.8083/engine/controls/simple_joy_bindings.cpp:63:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int i = atoi(str.c_str() + 1);
data/btanks-0.9.8083/engine/controls/simple_joy_bindings.cpp:67:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int j = atoi(str.c_str() + pos);
data/btanks-0.9.8083/engine/luaxx/state.h:19:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open();
data/btanks-0.9.8083/engine/menu/mode_panel.cpp:94:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		Config->set("multiplayer.teams", (int)atoi(_teams->getValue().c_str()));
data/btanks-0.9.8083/engine/menu/options_menu.cpp:388:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		w = atoi(res[0].c_str());
data/btanks-0.9.8083/engine/menu/options_menu.cpp:389:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		h = atoi(res[1].c_str());
data/btanks-0.9.8083/engine/menu/simple_gamepad_setup.cpp:66:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	joy.open(idx);
data/btanks-0.9.8083/engine/menu/text_control.cpp:60:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(value.c_str());
data/btanks-0.9.8083/engine/net/monitor.cpp:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, &nsize, 4);
data/btanks-0.9.8083/engine/net/monitor.cpp:190:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((unsigned char *)t->data.get_ptr() + 5, data.get_ptr(), size);
data/btanks-0.9.8083/engine/net/monitor.cpp:210:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, &nsize, 4);
data/btanks-0.9.8083/engine/net/monitor.cpp:213:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr + 5, data.get_ptr(), size);
data/btanks-0.9.8083/engine/net/monitor.cpp:407:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char buf[1500]; //fixme
data/btanks-0.9.8083/engine/net/scanner.cpp:62:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ac[256];
data/btanks-0.9.8083/engine/net/scanner.cpp:72:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        memcpy(&addr, he->h_addr_list[i], sizeof(struct in_addr));
data/btanks-0.9.8083/engine/net/scanner.cpp:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[1500];
data/btanks-0.9.8083/engine/net/scanner.cpp:137:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char buf[1500]; //fixme ?
data/btanks-0.9.8083/engine/net/server.cpp:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[3];
data/btanks-0.9.8083/engine/src/campaign.cpp:98:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		item.price = attr["price"].empty()?0:atoi(attr["price"].c_str());
data/btanks-0.9.8083/engine/src/campaign.cpp:99:54:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		item.max_amount = attr["maximum-amount"].empty()?0:atoi(attr["maximum-amount"].c_str());
data/btanks-0.9.8083/engine/src/cheater.h:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _buf[16];
data/btanks-0.9.8083/engine/src/config.cpp:65:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.open(_file, "wt");
data/btanks-0.9.8083/engine/src/finder.cpp:51:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f->open(file, mode);
data/btanks-0.9.8083/engine/src/finder.cpp:97:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dir.open(RESOURCES_DIR);
data/btanks-0.9.8083/engine/src/finder.cpp:99:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dir.open(".");
data/btanks-0.9.8083/engine/src/finder.cpp:298:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			dir.open(base + "/" + root);
data/btanks-0.9.8083/engine/src/game.cpp:375:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strncmp(argv[i], "--ai=", 5) == 0) { spawn_ai = atoi(argv[i] + 5); }
data/btanks-0.9.8083/engine/src/game.cpp:378:68:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strncmp(argv[i], "--port=", 7) == 0) { RTConfig->port = atoi(argv[i] + 7); if (RTConfig->port <= 0) throw_ex(("invalid port specified: %d", RTConfig->port)); }
data/btanks-0.9.8083/engine/src/game.cpp:452:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				j.open(i);
data/btanks-0.9.8083/engine/src/game.cpp:1123:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int idx = atoi(param.c_str());
data/btanks-0.9.8083/engine/src/game.cpp:1135:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int idx = atoi(p[0].c_str());
data/btanks-0.9.8083/engine/src/game.cpp:1139:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int z = atoi(p[1].c_str());
data/btanks-0.9.8083/engine/src/game.cpp:1145:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int idx = atoi(param.c_str());
data/btanks-0.9.8083/engine/src/game_monitor.cpp:128:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int limit = atoi(name.substr(pos1, pos2 - pos1 + 1).c_str());
data/btanks-0.9.8083/engine/src/game_monitor.cpp:841:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				dir = atoi(i->second.substr(dp + 1).c_str());
data/btanks-0.9.8083/engine/src/game_monitor.cpp:1049:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int i = atoi(suffix.c_str() + 1);
data/btanks-0.9.8083/engine/src/player_manager.cpp:283:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sync_id = atoi(message.get("sync").c_str());
data/btanks-0.9.8083/engine/src/player_slot.cpp:571:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char * colors[4] = {"red", "green", "blue", "yellow"};
data/btanks-0.9.8083/engine/src/resource_manager.cpp:120:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_tw = atol(attr["tile_width"].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:123:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_th = atol(attr["tile_height"].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:139:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		long tw = atol(attr["tile_width"].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:140:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		long th = atol(attr["tile_height"].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:141:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		long sz = atol(attr["size"].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:210:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int z = (!attr["z"].empty())?atoi(attr["z"].c_str()) : -100001;
data/btanks-0.9.8083/engine/src/resource_manager.cpp:246:29:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				object->second->speed = atol(value.c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:256:51:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				object->second->max_hp = object->second->hp = atol(value.c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:262:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				object->second->set_z(atoi(value.c_str()));
data/btanks-0.9.8083/engine/src/resource_manager.cpp:296:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned int frame = atoi(frames[i].c_str());
data/btanks-0.9.8083/engine/src/resource_manager.cpp:504:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f.open(i->first + "/preload.xml", "wb");
data/btanks-0.9.8083/engine/src/var.cpp:99:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(str.c_str());
data/btanks-0.9.8083/engine/tmx/generator.cpp:84:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		percentage = atoi(s.c_str());
data/btanks-0.9.8083/engine/tmx/generator.cpp:103:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int px = atoi(sizes[0].c_str());
data/btanks-0.9.8083/engine/tmx/generator.cpp:104:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int py = atoi(sizes[1].c_str());
data/btanks-0.9.8083/engine/tmx/generator_object.cpp:24:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tiles.push_back(atoi(ts[i].c_str()));
data/btanks-0.9.8083/engine/tmx/generator_object.cpp:76:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int tid = atoi(numbers[i].c_str()) + 1;
data/btanks-0.9.8083/engine/tmx/generator_object.cpp:89:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int size = atoi(get(attrs, "size").c_str());
data/btanks-0.9.8083/engine/tmx/generator_object.cpp:95:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int w = atoi(get(attrs, "width").c_str());
data/btanks-0.9.8083/engine/tmx/generator_object.cpp:98:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int h = atoi(get(attrs, "height").c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:641:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_w = atol(e.attrs["width"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:642:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_h = atol(e.attrs["height"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:643:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_tw = atol(e.attrs["tilewidth"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:644:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_th = atol(e.attrs["tileheight"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:660:15:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_firstgid = atol(e.attrs["firstgid"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:691:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		unsigned int id = atol(e.attrs["id"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:771:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int w = atol(e.attrs["width"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:772:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int h = atol(e.attrs["height"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:773:65:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int z = (_properties.find("z") == _properties.end())?++_lastz:atol(_properties["z"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:775:80:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int impassability = (_properties.find("impassability") != _properties.end())?atoi(_properties["impassability"].c_str()):-1;
data/btanks-0.9.8083/engine/tmx/map.cpp:779:58:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int hp = (_properties.find("hp") != _properties.end())?atoi(_properties["hp"].c_str()):0;
data/btanks-0.9.8083/engine/tmx/map.cpp:817:48:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int visible = (!e.attrs["visible"].empty())?atoi(e.attrs["visible"].c_str()):-1;
data/btanks-0.9.8083/engine/tmx/map.cpp:835:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int fs = atoi(a_frame_size.c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:836:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int fn = atoi(a_frames.c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:1482:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			z = atoi(l->second->properties["z"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:1513:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			z = atoi(l->second->properties["z"].c_str());
data/btanks-0.9.8083/engine/tmx/map.cpp:1553:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			z = atoi(l->second->properties["z"].c_str());
data/btanks-0.9.8083/math/elastic_bset.h:29:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, other.data, size * sizeof(key_type));
data/btanks-0.9.8083/mrt/base_directory.h:29:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &path) = 0;
data/btanks-0.9.8083/mrt/base_file.cpp:48:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[2];
data/btanks-0.9.8083/mrt/base_file.cpp:58:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4];
data/btanks-0.9.8083/mrt/base_file.h:39:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &fname, const std::string &mode) = 0;
data/btanks-0.9.8083/mrt/chunk.cpp:50:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, c.ptr, c.size);
data/btanks-0.9.8083/mrt/chunk.cpp:90:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, p, s);
data/btanks-0.9.8083/mrt/chunk.cpp:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, p, s);
data/btanks-0.9.8083/mrt/chunk.cpp:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) ptr + s1, other.ptr, s2);
data/btanks-0.9.8083/mrt/chunk.cpp:126:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) ptr + s, data, data_size);
data/btanks-0.9.8083/mrt/directory.cpp:41:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void Directory::open(const std::string &path) {
data/btanks-0.9.8083/mrt/directory.cpp:102:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void Directory::open(const std::string &path) {
data/btanks-0.9.8083/mrt/directory.cpp:182:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR path[MAX_PATH];
data/btanks-0.9.8083/mrt/directory.h:37:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &path);
data/btanks-0.9.8083/mrt/exception.cpp:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/btanks-0.9.8083/mrt/file.cpp:33:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void File::open(const std::string &fname, const std::string &mode) {
data/btanks-0.9.8083/mrt/file.cpp:34:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	_f = fopen(fname.c_str(), mode.c_str());
data/btanks-0.9.8083/mrt/file.h:39:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &fname, const std::string &mode);
data/btanks-0.9.8083/mrt/fmt.cpp:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char static_buf[FORMAT_BUFFER_SIZE];
data/btanks-0.9.8083/mrt/ioexception.cpp:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/btanks-0.9.8083/mrt/logger.cpp:40:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(file.c_str(), "wt");	
data/btanks-0.9.8083/mrt/serializator.cpp:87:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[sizeof(unsigned long)];
data/btanks-0.9.8083/mrt/serializator.cpp:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, buf, len);
data/btanks-0.9.8083/mrt/serializator.cpp:141:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, str.c_str(), size);
data/btanks-0.9.8083/mrt/serializator.cpp:152:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, c.get_ptr(), size);
data/btanks-0.9.8083/mrt/serializator.cpp:162:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, raw, size);
data/btanks-0.9.8083/mrt/serializator.cpp:191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/btanks-0.9.8083/mrt/serializator.cpp:192:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char num[8];
data/btanks-0.9.8083/mrt/serializator.cpp:298:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[32];
data/btanks-0.9.8083/mrt/serializator.cpp:344:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(raw, ptr, size);
data/btanks-0.9.8083/mrt/serializator.cpp:360:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c.get_ptr(), ptr, size);
data/btanks-0.9.8083/mrt/sys_socket.cpp:65:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(ipport[1].c_str());
data/btanks-0.9.8083/mrt/utf8_utils.cpp:30:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char totalBytes[256] = {
data/btanks-0.9.8083/mrt/xml.cpp:70:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.open(fname, "rt");
data/btanks-0.9.8083/mrt/xml.cpp:90:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[16384];
data/btanks-0.9.8083/mrt/xml.cpp:110:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.open(fname, "rt");
data/btanks-0.9.8083/mrt/xml.cpp:127:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[16384];
data/btanks-0.9.8083/mrt/xml.h:44:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			return i != end()? (int)atoi(i->second.c_str()): defv;
data/btanks-0.9.8083/mrt/zip_dir.cpp:145:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	archive.open(zip, "rb");
data/btanks-0.9.8083/mrt/zip_dir.cpp:177:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void ZipDirectory::open(const std::string &path_) {
data/btanks-0.9.8083/mrt/zip_dir.cpp:203:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE * f = fopen(fname.c_str(), "rb");
data/btanks-0.9.8083/mrt/zip_dir.h:24:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &path);
data/btanks-0.9.8083/mrt/zip_file.cpp:17:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void ZipFile::open(const std::string &fname, const std::string &mode) {
data/btanks-0.9.8083/mrt/zip_file.h:13:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual void open(const std::string &fname, const std::string &mode);
data/btanks-0.9.8083/objects/trooper.cpp:132:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static const char *colors[4] = {"red-", "green-", "yellow-", "blue-"};
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:19:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define fopen		_wfopen
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:43:10:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static wchar_t stdoutPath[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:44:10:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static wchar_t stderrPath[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:46:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char stdoutPath[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:47:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char stderrPath[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:147:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(stdoutPath, TEXT("rb"));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:157:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(stderrPath, TEXT("rb"));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:242:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t path[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAX_PATH];
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:286:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		newfp = fopen(stdoutPath, TEXT("w"));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:288:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			newfp = fopen(TEXT("nul"), TEXT("w"));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:311:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		newfp = fopen(stderrPath, TEXT("w"));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:313:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			newfp = fopen(TEXT("nul"), TEXT("w"));
data/btanks-0.9.8083/sdlx/c_map.cpp:313:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.open(fname, "wb");
data/btanks-0.9.8083/sdlx/font.cpp:143:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.open(file, "rb");
data/btanks-0.9.8083/sdlx/joystick.cpp:49:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void Joystick::open(const int idx) {
data/btanks-0.9.8083/sdlx/joystick.h:35:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const int idx);
data/btanks-0.9.8083/sdlx/surface.cpp:378:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(temp, bm.bmBits, bm.bmWidthBytes*bm.bmHeight);
data/btanks-0.9.8083/sdlx/surface.cpp:409:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(surf->pixels, bits, bm.bmWidthBytes*bm.bmHeight);
data/btanks-0.9.8083/sdlx/system.cpp:209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char drv_name[256];
data/btanks-0.9.8083/sdlx/ttf.cpp:36:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void TTF::open(const std::string &fname, const int psize) {
data/btanks-0.9.8083/sdlx/ttf.h:35:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const std::string &fname, const int psize);
data/btanks-0.9.8083/clunk/clunk_ex.cpp:46:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, _strerror(NULL), sizeof(buf));
data/btanks-0.9.8083/clunk/clunk_ex.cpp:48:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, strerror(errno), sizeof(buf));
data/btanks-0.9.8083/clunk/context.cpp:129:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bool eos = !stream_info.stream->read(data, size);
data/btanks-0.9.8083/clunk/contrib/ogg_stream.cpp:78:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool OggStream::read(clunk::Buffer &data, unsigned hint) {
data/btanks-0.9.8083/clunk/contrib/ogg_stream.h:23:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(clunk::Buffer &data, unsigned hint);
data/btanks-0.9.8083/clunk/sse_fft_context.cpp:15:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ptr = memalign(alignment, size);
data/btanks-0.9.8083/clunk/stream.h:51:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual bool read(clunk::Buffer &data, unsigned hint) = 0;
data/btanks-0.9.8083/clunk/test.cpp:68:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(500000);
data/btanks-0.9.8083/clunk/test.cpp:76:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
*/	usleep(500000);
data/btanks-0.9.8083/engine/sound/ogg_stream.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int r = file->read(ptr, nmemb * size);
data/btanks-0.9.8083/engine/sound/ogg_stream.cpp:116:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool OggStream::read(clunk::Buffer &data, unsigned hint) {
data/btanks-0.9.8083/engine/sound/ogg_stream.h:53:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(clunk::Buffer &data, unsigned hint);
data/btanks-0.9.8083/engine/src/finder.cpp:103:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(!(base_dir = dir.read()).empty()) {
data/btanks-0.9.8083/engine/src/finder.cpp:300:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while(!(file = dir.read()).empty()) {
data/btanks-0.9.8083/mrt/base_directory.h:31:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const std::string read() const = 0;
data/btanks-0.9.8083/mrt/base_file.cpp:49:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t r = read(buf, 2);
data/btanks-0.9.8083/mrt/base_file.cpp:59:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t r = read(buf, 4);
data/btanks-0.9.8083/mrt/base_file.cpp:92:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(ptr, BUF_SIZE);
data/btanks-0.9.8083/mrt/base_file.cpp:115:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size_t r = read(&c, 1);
data/btanks-0.9.8083/mrt/base_file.h:47:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const size_t read(void *buf, const size_t size) const = 0;
data/btanks-0.9.8083/mrt/directory.cpp:50:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const std::string Directory::read() const {
data/btanks-0.9.8083/mrt/directory.cpp:111:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const std::string Directory::read() const {
data/btanks-0.9.8083/mrt/directory.h:39:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const std::string read() const;
data/btanks-0.9.8083/mrt/file.cpp:68:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const size_t File::read(void *buf, const size_t size) const {
data/btanks-0.9.8083/mrt/file.h:47:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const size_t read(void *buf, const size_t size) const;
data/btanks-0.9.8083/mrt/ioexception.cpp:34:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, _strerror(NULL), sizeof(buf));
data/btanks-0.9.8083/mrt/ioexception.cpp:36:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, strerror(errno), sizeof(buf));
data/btanks-0.9.8083/mrt/lang.cpp:149:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (lang_env == NULL || strlen(lang_env) == 0)
data/btanks-0.9.8083/mrt/xml.cpp:91:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			size_t len = f.read(buf, sizeof(buf));
data/btanks-0.9.8083/mrt/xml.cpp:128:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size_t len = f.read(buf, sizeof(buf));
data/btanks-0.9.8083/mrt/zip_dir.cpp:51:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (file.read(extra.get_ptr(), fsize) != fsize)
data/btanks-0.9.8083/mrt/zip_dir.cpp:61:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (file.read(extra.get_ptr(), esize) != esize)
data/btanks-0.9.8083/mrt/zip_dir.cpp:71:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(const mrt::BaseFile &file) {
data/btanks-0.9.8083/mrt/zip_dir.cpp:87:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(const mrt::BaseFile &file) {
data/btanks-0.9.8083/mrt/zip_dir.cpp:103:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (file.read(comment.get_ptr(), comment_size) != comment_size)
data/btanks-0.9.8083/mrt/zip_dir.cpp:125:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(const mrt::BaseFile &file) {
data/btanks-0.9.8083/mrt/zip_dir.cpp:136:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (file.read(comment.get_ptr(), comment_size) != comment_size) 
data/btanks-0.9.8083/mrt/zip_dir.cpp:155:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			lfh.read(archive);
data/btanks-0.9.8083/mrt/zip_dir.cpp:165:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			cds.read(archive);
data/btanks-0.9.8083/mrt/zip_dir.cpp:168:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ecds.read(archive);
data/btanks-0.9.8083/mrt/zip_dir.cpp:184:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const std::string ZipDirectory::read() const {
data/btanks-0.9.8083/mrt/zip_dir.h:26:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const std::string read() const;
data/btanks-0.9.8083/mrt/zip_file.cpp:73:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const size_t ZipFile::read(void *buf, const size_t size) const {
data/btanks-0.9.8083/mrt/zip_file.h:21:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual const size_t read(void *buf, const size_t size) const;
data/btanks-0.9.8083/objects/trooper.cpp:135:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t l = strlen(colors[i]);
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:149:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			empty = (fgetc(file) == EOF) ? 1 : 0;
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:159:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			empty = (fgetc(file) == EOF) ? 1 : 0;
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:274:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy( stdoutPath, path, SDL_arraysize(stdoutPath) );
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:275:2:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
	wcsncat( stdoutPath, DIR_SEPERATOR STDOUT_FILE, SDL_arraysize(stdoutPath) );
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:301:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy( stderrPath, path, SDL_arraysize(stdoutPath) );
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:302:2:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
	wcsncat( stderrPath, DIR_SEPERATOR STDOUT_FILE, SDL_arraysize(stdoutPath) );
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:331:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nLen = wcslen(szCmdLine)+128+1;
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:335:15:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	wcscpy (bufp+wcslen(bufp), TEXT("\" "));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:336:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:336:15:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:336:44:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
data/btanks-0.9.8083/sdlx/SDL_win32_main.c:337:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nLen = wcslen(bufp)+1;
data/btanks-0.9.8083/sdlx/file_rw.cpp:20:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int r = file->read(ptr, size * maxnum);

ANALYSIS SUMMARY:

Hits = 308
Lines analyzed = 85896 in approximately 15.02 seconds (5719 lines/second)
Physical Source Lines of Code (SLOC) = 59272
Hits@level = [0] 146 [1]  58 [2] 159 [3]  63 [4]  28 [5]   0
Hits@level+ = [0+] 454 [1+] 308 [2+] 250 [3+]  91 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 7.6596 [1+] 5.19638 [2+] 4.21784 [3+] 1.53529 [4+] 0.472398 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.