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/frogatto-1.3.1+dfsg/src/Appirater.h
Examining data/frogatto-1.3.1+dfsg/src/IMG_savepng.cpp
Examining data/frogatto-1.3.1+dfsg/src/IMG_savepng.h
Examining data/frogatto-1.3.1+dfsg/src/SDLMain.h
Examining data/frogatto-1.3.1+dfsg/src/SampleOFDelegate.h
Examining data/frogatto-1.3.1+dfsg/src/achievements.cpp
Examining data/frogatto-1.3.1+dfsg/src/achievements.hpp
Examining data/frogatto-1.3.1+dfsg/src/animation_creator.cpp
Examining data/frogatto-1.3.1+dfsg/src/animation_creator.hpp
Examining data/frogatto-1.3.1+dfsg/src/animation_preview_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/animation_preview_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/animation_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/animation_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/array_callable.hpp
Examining data/frogatto-1.3.1+dfsg/src/asserts.cpp
Examining data/frogatto-1.3.1+dfsg/src/asserts.hpp
Examining data/frogatto-1.3.1+dfsg/src/background.cpp
Examining data/frogatto-1.3.1+dfsg/src/background.hpp
Examining data/frogatto-1.3.1+dfsg/src/background_task_pool.cpp
Examining data/frogatto-1.3.1+dfsg/src/background_task_pool.hpp
Examining data/frogatto-1.3.1+dfsg/src/base64.cpp
Examining data/frogatto-1.3.1+dfsg/src/base64.hpp
Examining data/frogatto-1.3.1+dfsg/src/blur.cpp
Examining data/frogatto-1.3.1+dfsg/src/blur.hpp
Examining data/frogatto-1.3.1+dfsg/src/border_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/border_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/button.cpp
Examining data/frogatto-1.3.1+dfsg/src/button.hpp
Examining data/frogatto-1.3.1+dfsg/src/character_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/character_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/checkbox.cpp
Examining data/frogatto-1.3.1+dfsg/src/checkbox.hpp
Examining data/frogatto-1.3.1+dfsg/src/checksum.cpp
Examining data/frogatto-1.3.1+dfsg/src/checksum.hpp
Examining data/frogatto-1.3.1+dfsg/src/clipboard.cpp
Examining data/frogatto-1.3.1+dfsg/src/clipboard.hpp
Examining data/frogatto-1.3.1+dfsg/src/code_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/code_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/code_editor_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/code_editor_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/collision_utils.cpp
Examining data/frogatto-1.3.1+dfsg/src/collision_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/color_chart.cpp
Examining data/frogatto-1.3.1+dfsg/src/color_chart.hpp
Examining data/frogatto-1.3.1+dfsg/src/color_utils.cpp
Examining data/frogatto-1.3.1+dfsg/src/color_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/colorshift_hash_table.cpp
Examining data/frogatto-1.3.1+dfsg/src/colorshift_hash_table.hpp
Examining data/frogatto-1.3.1+dfsg/src/compat.hpp
Examining data/frogatto-1.3.1+dfsg/src/compress.cpp
Examining data/frogatto-1.3.1+dfsg/src/compress.hpp
Examining data/frogatto-1.3.1+dfsg/src/concurrent_cache.hpp
Examining data/frogatto-1.3.1+dfsg/src/controls.cpp
Examining data/frogatto-1.3.1+dfsg/src/controls.hpp
Examining data/frogatto-1.3.1+dfsg/src/controls_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/controls_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/current_generator.cpp
Examining data/frogatto-1.3.1+dfsg/src/current_generator.hpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object.cpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object.hpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_callable.cpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_callable.hpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_functions.cpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_functions.hpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_type.cpp
Examining data/frogatto-1.3.1+dfsg/src/custom_object_type.hpp
Examining data/frogatto-1.3.1+dfsg/src/debug_console.cpp
Examining data/frogatto-1.3.1+dfsg/src/debug_console.hpp
Examining data/frogatto-1.3.1+dfsg/src/decimal.cpp
Examining data/frogatto-1.3.1+dfsg/src/decimal.hpp
Examining data/frogatto-1.3.1+dfsg/src/dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/difficulty.cpp
Examining data/frogatto-1.3.1+dfsg/src/difficulty.hpp
Examining data/frogatto-1.3.1+dfsg/src/drag_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/drag_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/draw_number.cpp
Examining data/frogatto-1.3.1+dfsg/src/draw_number.hpp
Examining data/frogatto-1.3.1+dfsg/src/draw_scene.cpp
Examining data/frogatto-1.3.1+dfsg/src/draw_scene.hpp
Examining data/frogatto-1.3.1+dfsg/src/draw_tile.cpp
Examining data/frogatto-1.3.1+dfsg/src/draw_tile.hpp
Examining data/frogatto-1.3.1+dfsg/src/dropdown_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/dropdown_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_dialogs.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_dialogs.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_formula_functions.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_formula_functions.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_layers_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_layers_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_level_properties_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_level_properties_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_module_properties_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_module_properties_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_stats_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_stats_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/editor_variable_info.cpp
Examining data/frogatto-1.3.1+dfsg/src/editor_variable_info.hpp
Examining data/frogatto-1.3.1+dfsg/src/eglport-tegra.c
Examining data/frogatto-1.3.1+dfsg/src/eglport.c
Examining data/frogatto-1.3.1+dfsg/src/eglport.h
Examining data/frogatto-1.3.1+dfsg/src/entity.cpp
Examining data/frogatto-1.3.1+dfsg/src/entity.hpp
Examining data/frogatto-1.3.1+dfsg/src/entity_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp
Examining data/frogatto-1.3.1+dfsg/src/external_text_editor.hpp
Examining data/frogatto-1.3.1+dfsg/src/file_chooser_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/file_chooser_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/filesystem-android.cpp
Examining data/frogatto-1.3.1+dfsg/src/filesystem.cpp
Examining data/frogatto-1.3.1+dfsg/src/filesystem.hpp
Examining data/frogatto-1.3.1+dfsg/src/font.hpp
Examining data/frogatto-1.3.1+dfsg/src/foreach.hpp
Examining data/frogatto-1.3.1+dfsg/src/formatter.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_callable.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_callable_definition.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_callable_definition.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_callable_definition_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_callable_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_constants.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_constants.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_function.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_function.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_function_registry.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_function_registry.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_profiler.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_profiler.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_test.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_tokenizer.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_tokenizer.hpp
Examining data/frogatto-1.3.1+dfsg/src/formula_variable_storage.cpp
Examining data/frogatto-1.3.1+dfsg/src/formula_variable_storage.hpp
Examining data/frogatto-1.3.1+dfsg/src/frame.cpp
Examining data/frogatto-1.3.1+dfsg/src/frame.hpp
Examining data/frogatto-1.3.1+dfsg/src/framed_gui_element.cpp
Examining data/frogatto-1.3.1+dfsg/src/framed_gui_element.hpp
Examining data/frogatto-1.3.1+dfsg/src/functional.hpp
Examining data/frogatto-1.3.1+dfsg/src/game_registry.cpp
Examining data/frogatto-1.3.1+dfsg/src/game_registry.hpp
Examining data/frogatto-1.3.1+dfsg/src/geometry.cpp
Examining data/frogatto-1.3.1+dfsg/src/geometry.hpp
Examining data/frogatto-1.3.1+dfsg/src/gles2.cpp
Examining data/frogatto-1.3.1+dfsg/src/gles2.hpp
Examining data/frogatto-1.3.1+dfsg/src/globals.cpp
Examining data/frogatto-1.3.1+dfsg/src/globals.h
Examining data/frogatto-1.3.1+dfsg/src/graphical_font.cpp
Examining data/frogatto-1.3.1+dfsg/src/graphical_font.hpp
Examining data/frogatto-1.3.1+dfsg/src/graphical_font_label.cpp
Examining data/frogatto-1.3.1+dfsg/src/graphical_font_label.hpp
Examining data/frogatto-1.3.1+dfsg/src/graphics.hpp
Examining data/frogatto-1.3.1+dfsg/src/grid_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/grid_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/grid_widget_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/group_property_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/group_property_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/gui_formula_functions.cpp
Examining data/frogatto-1.3.1+dfsg/src/gui_formula_functions.hpp
Examining data/frogatto-1.3.1+dfsg/src/gui_section.cpp
Examining data/frogatto-1.3.1+dfsg/src/gui_section.hpp
Examining data/frogatto-1.3.1+dfsg/src/hex_map.cpp
Examining data/frogatto-1.3.1+dfsg/src/hex_map.hpp
Examining data/frogatto-1.3.1+dfsg/src/hex_object.cpp
Examining data/frogatto-1.3.1+dfsg/src/hex_object.hpp
Examining data/frogatto-1.3.1+dfsg/src/hex_object_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/hex_tile.cpp
Examining data/frogatto-1.3.1+dfsg/src/hex_tile.hpp
Examining data/frogatto-1.3.1+dfsg/src/hex_tileset_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/hex_tileset_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/hi_res_timer.hpp
Examining data/frogatto-1.3.1+dfsg/src/http_client.cpp
Examining data/frogatto-1.3.1+dfsg/src/http_client.hpp
Examining data/frogatto-1.3.1+dfsg/src/http_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/i18n.cpp
Examining data/frogatto-1.3.1+dfsg/src/i18n.hpp
Examining data/frogatto-1.3.1+dfsg/src/image_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/image_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/image_widget_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/input.cpp
Examining data/frogatto-1.3.1+dfsg/src/input.hpp
Examining data/frogatto-1.3.1+dfsg/src/iphone_controls.cpp
Examining data/frogatto-1.3.1+dfsg/src/iphone_controls.hpp
Examining data/frogatto-1.3.1+dfsg/src/iphone_device_info.h
Examining data/frogatto-1.3.1+dfsg/src/iphone_sound.h
Examining data/frogatto-1.3.1+dfsg/src/joystick.cpp
Examining data/frogatto-1.3.1+dfsg/src/joystick.hpp
Examining data/frogatto-1.3.1+dfsg/src/json_parser.cpp
Examining data/frogatto-1.3.1+dfsg/src/json_parser.hpp
Examining data/frogatto-1.3.1+dfsg/src/json_tokenizer.cpp
Examining data/frogatto-1.3.1+dfsg/src/json_tokenizer.hpp
Examining data/frogatto-1.3.1+dfsg/src/key.cpp
Examining data/frogatto-1.3.1+dfsg/src/key.hpp
Examining data/frogatto-1.3.1+dfsg/src/key_button.cpp
Examining data/frogatto-1.3.1+dfsg/src/key_button.hpp
Examining data/frogatto-1.3.1+dfsg/src/label.cpp
Examining data/frogatto-1.3.1+dfsg/src/label.hpp
Examining data/frogatto-1.3.1+dfsg/src/level.cpp
Examining data/frogatto-1.3.1+dfsg/src/level.hpp
Examining data/frogatto-1.3.1+dfsg/src/level_logic.cpp
Examining data/frogatto-1.3.1+dfsg/src/level_logic.hpp
Examining data/frogatto-1.3.1+dfsg/src/level_object.cpp
Examining data/frogatto-1.3.1+dfsg/src/level_object.hpp
Examining data/frogatto-1.3.1+dfsg/src/level_runner.cpp
Examining data/frogatto-1.3.1+dfsg/src/level_runner.hpp
Examining data/frogatto-1.3.1+dfsg/src/level_solid_map.cpp
Examining data/frogatto-1.3.1+dfsg/src/level_solid_map.hpp
Examining data/frogatto-1.3.1+dfsg/src/light.cpp
Examining data/frogatto-1.3.1+dfsg/src/light.hpp
Examining data/frogatto-1.3.1+dfsg/src/load_level.cpp
Examining data/frogatto-1.3.1+dfsg/src/load_level.hpp
Examining data/frogatto-1.3.1+dfsg/src/load_level_nothread.cpp
Examining data/frogatto-1.3.1+dfsg/src/loading_screen.cpp
Examining data/frogatto-1.3.1+dfsg/src/loading_screen.hpp
Examining data/frogatto-1.3.1+dfsg/src/main.cpp
Examining data/frogatto-1.3.1+dfsg/src/map_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/md5.cpp
Examining data/frogatto-1.3.1+dfsg/src/md5.hpp
Examining data/frogatto-1.3.1+dfsg/src/message_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/message_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/module.cpp
Examining data/frogatto-1.3.1+dfsg/src/module.hpp
Examining data/frogatto-1.3.1+dfsg/src/module_web_server.cpp
Examining data/frogatto-1.3.1+dfsg/src/module_web_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/movement_script.cpp
Examining data/frogatto-1.3.1+dfsg/src/movement_script.hpp
Examining data/frogatto-1.3.1+dfsg/src/multi_tile_pattern.cpp
Examining data/frogatto-1.3.1+dfsg/src/multi_tile_pattern.hpp
Examining data/frogatto-1.3.1+dfsg/src/multiplayer.cpp
Examining data/frogatto-1.3.1+dfsg/src/multiplayer.hpp
Examining data/frogatto-1.3.1+dfsg/src/object_events.cpp
Examining data/frogatto-1.3.1+dfsg/src/object_events.hpp
Examining data/frogatto-1.3.1+dfsg/src/of_bridge.h
Examining data/frogatto-1.3.1+dfsg/src/options_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/options_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/particle_system.cpp
Examining data/frogatto-1.3.1+dfsg/src/particle_system.hpp
Examining data/frogatto-1.3.1+dfsg/src/pathfinding.cpp
Examining data/frogatto-1.3.1+dfsg/src/pathfinding.hpp
Examining data/frogatto-1.3.1+dfsg/src/pause_game_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/pause_game_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/playable_custom_object.cpp
Examining data/frogatto-1.3.1+dfsg/src/playable_custom_object.hpp
Examining data/frogatto-1.3.1+dfsg/src/player_info.cpp
Examining data/frogatto-1.3.1+dfsg/src/player_info.hpp
Examining data/frogatto-1.3.1+dfsg/src/point_map.hpp
Examining data/frogatto-1.3.1+dfsg/src/poly_line_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/preferences.cpp
Examining data/frogatto-1.3.1+dfsg/src/preferences.hpp
Examining data/frogatto-1.3.1+dfsg/src/preprocessor.cpp
Examining data/frogatto-1.3.1+dfsg/src/preprocessor.hpp
Examining data/frogatto-1.3.1+dfsg/src/preview_tileset_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/preview_tileset_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/progress_bar.cpp
Examining data/frogatto-1.3.1+dfsg/src/progress_bar.hpp
Examining data/frogatto-1.3.1+dfsg/src/property_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/property_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/random.cpp
Examining data/frogatto-1.3.1+dfsg/src/random.hpp
Examining data/frogatto-1.3.1+dfsg/src/raster.cpp
Examining data/frogatto-1.3.1+dfsg/src/raster.hpp
Examining data/frogatto-1.3.1+dfsg/src/raster_distortion.cpp
Examining data/frogatto-1.3.1+dfsg/src/raster_distortion.hpp
Examining data/frogatto-1.3.1+dfsg/src/rectangle_rotator.cpp
Examining data/frogatto-1.3.1+dfsg/src/rectangle_rotator.hpp
Examining data/frogatto-1.3.1+dfsg/src/reference_counted_object.hpp
Examining data/frogatto-1.3.1+dfsg/src/regex_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/scoped_resource.hpp
Examining data/frogatto-1.3.1+dfsg/src/scrollable_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/scrollable_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/scrollbar_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/scrollbar_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/segment_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/segment_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/server.cpp
Examining data/frogatto-1.3.1+dfsg/src/settings_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/settings_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/shaders.cpp
Examining data/frogatto-1.3.1+dfsg/src/shaders.hpp
Examining data/frogatto-1.3.1+dfsg/src/simple_wml.cpp
Examining data/frogatto-1.3.1+dfsg/src/simple_wml.hpp
Examining data/frogatto-1.3.1+dfsg/src/slider.cpp
Examining data/frogatto-1.3.1+dfsg/src/slider.hpp
Examining data/frogatto-1.3.1+dfsg/src/solid_map.cpp
Examining data/frogatto-1.3.1+dfsg/src/solid_map.hpp
Examining data/frogatto-1.3.1+dfsg/src/solid_map_fwd.hpp
Examining data/frogatto-1.3.1+dfsg/src/sound.cpp
Examining data/frogatto-1.3.1+dfsg/src/sound.hpp
Examining data/frogatto-1.3.1+dfsg/src/speech_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/speech_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/stats.cpp
Examining data/frogatto-1.3.1+dfsg/src/stats.hpp
Examining data/frogatto-1.3.1+dfsg/src/stats_server.cpp
Examining data/frogatto-1.3.1+dfsg/src/stats_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/stats_server_main.cpp
Examining data/frogatto-1.3.1+dfsg/src/stats_web_server.cpp
Examining data/frogatto-1.3.1+dfsg/src/stats_web_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/string_utils.cpp
Examining data/frogatto-1.3.1+dfsg/src/string_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface.cpp
Examining data/frogatto-1.3.1+dfsg/src/surface.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface_cache.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface_formula.cpp
Examining data/frogatto-1.3.1+dfsg/src/surface_formula.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface_palette.cpp
Examining data/frogatto-1.3.1+dfsg/src/surface_palette.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface_scaling.cpp
Examining data/frogatto-1.3.1+dfsg/src/surface_scaling_generated.hpp
Examining data/frogatto-1.3.1+dfsg/src/sys.cpp
Examining data/frogatto-1.3.1+dfsg/src/sys.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_ai_player.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_ai_player.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_bot.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_bot.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_client.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_client.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_functions.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_functions.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_game.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_game.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_server.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_web_server.cpp
Examining data/frogatto-1.3.1+dfsg/src/tbs_web_server.hpp
Examining data/frogatto-1.3.1+dfsg/src/text_editor_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/text_editor_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/texture.cpp
Examining data/frogatto-1.3.1+dfsg/src/texture_frame_buffer.cpp
Examining data/frogatto-1.3.1+dfsg/src/texture_frame_buffer.hpp
Examining data/frogatto-1.3.1+dfsg/src/thread.cpp
Examining data/frogatto-1.3.1+dfsg/src/thread.hpp
Examining data/frogatto-1.3.1+dfsg/src/tile_map.cpp
Examining data/frogatto-1.3.1+dfsg/src/tile_map.hpp
Examining data/frogatto-1.3.1+dfsg/src/tileset_editor_dialog.cpp
Examining data/frogatto-1.3.1+dfsg/src/tileset_editor_dialog.hpp
Examining data/frogatto-1.3.1+dfsg/src/tooltip.cpp
Examining data/frogatto-1.3.1+dfsg/src/tooltip.hpp
Examining data/frogatto-1.3.1+dfsg/src/translate.cpp
Examining data/frogatto-1.3.1+dfsg/src/translate.hpp
Examining data/frogatto-1.3.1+dfsg/src/tree_view_widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/tree_view_widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/unit_test.cpp
Examining data/frogatto-1.3.1+dfsg/src/unit_test.hpp
Examining data/frogatto-1.3.1+dfsg/src/uri.hpp
Examining data/frogatto-1.3.1+dfsg/src/userevents.h
Examining data/frogatto-1.3.1+dfsg/src/utility_object_compiler.cpp
Examining data/frogatto-1.3.1+dfsg/src/utility_query.cpp
Examining data/frogatto-1.3.1+dfsg/src/utility_query.hpp
Examining data/frogatto-1.3.1+dfsg/src/utility_render_level.cpp
Examining data/frogatto-1.3.1+dfsg/src/utils.cpp
Examining data/frogatto-1.3.1+dfsg/src/utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/variant.cpp
Examining data/frogatto-1.3.1+dfsg/src/variant.hpp
Examining data/frogatto-1.3.1+dfsg/src/variant_callable.cpp
Examining data/frogatto-1.3.1+dfsg/src/variant_callable.hpp
Examining data/frogatto-1.3.1+dfsg/src/variant_utils.cpp
Examining data/frogatto-1.3.1+dfsg/src/variant_utils.hpp
Examining data/frogatto-1.3.1+dfsg/src/vecmath.hpp
Examining data/frogatto-1.3.1+dfsg/src/vector_text.hpp
Examining data/frogatto-1.3.1+dfsg/src/water.cpp
Examining data/frogatto-1.3.1+dfsg/src/water.hpp
Examining data/frogatto-1.3.1+dfsg/src/water_particle_system.cpp
Examining data/frogatto-1.3.1+dfsg/src/water_particle_system.hpp
Examining data/frogatto-1.3.1+dfsg/src/weather_particle_system.cpp
Examining data/frogatto-1.3.1+dfsg/src/weather_particle_system.hpp
Examining data/frogatto-1.3.1+dfsg/src/widget.cpp
Examining data/frogatto-1.3.1+dfsg/src/widget.hpp
Examining data/frogatto-1.3.1+dfsg/src/widget_factory.cpp
Examining data/frogatto-1.3.1+dfsg/src/widget_factory.hpp
Examining data/frogatto-1.3.1+dfsg/src/win_profile_timer.hpp
Examining data/frogatto-1.3.1+dfsg/src/wm.cpp
Examining data/frogatto-1.3.1+dfsg/src/wm.hpp
Examining data/frogatto-1.3.1+dfsg/src/wml_formula_callable.cpp
Examining data/frogatto-1.3.1+dfsg/src/wml_formula_callable.hpp
Examining data/frogatto-1.3.1+dfsg/src/surface_cache.cpp
Examining data/frogatto-1.3.1+dfsg/src/font.cpp
Examining data/frogatto-1.3.1+dfsg/src/vector_text.cpp
Examining data/frogatto-1.3.1+dfsg/src/texture.hpp
Examining data/frogatto-1.3.1+dfsg/src/http_server.cpp

FINAL RESULTS:

data/frogatto-1.3.1+dfsg/src/clipboard.cpp:422:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buffer, str.c_str());
data/frogatto-1.3.1+dfsg/src/controls.cpp:561:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, (1 << j)&controls[n][m] ? "1" : "0");
data/frogatto-1.3.1+dfsg/src/decimal.cpp:48:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s%lld.%06lld", minus, static_cast<long long int>(d.value()/DECIMAL_PRECISION), static_cast<long long int>((d.value() > 0 ? d.value() : -d.value())%DECIMAL_PRECISION));
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:64:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_low, format_string, number_low);
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:65:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_high, format_string, number_high);
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:98:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_low, format_string, number_low);
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:99:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_high, format_string, number_high);
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:18:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define popen _popen
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:53:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		FILE* p = popen(cmd.c_str(), "r");
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:91:15:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				FILE* p = popen(cmd.c_str(), "r");
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:117:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		FILE* p = popen(cmd.c_str(), "r");
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:211: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.
			const int result = system(command.c_str());
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:225:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		const int result = system(command.c_str());
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:125:8:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void)lstrcpyA(search_spec, name);
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:129:9:  [4] (buffer) lstrcatA:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
		(void)lstrcatA(search_spec, "\\*.*");
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:133:9:  [4] (buffer) lstrcatA:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
		(void)lstrcatA(search_spec, "*.*");
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:181:11:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				(void)lstrcpyA(result->directory, name);
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:182:11:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				(void)lstrcpyA(result->dirent.d_name, result->find_data.cFileName);
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:236:9:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void)lstrcpyA(dir->dirent.d_name, dir->find_data.cFileName);
data/frogatto-1.3.1+dfsg/src/formula_callable.hpp:31:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	FORMULA_ACCESS_TYPE access;
data/frogatto-1.3.1+dfsg/src/formula_callable.hpp:33:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			: name(name), access(access)
data/frogatto-1.3.1+dfsg/src/formula_callable.hpp:33:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			: name(name), access(access)
data/frogatto-1.3.1+dfsg/src/http_client.cpp:35:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void http_client::handle_resolve(const boost::system::error_code& error, tcp::resolver::iterator endpoint_iterator, connection_ptr conn)
data/frogatto-1.3.1+dfsg/src/http_client.cpp:58:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void http_client::handle_connect(const boost::system::error_code& error, connection_ptr conn, tcp::resolver::iterator resolve_itor)
data/frogatto-1.3.1+dfsg/src/http_client.cpp:118:65:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void http_client::handle_send(connection_ptr conn, const boost::system::error_code& e, size_t nbytes)
data/frogatto-1.3.1+dfsg/src/http_client.cpp:143:68:  [4] (shell) system:
  This causes a 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 http_client::handle_receive(connection_ptr conn, const boost::system::error_code& e, size_t nbytes)
data/frogatto-1.3.1+dfsg/src/http_client.hpp:55:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_resolve(const boost::system::error_code& err, tcp::resolver::iterator endpoint_iterator, connection_ptr conn);
data/frogatto-1.3.1+dfsg/src/http_client.hpp:56:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_connect(const boost::system::error_code& error, connection_ptr conn, tcp::resolver::iterator resolve_itor);
data/frogatto-1.3.1+dfsg/src/http_client.hpp:58:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_send(connection_ptr conn, const boost::system::error_code& e, size_t nbytes);
data/frogatto-1.3.1+dfsg/src/http_client.hpp:59:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_receive(connection_ptr conn, const boost::system::error_code& e, size_t nbytes);
data/frogatto-1.3.1+dfsg/src/http_server.cpp:43:64:  [4] (shell) system:
  This causes a 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 web_server::handle_accept(socket_ptr socket, const boost::system::error_code& error)
data/frogatto-1.3.1+dfsg/src/http_server.cpp:65: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.
	const boost::system::error_code& e, 
data/frogatto-1.3.1+dfsg/src/http_server.cpp:238:62:  [4] (shell) system:
  This causes a 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 web_server::handle_send(socket_ptr socket, const boost::system::error_code& e, size_t nbytes, size_t max_bytes, boost::shared_ptr<std::string> buf)
data/frogatto-1.3.1+dfsg/src/http_server.hpp:26:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_accept(socket_ptr socket, const boost::system::error_code& error);
data/frogatto-1.3.1+dfsg/src/http_server.hpp:31: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.
	void handle_send(socket_ptr socket, const boost::system::error_code& e, size_t nbytes, size_t max_bytes, boost::shared_ptr<std::string> buf);
data/frogatto-1.3.1+dfsg/src/http_server.hpp:47:70:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_receive(socket_ptr socket, buffer_ptr buf, const boost::system::error_code& e, size_t nbytes, receive_buf_ptr recv_buf);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:98:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	boost::system::error_code error = boost::asio::error::host_not_found;
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:197:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	boost::system::error_code error = boost::asio::error::host_not_found;
data/frogatto-1.3.1+dfsg/src/server.cpp:44:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_accept(socket_ptr socket, const boost::system::error_code& error)
data/frogatto-1.3.1+dfsg/src/server.cpp:67: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.
	void handle_send(socket_ptr socket, const boost::system::error_code& e, size_t nbytes)
data/frogatto-1.3.1+dfsg/src/server.cpp:80:70:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_receive(socket_ptr socket, buffer_ptr buf, const boost::system::error_code& e, size_t nbytes)
data/frogatto-1.3.1+dfsg/src/server.cpp:175:66:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_udp_receive(udp_endpoint_ptr endpoint, const boost::system::error_code& error, size_t len)
data/frogatto-1.3.1+dfsg/src/server.cpp:262:63:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void handle_udp_send(udp_endpoint_ptr endpoint, const boost::system::error_code& error, size_t len)
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:1016:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buf, output());
data/frogatto-1.3.1+dfsg/src/tbs_server.cpp:237:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void server::handle_send(socket_ptr socket, const boost::system::error_code& e, size_t nbytes, boost::shared_ptr<std::string> buf)
data/frogatto-1.3.1+dfsg/src/tbs_server.hpp:56: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.
	void handle_send(socket_ptr socket, const boost::system::error_code& e, size_t nbytes, boost::shared_ptr<std::string> buf);
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:570: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_str = getenv("HOME");
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:573: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_str = getenv("PWD");
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:576: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_str = getenv("HOME");
data/frogatto-1.3.1+dfsg/src/i18n.cpp:112:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *cstr = getenv("LANG");
data/frogatto-1.3.1+dfsg/src/i18n.cpp:117:10:  [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.
		cstr = getenv("LC_ALL");
data/frogatto-1.3.1+dfsg/src/particle_system.cpp:330:7:  [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 random;
data/frogatto-1.3.1+dfsg/src/preferences.cpp:414:23:  [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.
				str = std::string(getenv("PWD")) + std::string(str.begin()+1, str.end());
data/frogatto-1.3.1+dfsg/src/preferences.cpp:416:23:  [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.
				str = std::string(getenv("HOME")) + std::string(str.begin()+1, str.end());
data/frogatto-1.3.1+dfsg/src/background.cpp:187: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[128];
data/frogatto-1.3.1+dfsg/src/background.cpp:188:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%02x%02x%02x", top_.r, top_.g, top_.b);
data/frogatto-1.3.1+dfsg/src/background.cpp:190:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%02x%02x%02x", bot_.r, bot_.g, bot_.b);
data/frogatto-1.3.1+dfsg/src/background.cpp:213:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%02x%02x%02x", bg.color_above->r, bg.color_above->g, bg.color_above->b);
data/frogatto-1.3.1+dfsg/src/background.cpp:218:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%02x%02x%02x", bg.color_below->r, bg.color_below->g, bg.color_below->b);
data/frogatto-1.3.1+dfsg/src/base64.cpp:35: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 in[3];
data/frogatto-1.3.1+dfsg/src/base64.cpp:123: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 decode_buffer[ 4 ];
data/frogatto-1.3.1+dfsg/src/color_utils.cpp:49:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			c_.rgba[i] = atoi(itor->c_str());
data/frogatto-1.3.1+dfsg/src/color_utils.cpp:57:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				c_.rgba[i] = atoi(itor->c_str());
data/frogatto-1.3.1+dfsg/src/color_utils.cpp:161:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rgba_[n] = atoi(components[n].c_str());
data/frogatto-1.3.1+dfsg/src/controls.cpp:370: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(&current_cycle, buf, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:380: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(&checksum, buf, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:394: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(&highest_cycle, buf, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:403: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(&ncycles, buf, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:473: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(&v[v.size()-4], &current_cycle_net, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:479: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(&v[v.size()-4], &checksum_net, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:484: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(&v[v.size()-4], &highest_cycle, 4);
data/frogatto-1.3.1+dfsg/src/controls.cpp:495: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(&v[v.size()-4], &ncycles_to_write_net, 4);
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:377: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[64];
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:378:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "_%x", rand());
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:503: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 addr_buf[256];
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:504:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(addr_buf, "%p", this);
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:565: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[256];
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:566:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%p", e.get());
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:4097: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[128];
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:4098:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%p", this);
data/frogatto-1.3.1+dfsg/src/decimal.cpp:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:61: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 format_string[128];
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:62:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(format_string, "%%0%dd", places);
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:63: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_high[128], buf_low[128];
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:95: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 format_string[128];
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:96:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(format_string, "%%0%dd", places);
data/frogatto-1.3.1+dfsg/src/draw_number.cpp:97: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_high[128], buf_low[128];
data/frogatto-1.3.1+dfsg/src/editor_module_properties_dialog.cpp:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char cube_img[266] = {137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 
data/frogatto-1.3.1+dfsg/src/eglport.c:98:13:  [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).
    fbdev = open ("/dev/fb0", O_RDONLY /* O_RDWR */ );
data/frogatto-1.3.1+dfsg/src/entity.cpp:313: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[64];
data/frogatto-1.3.1+dfsg/src/entity.cpp:314:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "_%x", rand());
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:57: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[1024];
data/frogatto-1.3.1+dfsg/src/external_text_editor.cpp:93:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[1024];
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:97: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	d_name[NAME_MAX + 1];	   /*!< file name (null-terminated) */
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			  directory[_MAX_DIR+1];   /* . */
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:122: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	search_spec[_MAX_PATH +1];
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:422: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 basename[MAXNAMLEN+1];
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:544: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[256];
data/frogatto-1.3.1+dfsg/src/formula_constants.cpp:48:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return variant(atoi(preferences::get_tbs_uri().port().c_str()));
data/frogatto-1.3.1+dfsg/src/formula_tokenizer.cpp:131: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).
					if(*i1 == open) {
data/frogatto-1.3.1+dfsg/src/frame.cpp:99:22:  [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).
				const int time = atoi(time_event[n].c_str());
data/frogatto-1.3.1+dfsg/src/gles2.cpp:112: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(params, colors, sizeof(colors));
data/frogatto-1.3.1+dfsg/src/gles2.cpp:114: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(params, &modelview_matrix.x.x, sizeof(modelview_matrix));
data/frogatto-1.3.1+dfsg/src/gles2.cpp:116: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(params, &proj_matrix.x.x, sizeof(proj_matrix));
data/frogatto-1.3.1+dfsg/src/http_server.cpp:165:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		const int content_length = atoi(env["content-length"].c_str());
data/frogatto-1.3.1+dfsg/src/i18n.cpp:74: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 c[1024];
data/frogatto-1.3.1+dfsg/src/i18n.cpp:89: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 tmp[16];
data/frogatto-1.3.1+dfsg/src/json_parser.cpp:432:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						int val = atoi(s.c_str());
data/frogatto-1.3.1+dfsg/src/key.cpp:57: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[128];
data/frogatto-1.3.1+dfsg/src/key.cpp:60:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "%d", n);
data/frogatto-1.3.1+dfsg/src/key.cpp:80: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).
		const int nkey = atoi(keys[n].c_str());
data/frogatto-1.3.1+dfsg/src/level.cpp:1207: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[4];
data/frogatto-1.3.1+dfsg/src/level_object.cpp:225: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).
			const int tile_num = atoi(tiles_str.c_str() + 1);
data/frogatto-1.3.1+dfsg/src/level_object.cpp:250: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[128];
data/frogatto-1.3.1+dfsg/src/level_object.cpp:251:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "+%d", dst_tile);
data/frogatto-1.3.1+dfsg/src/level_object.cpp:579: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 tile_pos[64];
data/frogatto-1.3.1+dfsg/src/level_object.cpp:580:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(tile_pos, "+%d", index);
data/frogatto-1.3.1+dfsg/src/level_object.cpp:606:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char base64_chars[65] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.!";
data/frogatto-1.3.1+dfsg/src/level_object.cpp:670: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[128];
data/frogatto-1.3.1+dfsg/src/level_object.cpp:671:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%d", index);
data/frogatto-1.3.1+dfsg/src/level_object.cpp:911: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[3];
data/frogatto-1.3.1+dfsg/src/main.cpp:213: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[256];
data/frogatto-1.3.1+dfsg/src/md5.cpp:35: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[64];
data/frogatto-1.3.1+dfsg/src/md5.cpp:37:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%02x", c);
data/frogatto-1.3.1+dfsg/src/md5.cpp:105:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    std::memcpy(p, buf, len);
data/frogatto-1.3.1+dfsg/src/md5.cpp:108:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(p, buf, t);
data/frogatto-1.3.1+dfsg/src/md5.cpp:117:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(ctx->in, buf, 64);
data/frogatto-1.3.1+dfsg/src/md5.cpp:126:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ctx->in, buf, len);
data/frogatto-1.3.1+dfsg/src/md5.cpp:171: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.
    std::memcpy(digest, ctx->buf, 16);
data/frogatto-1.3.1+dfsg/src/module_web_server.cpp:214: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).
			port = atoi(arguments.front().c_str());
data/frogatto-1.3.1+dfsg/src/multi_tile_pattern.cpp:191:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[3] = {row, col, 0};
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:121: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(&id, &initial_response[0], 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:132: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).
    udp_socket->open(udp::v4());
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:135: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(&udp_msg[0], &id, 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:158: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(&msg[1], &id, 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:215: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(&send_buf[1], &id, 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:396:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[256];
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:410:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					const int buf_len = sprintf(buf, "PXXXX%d %d %d", ping_id, start_advisory, delay);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:411:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&buf[1], &id, 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:455:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&buf[1], &id, 4); //write our ID for the return msg.
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:465:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					const int start_in_num = atoi(start_in.c_str());
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:466:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					const int delay = atoi(delay_time.c_str());
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:509: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(&send_buf[1], &id, 4);
data/frogatto-1.3.1+dfsg/src/multiplayer.cpp:562:13:  [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).
	udp_socket.open(udp::v4());
data/frogatto-1.3.1+dfsg/src/particle_system.cpp:681: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 rgba[4];
data/frogatto-1.3.1+dfsg/src/particle_system.cpp:682: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 rgba_rand[4];
data/frogatto-1.3.1+dfsg/src/particle_system.cpp:683: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 rgba_delta[4];
data/frogatto-1.3.1+dfsg/src/particle_system.cpp:836:40:  [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.
		union { unsigned int color; unsigned char rgba[4]; };
data/frogatto-1.3.1+dfsg/src/preferences.cpp:78: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 szPath[ MAX_PATH ];
data/frogatto-1.3.1+dfsg/src/preferences.cpp:811: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).
			const int memory_required = atoi(arg_value.c_str());
data/frogatto-1.3.1+dfsg/src/property_editor_dialog.cpp:453:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		v = variant(atoi(w->first->text().c_str()));
data/frogatto-1.3.1+dfsg/src/server.cpp:51:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&buf[0], &info.id, 4);
data/frogatto-1.3.1+dfsg/src/server.cpp:111:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				const size_t nplayers = atoi(match[2].first);
data/frogatto-1.3.1+dfsg/src/server.cpp:180:4:  [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(&id, &udp_buf_[1], 4);
data/frogatto-1.3.1+dfsg/src/simple_wml.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(small_out, &buf[0], pos);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:73: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(small_out, &buf[0], len);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:97: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[64];
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:98: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(buf, begin(), size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:100: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(buf);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:111: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(buf, begin(), size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:345: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[64];
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:346:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%d", value);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:650:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, output_cache_.begin(), output_cache_.size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:659:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, i->first.begin(), i->first.size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:664:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, i->second.begin(), i->second.size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:677:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, attr.begin(), attr.size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:685:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, attr.begin(), attr.size());
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:924:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(res, str, len + 1);
data/frogatto-1.3.1+dfsg/src/stats_server_main.cpp:32: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).
			port = atoi(arg.c_str());
data/frogatto-1.3.1+dfsg/src/string_utils.cpp:227:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		result[n] = atoi(v[n].c_str());
data/frogatto-1.3.1+dfsg/src/string_utils.cpp:236: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[256];
data/frogatto-1.3.1+dfsg/src/string_utils.cpp:242:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", ints[n]);
data/frogatto-1.3.1+dfsg/src/surface_formula.cpp:177: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[1024*16];
data/frogatto-1.3.1+dfsg/src/surface_formula.cpp:244: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[1024*16];
data/frogatto-1.3.1+dfsg/src/tbs_web_server.cpp:59:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			session_id = atoi(cookie_start+8);
data/frogatto-1.3.1+dfsg/src/tbs_web_server.cpp:125: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).
			const int state_id = atoi(state_arg->second.c_str());
data/frogatto-1.3.1+dfsg/src/tbs_web_server.cpp:170: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).
					port = atoi(it->c_str());
data/frogatto-1.3.1+dfsg/src/texture.cpp:806: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.
const unsigned char table_8bits_to_4bits[256] = {
data/frogatto-1.3.1+dfsg/src/utils.cpp:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[128];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1286: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[256];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1287:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, "deserialize('%p')", obj);
data/frogatto-1.3.1+dfsg/src/variant.cpp:1522: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[64];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1523:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "(loading %lx)", (long unsigned int)callable_loading_);
data/frogatto-1.3.1+dfsg/src/variant.cpp:1529: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[64];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1530:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "(%p)", callable_);
data/frogatto-1.3.1+dfsg/src/variant.cpp:1551: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[64];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1552:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "(%p)", fn_);
data/frogatto-1.3.1+dfsg/src/variant.cpp:1566: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[64];
data/frogatto-1.3.1+dfsg/src/variant.cpp:1567:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "(delayed %p)", delayed_);
data/frogatto-1.3.1+dfsg/src/water.cpp:40:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char color[4];
data/frogatto-1.3.1+dfsg/src/water.hpp:66:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char color_[4];
data/frogatto-1.3.1+dfsg/src/wml_formula_callable.cpp:78: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 addr_buf[256];
data/frogatto-1.3.1+dfsg/src/wml_formula_callable.cpp:79:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(addr_buf, "%p", item);
data/frogatto-1.3.1+dfsg/src/background.cpp:101:31:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(fname.size() > 4 && std::equal(fname.end() - 4, fname.end(), ".cfg")) {
data/frogatto-1.3.1+dfsg/src/clipboard.cpp:345: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(10000);
data/frogatto-1.3.1+dfsg/src/code_editor_dialog.cpp:416:46:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
				if(event_str.size() >= id.size() && std::equal(id.begin(), id.end(), event_str.begin())) {
data/frogatto-1.3.1+dfsg/src/code_editor_dialog.cpp:437:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
					if(event_str.size() >= id.size() && std::equal(id.begin(), id.end(), event_str.begin())) {
data/frogatto-1.3.1+dfsg/src/code_editor_dialog.cpp:476:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
						if(id.size() > identifier.size() && std::equal(identifier.begin(), identifier.end(), id.begin())) {
data/frogatto-1.3.1+dfsg/src/code_editor_dialog.cpp:499:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
						if(id.size() > identifier.size() && std::equal(identifier.begin(), identifier.end(), id.begin())) {
data/frogatto-1.3.1+dfsg/src/custom_object.cpp:204:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	vars_->read(node["vars"]);
data/frogatto-1.3.1+dfsg/src/custom_object_type.cpp:129:41:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(key.as_string().size() > 3 && std::equal(key.as_string().begin(), key.as_string().begin() + 3, "on_")) {
data/frogatto-1.3.1+dfsg/src/custom_object_type.cpp:646:29:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(key.size() > 3 && std::equal(key.begin(), key.begin() + 3, "on_")) {
data/frogatto-1.3.1+dfsg/src/custom_object_type.cpp:1090:35:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(i->first.size() > 4 && std::equal(i->first.end()-4, i->first.end(), ".cfg")) {
data/frogatto-1.3.1+dfsg/src/debug_console.cpp:317:43:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	while(ffl.size() < Prompt.size() || std::equal(Prompt.begin(), Prompt.end(), ffl.begin()) == false) {
data/frogatto-1.3.1+dfsg/src/decimal.cpp:49:20:  [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).
	char* ptr = buf + strlen(buf) - 1;
data/frogatto-1.3.1+dfsg/src/filesystem.cpp:890:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			const int nbytes = read(inotify_fd, &ev, sizeof(ev));
data/frogatto-1.3.1+dfsg/src/formula.cpp:1499:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
				if(i != i1 && i->end - i->begin == 3 && std::equal(i->begin, i->end, "not")) {
data/frogatto-1.3.1+dfsg/src/formula_tokenizer.cpp:251:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(str.size() == (t.end - t.begin) && std::equal(str.begin(), str.end(), t.begin)) {
data/frogatto-1.3.1+dfsg/src/formula_tokenizer.cpp:259:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(str.size() == (t.end - t.begin) && std::equal(str.begin(), str.end(), t.begin)) {
data/frogatto-1.3.1+dfsg/src/formula_variable_storage.cpp:39:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void formula_variable_storage::read(variant node)
data/frogatto-1.3.1+dfsg/src/formula_variable_storage.hpp:20:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(variant node);
data/frogatto-1.3.1+dfsg/src/frame.cpp:114:48:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(attr.size() <= AreaPostfix.size() || std::equal(AreaPostfix.begin(), AreaPostfix.end(), attr.end() - AreaPostfix.size()) == false || attr == "solid_area" ||attr == "platform_area") {
data/frogatto-1.3.1+dfsg/src/frame.cpp:205:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(attr.size() > PivotPrefix.size() && std::equal(PivotPrefix.begin(), PivotPrefix.end(), attr.begin())) {
data/frogatto-1.3.1+dfsg/src/http_client.cpp:187:23:  [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).
				content_length += strlen("content-length:");
data/frogatto-1.3.1+dfsg/src/http_server.cpp:162:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if(std::equal(msg.begin(), msg.begin()+5, "POST ")) {
data/frogatto-1.3.1+dfsg/src/http_server.cpp:202:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	} else if(std::equal(msg.begin(), msg.begin()+4, "GET ")) {
data/frogatto-1.3.1+dfsg/src/json_parser.cpp:349:73:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
					if(stack.back().type == VAL_OBJ && s.size() > Macro.size() && std::equal(Macro.begin(), Macro.end(), s.begin())) {
data/frogatto-1.3.1+dfsg/src/level_object.cpp:909:23:  [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).
	const char* s2 = s + strlen(s);
data/frogatto-1.3.1+dfsg/src/load_level_nothread.cpp:89:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return filename.size() < 4 || !std::equal(filename.end() - 4, filename.end(), ".cfg");
data/frogatto-1.3.1+dfsg/src/main.cpp:290:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(equal != arg.end()) {
data/frogatto-1.3.1+dfsg/src/main.cpp:291:40:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			arg_name = std::string(arg.begin(), equal);
data/frogatto-1.3.1+dfsg/src/main.cpp:321:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(equal != arg.end()) {
data/frogatto-1.3.1+dfsg/src/main.cpp:322:40:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			arg_name = std::string(arg.begin(), equal);
data/frogatto-1.3.1+dfsg/src/movement_script.cpp:35:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(key.size() > 3 && std::equal(key.begin(), key.begin() + 3, "on_")) {
data/frogatto-1.3.1+dfsg/src/preferences.cpp:764:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(equal != s.end()) {
data/frogatto-1.3.1+dfsg/src/preferences.cpp:765:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			arg_name = std::string(s.begin(), equal);
data/frogatto-1.3.1+dfsg/src/preprocessor.cpp:29:54:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(input.end() - i > IncludeString.size() && std::equal(IncludeString.begin(), IncludeString.end(), i)) {
data/frogatto-1.3.1+dfsg/src/shaders.cpp:1004:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	vars_->read(node["vars"]);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:30:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(filter.good() && (len = filter.read(&buf[pos], chunk_size).gcount()) == chunk_size) {
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:64:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const size_t len = filter.read(&buf[0], buf.size()).gcount();
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:922:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int len = strlen(str);
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:1015:23:  [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).
	char* buf = new char[strlen(output())+1];
data/frogatto-1.3.1+dfsg/src/simple_wml.cpp:1099:17:  [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).
			text_size += strlen(d->output_);
data/frogatto-1.3.1+dfsg/src/simple_wml.hpp:25:50:  [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).
	string_span(const char* str) : str_(str), size_(strlen(str))
data/frogatto-1.3.1+dfsg/src/string_utils.cpp:273:22:  [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).
	CHECK_EQ(res, str + strlen(str));
data/frogatto-1.3.1+dfsg/src/string_utils.cpp:283:22:  [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).
	CHECK_EQ(res, str + strlen(str));
data/frogatto-1.3.1+dfsg/src/tile_map.cpp:40:65:  [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).
	const bool match = boost::regex_match(str.data(), str.data() + strlen(str.data()), *re);
data/frogatto-1.3.1+dfsg/src/tile_map.cpp:933:93:  [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(!p->current_tile_pattern->empty() && !boost::regex_match(current_tile, current_tile + strlen(current_tile), *p->current_tile_pattern)) {

ANALYSIS SUMMARY:

Hits = 238
Lines analyzed = 94135 in approximately 2.18 seconds (43171 lines/second)
Physical Source Lines of Code (SLOC) = 75112
Hits@level = [0] 107 [1]  45 [2] 139 [3]   8 [4]  46 [5]   0
Hits@level+ = [0+] 345 [1+] 238 [2+] 193 [3+]  54 [4+]  46 [5+]   0
Hits/KSLOC@level+ = [0+] 4.59314 [1+] 3.1686 [2+] 2.5695 [3+] 0.718926 [4+] 0.612419 [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.