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/cataclysm-dda-0.E-1/doxygen_doc/pages.h
Examining data/cataclysm-dda-0.E-1/msvc-full-features/stdafx.cpp
Examining data/cataclysm-dda-0.E-1/msvc-full-features/stdafx.h
Examining data/cataclysm-dda-0.E-1/src/action.cpp
Examining data/cataclysm-dda-0.E-1/src/action.h
Examining data/cataclysm-dda-0.E-1/src/active_item_cache.cpp
Examining data/cataclysm-dda-0.E-1/src/active_item_cache.h
Examining data/cataclysm-dda-0.E-1/src/activity_handlers.cpp
Examining data/cataclysm-dda-0.E-1/src/activity_handlers.h
Examining data/cataclysm-dda-0.E-1/src/activity_item_handling.cpp
Examining data/cataclysm-dda-0.E-1/src/activity_type.cpp
Examining data/cataclysm-dda-0.E-1/src/activity_type.h
Examining data/cataclysm-dda-0.E-1/src/addiction.cpp
Examining data/cataclysm-dda-0.E-1/src/addiction.h
Examining data/cataclysm-dda-0.E-1/src/advanced_inv.cpp
Examining data/cataclysm-dda-0.E-1/src/advanced_inv.h
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_area.cpp
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_area.h
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_listitem.cpp
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_listitem.h
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_pane.cpp
Examining data/cataclysm-dda-0.E-1/src/advanced_inv_pane.h
Examining data/cataclysm-dda-0.E-1/src/ammo.cpp
Examining data/cataclysm-dda-0.E-1/src/ammo.h
Examining data/cataclysm-dda-0.E-1/src/ammo_effect.cpp
Examining data/cataclysm-dda-0.E-1/src/ammo_effect.h
Examining data/cataclysm-dda-0.E-1/src/anatomy.cpp
Examining data/cataclysm-dda-0.E-1/src/anatomy.h
Examining data/cataclysm-dda-0.E-1/src/animation.cpp
Examining data/cataclysm-dda-0.E-1/src/animation.h
Examining data/cataclysm-dda-0.E-1/src/armor_layers.cpp
Examining data/cataclysm-dda-0.E-1/src/artifact.cpp
Examining data/cataclysm-dda-0.E-1/src/artifact.h
Examining data/cataclysm-dda-0.E-1/src/assign.h
Examining data/cataclysm-dda-0.E-1/src/auto_note.cpp
Examining data/cataclysm-dda-0.E-1/src/auto_note.h
Examining data/cataclysm-dda-0.E-1/src/auto_pickup.cpp
Examining data/cataclysm-dda-0.E-1/src/auto_pickup.h
Examining data/cataclysm-dda-0.E-1/src/avatar.cpp
Examining data/cataclysm-dda-0.E-1/src/avatar.h
Examining data/cataclysm-dda-0.E-1/src/avatar_action.cpp
Examining data/cataclysm-dda-0.E-1/src/avatar_action.h
Examining data/cataclysm-dda-0.E-1/src/ballistics.cpp
Examining data/cataclysm-dda-0.E-1/src/ballistics.h
Examining data/cataclysm-dda-0.E-1/src/basecamp.cpp
Examining data/cataclysm-dda-0.E-1/src/basecamp.h
Examining data/cataclysm-dda-0.E-1/src/behavior.cpp
Examining data/cataclysm-dda-0.E-1/src/behavior.h
Examining data/cataclysm-dda-0.E-1/src/behavior_oracle.cpp
Examining data/cataclysm-dda-0.E-1/src/behavior_oracle.h
Examining data/cataclysm-dda-0.E-1/src/behavior_strategy.cpp
Examining data/cataclysm-dda-0.E-1/src/behavior_strategy.h
Examining data/cataclysm-dda-0.E-1/src/bionics.cpp
Examining data/cataclysm-dda-0.E-1/src/bionics.h
Examining data/cataclysm-dda-0.E-1/src/bionics_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/bodypart.cpp
Examining data/cataclysm-dda-0.E-1/src/bodypart.h
Examining data/cataclysm-dda-0.E-1/src/bonuses.cpp
Examining data/cataclysm-dda-0.E-1/src/bonuses.h
Examining data/cataclysm-dda-0.E-1/src/calendar.cpp
Examining data/cataclysm-dda-0.E-1/src/calendar.h
Examining data/cataclysm-dda-0.E-1/src/cata_algo.h
Examining data/cataclysm-dda-0.E-1/src/cata_io.h
Examining data/cataclysm-dda-0.E-1/src/cata_tiles.cpp
Examining data/cataclysm-dda-0.E-1/src/cata_tiles.h
Examining data/cataclysm-dda-0.E-1/src/cata_utility.cpp
Examining data/cataclysm-dda-0.E-1/src/cata_utility.h
Examining data/cataclysm-dda-0.E-1/src/cata_variant.cpp
Examining data/cataclysm-dda-0.E-1/src/cata_variant.h
Examining data/cataclysm-dda-0.E-1/src/catacharset.cpp
Examining data/cataclysm-dda-0.E-1/src/catacharset.h
Examining data/cataclysm-dda-0.E-1/src/cellular_automata.h
Examining data/cataclysm-dda-0.E-1/src/char_validity_check.cpp
Examining data/cataclysm-dda-0.E-1/src/char_validity_check.h
Examining data/cataclysm-dda-0.E-1/src/character.cpp
Examining data/cataclysm-dda-0.E-1/src/character.h
Examining data/cataclysm-dda-0.E-1/src/character_id.h
Examining data/cataclysm-dda-0.E-1/src/character_martial_arts.cpp
Examining data/cataclysm-dda-0.E-1/src/character_martial_arts.h
Examining data/cataclysm-dda-0.E-1/src/chkjson/chkjson.cpp
Examining data/cataclysm-dda-0.E-1/src/clone_ptr.h
Examining data/cataclysm-dda-0.E-1/src/clothing_mod.cpp
Examining data/cataclysm-dda-0.E-1/src/clothing_mod.h
Examining data/cataclysm-dda-0.E-1/src/clzones.cpp
Examining data/cataclysm-dda-0.E-1/src/clzones.h
Examining data/cataclysm-dda-0.E-1/src/colony.h
Examining data/cataclysm-dda-0.E-1/src/color.cpp
Examining data/cataclysm-dda-0.E-1/src/color.h
Examining data/cataclysm-dda-0.E-1/src/color_loader.h
Examining data/cataclysm-dda-0.E-1/src/common_types.h
Examining data/cataclysm-dda-0.E-1/src/compatibility.h
Examining data/cataclysm-dda-0.E-1/src/computer.cpp
Examining data/cataclysm-dda-0.E-1/src/computer.h
Examining data/cataclysm-dda-0.E-1/src/computer_session.cpp
Examining data/cataclysm-dda-0.E-1/src/computer_session.h
Examining data/cataclysm-dda-0.E-1/src/condition.cpp
Examining data/cataclysm-dda-0.E-1/src/condition.h
Examining data/cataclysm-dda-0.E-1/src/construction.cpp
Examining data/cataclysm-dda-0.E-1/src/construction.h
Examining data/cataclysm-dda-0.E-1/src/construction_category.cpp
Examining data/cataclysm-dda-0.E-1/src/construction_category.h
Examining data/cataclysm-dda-0.E-1/src/consumption.cpp
Examining data/cataclysm-dda-0.E-1/src/coordinate_conversions.cpp
Examining data/cataclysm-dda-0.E-1/src/coordinate_conversions.h
Examining data/cataclysm-dda-0.E-1/src/coordinates.h
Examining data/cataclysm-dda-0.E-1/src/craft_command.cpp
Examining data/cataclysm-dda-0.E-1/src/craft_command.h
Examining data/cataclysm-dda-0.E-1/src/crafting.cpp
Examining data/cataclysm-dda-0.E-1/src/crafting.h
Examining data/cataclysm-dda-0.E-1/src/crafting_gui.cpp
Examining data/cataclysm-dda-0.E-1/src/crafting_gui.h
Examining data/cataclysm-dda-0.E-1/src/crash.cpp
Examining data/cataclysm-dda-0.E-1/src/crash.h
Examining data/cataclysm-dda-0.E-1/src/creature.cpp
Examining data/cataclysm-dda-0.E-1/src/creature.h
Examining data/cataclysm-dda-0.E-1/src/creature_tracker.cpp
Examining data/cataclysm-dda-0.E-1/src/creature_tracker.h
Examining data/cataclysm-dda-0.E-1/src/cursesdef.h
Examining data/cataclysm-dda-0.E-1/src/cursesport.cpp
Examining data/cataclysm-dda-0.E-1/src/cursesport.h
Examining data/cataclysm-dda-0.E-1/src/damage.cpp
Examining data/cataclysm-dda-0.E-1/src/damage.h
Examining data/cataclysm-dda-0.E-1/src/debug.cpp
Examining data/cataclysm-dda-0.E-1/src/debug.h
Examining data/cataclysm-dda-0.E-1/src/debug_menu.cpp
Examining data/cataclysm-dda-0.E-1/src/debug_menu.h
Examining data/cataclysm-dda-0.E-1/src/dependency_tree.cpp
Examining data/cataclysm-dda-0.E-1/src/dependency_tree.h
Examining data/cataclysm-dda-0.E-1/src/descriptions.cpp
Examining data/cataclysm-dda-0.E-1/src/dialogue.h
Examining data/cataclysm-dda-0.E-1/src/dialogue_win.cpp
Examining data/cataclysm-dda-0.E-1/src/dialogue_win.h
Examining data/cataclysm-dda-0.E-1/src/dispersion.cpp
Examining data/cataclysm-dda-0.E-1/src/dispersion.h
Examining data/cataclysm-dda-0.E-1/src/drawing_primitives.cpp
Examining data/cataclysm-dda-0.E-1/src/drawing_primitives.h
Examining data/cataclysm-dda-0.E-1/src/dump.cpp
Examining data/cataclysm-dda-0.E-1/src/editmap.cpp
Examining data/cataclysm-dda-0.E-1/src/editmap.h
Examining data/cataclysm-dda-0.E-1/src/effect.cpp
Examining data/cataclysm-dda-0.E-1/src/effect.h
Examining data/cataclysm-dda-0.E-1/src/emit.cpp
Examining data/cataclysm-dda-0.E-1/src/emit.h
Examining data/cataclysm-dda-0.E-1/src/enum_bitset.h
Examining data/cataclysm-dda-0.E-1/src/enum_conversions.h
Examining data/cataclysm-dda-0.E-1/src/enum_traits.h
Examining data/cataclysm-dda-0.E-1/src/enums.h
Examining data/cataclysm-dda-0.E-1/src/event.cpp
Examining data/cataclysm-dda-0.E-1/src/event.h
Examining data/cataclysm-dda-0.E-1/src/event_bus.cpp
Examining data/cataclysm-dda-0.E-1/src/event_bus.h
Examining data/cataclysm-dda-0.E-1/src/event_statistics.cpp
Examining data/cataclysm-dda-0.E-1/src/event_statistics.h
Examining data/cataclysm-dda-0.E-1/src/explosion.cpp
Examining data/cataclysm-dda-0.E-1/src/explosion.h
Examining data/cataclysm-dda-0.E-1/src/faction.cpp
Examining data/cataclysm-dda-0.E-1/src/faction.h
Examining data/cataclysm-dda-0.E-1/src/faction_camp.cpp
Examining data/cataclysm-dda-0.E-1/src/faction_camp.h
Examining data/cataclysm-dda-0.E-1/src/fault.cpp
Examining data/cataclysm-dda-0.E-1/src/fault.h
Examining data/cataclysm-dda-0.E-1/src/field.cpp
Examining data/cataclysm-dda-0.E-1/src/field.h
Examining data/cataclysm-dda-0.E-1/src/field_type.cpp
Examining data/cataclysm-dda-0.E-1/src/field_type.h
Examining data/cataclysm-dda-0.E-1/src/filesystem.cpp
Examining data/cataclysm-dda-0.E-1/src/filesystem.h
Examining data/cataclysm-dda-0.E-1/src/fire.h
Examining data/cataclysm-dda-0.E-1/src/flag.cpp
Examining data/cataclysm-dda-0.E-1/src/flag.h
Examining data/cataclysm-dda-0.E-1/src/flat_set.h
Examining data/cataclysm-dda-0.E-1/src/flood_fill.h
Examining data/cataclysm-dda-0.E-1/src/font_loader.h
Examining data/cataclysm-dda-0.E-1/src/fragment_cloud.h
Examining data/cataclysm-dda-0.E-1/src/fungal_effects.cpp
Examining data/cataclysm-dda-0.E-1/src/fungal_effects.h
Examining data/cataclysm-dda-0.E-1/src/game.cpp
Examining data/cataclysm-dda-0.E-1/src/game.h
Examining data/cataclysm-dda-0.E-1/src/game_constants.h
Examining data/cataclysm-dda-0.E-1/src/game_inventory.cpp
Examining data/cataclysm-dda-0.E-1/src/game_inventory.h
Examining data/cataclysm-dda-0.E-1/src/game_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/game_ui.h
Examining data/cataclysm-dda-0.E-1/src/gamemode.cpp
Examining data/cataclysm-dda-0.E-1/src/gamemode.h
Examining data/cataclysm-dda-0.E-1/src/gamemode_defense.cpp
Examining data/cataclysm-dda-0.E-1/src/gamemode_defense.h
Examining data/cataclysm-dda-0.E-1/src/gamemode_tutorial.cpp
Examining data/cataclysm-dda-0.E-1/src/gamemode_tutorial.h
Examining data/cataclysm-dda-0.E-1/src/gates.cpp
Examining data/cataclysm-dda-0.E-1/src/gates.h
Examining data/cataclysm-dda-0.E-1/src/generic_factory.h
Examining data/cataclysm-dda-0.E-1/src/get_version.h
Examining data/cataclysm-dda-0.E-1/src/grab.cpp
Examining data/cataclysm-dda-0.E-1/src/gun_mode.h
Examining data/cataclysm-dda-0.E-1/src/handle_action.cpp
Examining data/cataclysm-dda-0.E-1/src/handle_liquid.cpp
Examining data/cataclysm-dda-0.E-1/src/handle_liquid.h
Examining data/cataclysm-dda-0.E-1/src/harvest.cpp
Examining data/cataclysm-dda-0.E-1/src/harvest.h
Examining data/cataclysm-dda-0.E-1/src/hash_utils.h
Examining data/cataclysm-dda-0.E-1/src/help.cpp
Examining data/cataclysm-dda-0.E-1/src/help.h
Examining data/cataclysm-dda-0.E-1/src/iexamine.cpp
Examining data/cataclysm-dda-0.E-1/src/iexamine.h
Examining data/cataclysm-dda-0.E-1/src/ime.cpp
Examining data/cataclysm-dda-0.E-1/src/ime.h
Examining data/cataclysm-dda-0.E-1/src/init.cpp
Examining data/cataclysm-dda-0.E-1/src/init.h
Examining data/cataclysm-dda-0.E-1/src/input.cpp
Examining data/cataclysm-dda-0.E-1/src/input.h
Examining data/cataclysm-dda-0.E-1/src/int_id.h
Examining data/cataclysm-dda-0.E-1/src/inventory.cpp
Examining data/cataclysm-dda-0.E-1/src/inventory.h
Examining data/cataclysm-dda-0.E-1/src/inventory_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/inventory_ui.h
Examining data/cataclysm-dda-0.E-1/src/io_tags.h
Examining data/cataclysm-dda-0.E-1/src/item.cpp
Parsing failed to find end of parameter list; semicolon terminated it in ( contents.begin(), contents.end(), rhs.contents.begin(), []( const item & a,
    const item & b ) {
        return a.charges == b.charges && a.stacks_with( b );
    } );
}

bool item::merge_charges( 
Examining data/cataclysm-dda-0.E-1/src/item.h
Examining data/cataclysm-dda-0.E-1/src/item_action.cpp
Examining data/cataclysm-dda-0.E-1/src/item_action.h
Examining data/cataclysm-dda-0.E-1/src/item_category.cpp
Examining data/cataclysm-dda-0.E-1/src/item_category.h
Examining data/cataclysm-dda-0.E-1/src/item_factory.cpp
Examining data/cataclysm-dda-0.E-1/src/item_factory.h
Examining data/cataclysm-dda-0.E-1/src/item_group.cpp
Examining data/cataclysm-dda-0.E-1/src/item_group.h
Examining data/cataclysm-dda-0.E-1/src/item_location.cpp
Examining data/cataclysm-dda-0.E-1/src/item_location.h
Examining data/cataclysm-dda-0.E-1/src/item_search.cpp
Examining data/cataclysm-dda-0.E-1/src/item_search.h
Examining data/cataclysm-dda-0.E-1/src/item_stack.cpp
Examining data/cataclysm-dda-0.E-1/src/item_stack.h
Examining data/cataclysm-dda-0.E-1/src/iteminfo_query.cpp
Examining data/cataclysm-dda-0.E-1/src/iteminfo_query.h
Examining data/cataclysm-dda-0.E-1/src/itype.cpp
Examining data/cataclysm-dda-0.E-1/src/itype.h
Examining data/cataclysm-dda-0.E-1/src/iuse.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse.h
Examining data/cataclysm-dda-0.E-1/src/iuse_actor.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_actor.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software_kitten.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software_kitten.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software_lightson.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software_lightson.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software_minesweeper.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software_minesweeper.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software_snake.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software_snake.h
Examining data/cataclysm-dda-0.E-1/src/iuse_software_sokoban.cpp
Examining data/cataclysm-dda-0.E-1/src/iuse_software_sokoban.h
Examining data/cataclysm-dda-0.E-1/src/json.cpp
Examining data/cataclysm-dda-0.E-1/src/json.h
Examining data/cataclysm-dda-0.E-1/src/kill_tracker.cpp
Examining data/cataclysm-dda-0.E-1/src/kill_tracker.h
Examining data/cataclysm-dda-0.E-1/src/lightmap.cpp
Examining data/cataclysm-dda-0.E-1/src/lightmap.h
Examining data/cataclysm-dda-0.E-1/src/line.cpp
Examining data/cataclysm-dda-0.E-1/src/line.h
Examining data/cataclysm-dda-0.E-1/src/list.h
Examining data/cataclysm-dda-0.E-1/src/live_view.cpp
Examining data/cataclysm-dda-0.E-1/src/live_view.h
Examining data/cataclysm-dda-0.E-1/src/loading_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/loading_ui.h
Examining data/cataclysm-dda-0.E-1/src/lru_cache.cpp
Examining data/cataclysm-dda-0.E-1/src/lru_cache.h
Examining data/cataclysm-dda-0.E-1/src/magic.cpp
Examining data/cataclysm-dda-0.E-1/src/magic.h
Examining data/cataclysm-dda-0.E-1/src/magic_enchantment.cpp
Examining data/cataclysm-dda-0.E-1/src/magic_enchantment.h
Examining data/cataclysm-dda-0.E-1/src/magic_spell_effect.cpp
Examining data/cataclysm-dda-0.E-1/src/magic_teleporter_list.cpp
Examining data/cataclysm-dda-0.E-1/src/magic_teleporter_list.h
Examining data/cataclysm-dda-0.E-1/src/magic_ter_fur_transform.cpp
Examining data/cataclysm-dda-0.E-1/src/magic_ter_furn_transform.h
Examining data/cataclysm-dda-0.E-1/src/main.cpp
Examining data/cataclysm-dda-0.E-1/src/main_menu.cpp
Examining data/cataclysm-dda-0.E-1/src/main_menu.h
Examining data/cataclysm-dda-0.E-1/src/map.cpp
Examining data/cataclysm-dda-0.E-1/src/map.h
Examining data/cataclysm-dda-0.E-1/src/map_extras.cpp
Examining data/cataclysm-dda-0.E-1/src/map_extras.h
Examining data/cataclysm-dda-0.E-1/src/map_field.cpp
Examining data/cataclysm-dda-0.E-1/src/map_item_stack.cpp
Examining data/cataclysm-dda-0.E-1/src/map_item_stack.h
Examining data/cataclysm-dda-0.E-1/src/map_iterator.h
Examining data/cataclysm-dda-0.E-1/src/map_memory.cpp
Examining data/cataclysm-dda-0.E-1/src/map_memory.h
Examining data/cataclysm-dda-0.E-1/src/map_selector.cpp
Examining data/cataclysm-dda-0.E-1/src/map_selector.h
Examining data/cataclysm-dda-0.E-1/src/mapbuffer.cpp
Examining data/cataclysm-dda-0.E-1/src/mapbuffer.h
Examining data/cataclysm-dda-0.E-1/src/mapdata.cpp
Examining data/cataclysm-dda-0.E-1/src/mapdata.h
Examining data/cataclysm-dda-0.E-1/src/mapgen.cpp
Examining data/cataclysm-dda-0.E-1/src/mapgen.h
Examining data/cataclysm-dda-0.E-1/src/mapgen_functions.cpp
Parsing failed to find end of parameter list; semicolon terminated it in ( std::begin( a2 ), std::end( a2 ), a1,
    []( int a, bool b ) {
        return static_cast<bool>( a ) == b;
    } );
}

// mapgen_road replaces previous mapgen_road_straight _end _curved _tee _four_
Examining data/cataclysm-dda-0.E-1/src/mapgen_functions.h
Examining data/cataclysm-dda-0.E-1/src/mapgendata.cpp
Examining data/cataclysm-dda-0.E-1/src/mapgendata.h
Examining data/cataclysm-dda-0.E-1/src/mapgenformat.cpp
Examining data/cataclysm-dda-0.E-1/src/mapgenformat.h
Examining data/cataclysm-dda-0.E-1/src/mapsharing.cpp
Examining data/cataclysm-dda-0.E-1/src/mapsharing.h
Examining data/cataclysm-dda-0.E-1/src/martialarts.cpp
Examining data/cataclysm-dda-0.E-1/src/martialarts.h
Examining data/cataclysm-dda-0.E-1/src/material.cpp
Examining data/cataclysm-dda-0.E-1/src/material.h
Examining data/cataclysm-dda-0.E-1/src/math_defines.h
Examining data/cataclysm-dda-0.E-1/src/mattack_actors.cpp
Examining data/cataclysm-dda-0.E-1/src/mattack_actors.h
Examining data/cataclysm-dda-0.E-1/src/mattack_common.h
Examining data/cataclysm-dda-0.E-1/src/melee.cpp
Examining data/cataclysm-dda-0.E-1/src/melee.h
Examining data/cataclysm-dda-0.E-1/src/memorial_logger.cpp
Examining data/cataclysm-dda-0.E-1/src/memorial_logger.h
Examining data/cataclysm-dda-0.E-1/src/memory_fast.h
Examining data/cataclysm-dda-0.E-1/src/messages.cpp
Examining data/cataclysm-dda-0.E-1/src/messages.h
Examining data/cataclysm-dda-0.E-1/src/mingw.thread.h
Examining data/cataclysm-dda-0.E-1/src/mission.cpp
Examining data/cataclysm-dda-0.E-1/src/mission.h
Examining data/cataclysm-dda-0.E-1/src/mission_companion.cpp
Examining data/cataclysm-dda-0.E-1/src/mission_companion.h
Examining data/cataclysm-dda-0.E-1/src/mission_end.cpp
Examining data/cataclysm-dda-0.E-1/src/mission_place.cpp
Examining data/cataclysm-dda-0.E-1/src/mission_start.cpp
Examining data/cataclysm-dda-0.E-1/src/mission_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/mission_util.cpp
Examining data/cataclysm-dda-0.E-1/src/missiondef.cpp
Examining data/cataclysm-dda-0.E-1/src/mod_manager.cpp
Examining data/cataclysm-dda-0.E-1/src/mod_manager.h
Examining data/cataclysm-dda-0.E-1/src/mod_manager_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/mod_tileset.cpp
Examining data/cataclysm-dda-0.E-1/src/mod_tileset.h
Examining data/cataclysm-dda-0.E-1/src/monattack.cpp
Examining data/cataclysm-dda-0.E-1/src/monattack.h
Examining data/cataclysm-dda-0.E-1/src/mondeath.cpp
Examining data/cataclysm-dda-0.E-1/src/mondeath.h
Examining data/cataclysm-dda-0.E-1/src/mondefense.cpp
Examining data/cataclysm-dda-0.E-1/src/mondefense.h
Examining data/cataclysm-dda-0.E-1/src/monexamine.cpp
Examining data/cataclysm-dda-0.E-1/src/monexamine.h
Examining data/cataclysm-dda-0.E-1/src/monfaction.cpp
Examining data/cataclysm-dda-0.E-1/src/monfaction.h
Examining data/cataclysm-dda-0.E-1/src/mongroup.cpp
Examining data/cataclysm-dda-0.E-1/src/mongroup.h
Examining data/cataclysm-dda-0.E-1/src/monmove.cpp
Examining data/cataclysm-dda-0.E-1/src/monster.cpp
Examining data/cataclysm-dda-0.E-1/src/monster.h
Examining data/cataclysm-dda-0.E-1/src/monstergenerator.cpp
Examining data/cataclysm-dda-0.E-1/src/monstergenerator.h
Examining data/cataclysm-dda-0.E-1/src/morale.cpp
Examining data/cataclysm-dda-0.E-1/src/morale.h
Examining data/cataclysm-dda-0.E-1/src/morale_types.cpp
Examining data/cataclysm-dda-0.E-1/src/morale_types.h
Examining data/cataclysm-dda-0.E-1/src/mtype.cpp
Examining data/cataclysm-dda-0.E-1/src/mtype.h
Examining data/cataclysm-dda-0.E-1/src/mutation.cpp
Examining data/cataclysm-dda-0.E-1/src/mutation.h
Examining data/cataclysm-dda-0.E-1/src/mutation_data.cpp
Examining data/cataclysm-dda-0.E-1/src/mutation_type.cpp
Examining data/cataclysm-dda-0.E-1/src/mutation_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/name.cpp
Examining data/cataclysm-dda-0.E-1/src/name.h
Examining data/cataclysm-dda-0.E-1/src/ncurses_def.cpp
Examining data/cataclysm-dda-0.E-1/src/newcharacter.cpp
Examining data/cataclysm-dda-0.E-1/src/npc.cpp
Examining data/cataclysm-dda-0.E-1/src/npc.h
Examining data/cataclysm-dda-0.E-1/src/npc_class.cpp
Examining data/cataclysm-dda-0.E-1/src/npc_class.h
Examining data/cataclysm-dda-0.E-1/src/npc_favor.h
Examining data/cataclysm-dda-0.E-1/src/npcmove.cpp
Examining data/cataclysm-dda-0.E-1/src/npctalk.cpp
Examining data/cataclysm-dda-0.E-1/src/npctalk.h
Examining data/cataclysm-dda-0.E-1/src/npctalk_funcs.cpp
Examining data/cataclysm-dda-0.E-1/src/npctrade.cpp
Examining data/cataclysm-dda-0.E-1/src/npctrade.h
Examining data/cataclysm-dda-0.E-1/src/omdata.h
Examining data/cataclysm-dda-0.E-1/src/optional.h
Examining data/cataclysm-dda-0.E-1/src/options.cpp
Examining data/cataclysm-dda-0.E-1/src/options.h
Examining data/cataclysm-dda-0.E-1/src/output.cpp
Examining data/cataclysm-dda-0.E-1/src/output.h
Examining data/cataclysm-dda-0.E-1/src/overlay_ordering.cpp
Examining data/cataclysm-dda-0.E-1/src/overlay_ordering.h
Examining data/cataclysm-dda-0.E-1/src/overmap.cpp
Examining data/cataclysm-dda-0.E-1/src/overmap.h
Examining data/cataclysm-dda-0.E-1/src/overmap_connection.cpp
Examining data/cataclysm-dda-0.E-1/src/overmap_connection.h
Examining data/cataclysm-dda-0.E-1/src/overmap_location.cpp
Examining data/cataclysm-dda-0.E-1/src/overmap_location.h
Examining data/cataclysm-dda-0.E-1/src/overmap_noise.cpp
Examining data/cataclysm-dda-0.E-1/src/overmap_noise.h
Examining data/cataclysm-dda-0.E-1/src/overmap_types.h
Examining data/cataclysm-dda-0.E-1/src/overmap_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/overmap_ui.h
Examining data/cataclysm-dda-0.E-1/src/overmapbuffer.cpp
Examining data/cataclysm-dda-0.E-1/src/overmapbuffer.h
Examining data/cataclysm-dda-0.E-1/src/panels.cpp
Examining data/cataclysm-dda-0.E-1/src/panels.h
Examining data/cataclysm-dda-0.E-1/src/path_info.h
Examining data/cataclysm-dda-0.E-1/src/pathfinding.cpp
Examining data/cataclysm-dda-0.E-1/src/pathfinding.h
Examining data/cataclysm-dda-0.E-1/src/pickup.cpp
Examining data/cataclysm-dda-0.E-1/src/pickup.h
Examining data/cataclysm-dda-0.E-1/src/pimpl.h
Examining data/cataclysm-dda-0.E-1/src/pixel_minimap.cpp
Examining data/cataclysm-dda-0.E-1/src/pixel_minimap.h
Examining data/cataclysm-dda-0.E-1/src/pixel_minimap_projectors.cpp
Examining data/cataclysm-dda-0.E-1/src/pixel_minimap_projectors.h
Examining data/cataclysm-dda-0.E-1/src/platform_win.h
Examining data/cataclysm-dda-0.E-1/src/player.cpp
Examining data/cataclysm-dda-0.E-1/src/player.h
Examining data/cataclysm-dda-0.E-1/src/player_activity.cpp
Examining data/cataclysm-dda-0.E-1/src/player_activity.h
Examining data/cataclysm-dda-0.E-1/src/player_display.cpp
Examining data/cataclysm-dda-0.E-1/src/player_hardcoded_effects.cpp
Examining data/cataclysm-dda-0.E-1/src/pldata.h
Examining data/cataclysm-dda-0.E-1/src/point.cpp
Examining data/cataclysm-dda-0.E-1/src/point.h
Examining data/cataclysm-dda-0.E-1/src/popup.cpp
Examining data/cataclysm-dda-0.E-1/src/popup.h
Examining data/cataclysm-dda-0.E-1/src/posix_time.cpp
Examining data/cataclysm-dda-0.E-1/src/posix_time.h
Examining data/cataclysm-dda-0.E-1/src/profession.cpp
Examining data/cataclysm-dda-0.E-1/src/profession.h
Examining data/cataclysm-dda-0.E-1/src/projectile.cpp
Examining data/cataclysm-dda-0.E-1/src/projectile.h
Examining data/cataclysm-dda-0.E-1/src/ranged.cpp
Examining data/cataclysm-dda-0.E-1/src/ranged.h
Examining data/cataclysm-dda-0.E-1/src/recipe.cpp
Examining data/cataclysm-dda-0.E-1/src/recipe.h
Examining data/cataclysm-dda-0.E-1/src/recipe_dictionary.cpp
Examining data/cataclysm-dda-0.E-1/src/recipe_dictionary.h
Examining data/cataclysm-dda-0.E-1/src/recipe_groups.cpp
Examining data/cataclysm-dda-0.E-1/src/recipe_groups.h
Examining data/cataclysm-dda-0.E-1/src/rect_range.h
Examining data/cataclysm-dda-0.E-1/src/regional_settings.cpp
Examining data/cataclysm-dda-0.E-1/src/regional_settings.h
Examining data/cataclysm-dda-0.E-1/src/relic.cpp
Examining data/cataclysm-dda-0.E-1/src/relic.h
Examining data/cataclysm-dda-0.E-1/src/requirements.cpp
Examining data/cataclysm-dda-0.E-1/src/requirements.h
Examining data/cataclysm-dda-0.E-1/src/ret_val.h
Examining data/cataclysm-dda-0.E-1/src/rng.cpp
Examining data/cataclysm-dda-0.E-1/src/rng.h
Examining data/cataclysm-dda-0.E-1/src/rotatable_symbols.cpp
Examining data/cataclysm-dda-0.E-1/src/rotatable_symbols.h
Examining data/cataclysm-dda-0.E-1/src/safe_reference.cpp
Examining data/cataclysm-dda-0.E-1/src/safe_reference.h
Examining data/cataclysm-dda-0.E-1/src/safemode_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/safemode_ui.h
Examining data/cataclysm-dda-0.E-1/src/savegame.cpp
Examining data/cataclysm-dda-0.E-1/src/savegame_json.cpp
Examining data/cataclysm-dda-0.E-1/src/savegame_legacy.cpp
Examining data/cataclysm-dda-0.E-1/src/scenario.cpp
Examining data/cataclysm-dda-0.E-1/src/scenario.h
Examining data/cataclysm-dda-0.E-1/src/scent_block.h
Examining data/cataclysm-dda-0.E-1/src/scent_map.cpp
Examining data/cataclysm-dda-0.E-1/src/scent_map.h
Examining data/cataclysm-dda-0.E-1/src/scores_ui.cpp
Examining data/cataclysm-dda-0.E-1/src/scores_ui.h
Examining data/cataclysm-dda-0.E-1/src/sdl_utils.cpp
Examining data/cataclysm-dda-0.E-1/src/sdl_utils.h
Examining data/cataclysm-dda-0.E-1/src/sdl_wrappers.cpp
Examining data/cataclysm-dda-0.E-1/src/sdl_wrappers.h
Examining data/cataclysm-dda-0.E-1/src/sdlsound.cpp
Examining data/cataclysm-dda-0.E-1/src/sdlsound.h
Examining data/cataclysm-dda-0.E-1/src/sdltiles.cpp
Examining data/cataclysm-dda-0.E-1/src/sdltiles.h
Examining data/cataclysm-dda-0.E-1/src/shadowcasting.h
Examining data/cataclysm-dda-0.E-1/src/simple_pathfinding.h
Examining data/cataclysm-dda-0.E-1/src/simplexnoise.cpp
Examining data/cataclysm-dda-0.E-1/src/simplexnoise.h
Examining data/cataclysm-dda-0.E-1/src/skill.cpp
Examining data/cataclysm-dda-0.E-1/src/skill.h
Examining data/cataclysm-dda-0.E-1/src/skill_boost.cpp
Examining data/cataclysm-dda-0.E-1/src/skill_boost.h
Examining data/cataclysm-dda-0.E-1/src/sounds.cpp
Examining data/cataclysm-dda-0.E-1/src/sounds.h
Examining data/cataclysm-dda-0.E-1/src/speech.cpp
Examining data/cataclysm-dda-0.E-1/src/speech.h
Examining data/cataclysm-dda-0.E-1/src/start_location.cpp
Examining data/cataclysm-dda-0.E-1/src/start_location.h
Examining data/cataclysm-dda-0.E-1/src/stats_tracker.cpp
Examining data/cataclysm-dda-0.E-1/src/stats_tracker.h
Examining data/cataclysm-dda-0.E-1/src/stomach.cpp
Examining data/cataclysm-dda-0.E-1/src/stomach.h
Examining data/cataclysm-dda-0.E-1/src/string_formatter.cpp
Examining data/cataclysm-dda-0.E-1/src/string_formatter.h
Examining data/cataclysm-dda-0.E-1/src/string_id.h
Examining data/cataclysm-dda-0.E-1/src/string_id_null_ids.cpp
Examining data/cataclysm-dda-0.E-1/src/string_input_popup.cpp
Examining data/cataclysm-dda-0.E-1/src/string_input_popup.h
Examining data/cataclysm-dda-0.E-1/src/submap.cpp
Examining data/cataclysm-dda-0.E-1/src/submap.h
Examining data/cataclysm-dda-0.E-1/src/suffer.cpp
Examining data/cataclysm-dda-0.E-1/src/teleport.cpp
Examining data/cataclysm-dda-0.E-1/src/teleport.h
Examining data/cataclysm-dda-0.E-1/src/text_snippets.cpp
Examining data/cataclysm-dda-0.E-1/src/text_snippets.h
Examining data/cataclysm-dda-0.E-1/src/text_style_check.h
Examining data/cataclysm-dda-0.E-1/src/tileray.cpp
Examining data/cataclysm-dda-0.E-1/src/tileray.h
Examining data/cataclysm-dda-0.E-1/src/timed_event.cpp
Examining data/cataclysm-dda-0.E-1/src/timed_event.h
Examining data/cataclysm-dda-0.E-1/src/trait_group.cpp
Examining data/cataclysm-dda-0.E-1/src/trait_group.h
Examining data/cataclysm-dda-0.E-1/src/translations.cpp
Examining data/cataclysm-dda-0.E-1/src/translations.h
Examining data/cataclysm-dda-0.E-1/src/trap.cpp
Examining data/cataclysm-dda-0.E-1/src/trap.h
Examining data/cataclysm-dda-0.E-1/src/trapfunc.cpp
Examining data/cataclysm-dda-0.E-1/src/turret.cpp
Examining data/cataclysm-dda-0.E-1/src/type_id.h
Examining data/cataclysm-dda-0.E-1/src/ui.cpp
Examining data/cataclysm-dda-0.E-1/src/ui.h
Examining data/cataclysm-dda-0.E-1/src/uistate.h
Examining data/cataclysm-dda-0.E-1/src/units.cpp
Examining data/cataclysm-dda-0.E-1/src/units.h
Examining data/cataclysm-dda-0.E-1/src/value_ptr.h
Examining data/cataclysm-dda-0.E-1/src/veh_interact.cpp
Examining data/cataclysm-dda-0.E-1/src/veh_interact.h
Examining data/cataclysm-dda-0.E-1/src/veh_type.cpp
Examining data/cataclysm-dda-0.E-1/src/veh_type.h
Examining data/cataclysm-dda-0.E-1/src/veh_utils.cpp
Examining data/cataclysm-dda-0.E-1/src/veh_utils.h
Examining data/cataclysm-dda-0.E-1/src/vehicle.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle.h
Examining data/cataclysm-dda-0.E-1/src/vehicle_display.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle_group.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle_group.h
Examining data/cataclysm-dda-0.E-1/src/vehicle_move.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle_part.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle_selector.cpp
Examining data/cataclysm-dda-0.E-1/src/vehicle_selector.h
Examining data/cataclysm-dda-0.E-1/src/vehicle_use.cpp
Examining data/cataclysm-dda-0.E-1/src/version.cpp
Examining data/cataclysm-dda-0.E-1/src/visitable.cpp
Examining data/cataclysm-dda-0.E-1/src/visitable.h
Examining data/cataclysm-dda-0.E-1/src/vitamin.cpp
Examining data/cataclysm-dda-0.E-1/src/vitamin.h
Examining data/cataclysm-dda-0.E-1/src/vpart_position.h
Examining data/cataclysm-dda-0.E-1/src/vpart_range.h
Examining data/cataclysm-dda-0.E-1/src/wcwidth.cpp
Examining data/cataclysm-dda-0.E-1/src/wcwidth.h
Examining data/cataclysm-dda-0.E-1/src/wdirent.h
Examining data/cataclysm-dda-0.E-1/src/weather.cpp
Examining data/cataclysm-dda-0.E-1/src/weather.h
Examining data/cataclysm-dda-0.E-1/src/weather_data.cpp
Examining data/cataclysm-dda-0.E-1/src/weather_gen.cpp
Examining data/cataclysm-dda-0.E-1/src/weather_gen.h
Examining data/cataclysm-dda-0.E-1/src/weighted_list.h
Examining data/cataclysm-dda-0.E-1/src/wincurse.cpp
Examining data/cataclysm-dda-0.E-1/src/wish.cpp
Examining data/cataclysm-dda-0.E-1/src/worldfactory.cpp
Examining data/cataclysm-dda-0.E-1/src/worldfactory.h
Examining data/cataclysm-dda-0.E-1/src/path_info.cpp
Examining data/cataclysm-dda-0.E-1/tests/active_item_cache_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/algo_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/archery_damage_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/assertion_helpers.h
Examining data/cataclysm-dda-0.E-1/tests/behavior_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/bionics_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/calendar_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/cata_utility_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/cata_variant_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/catacharset_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/catch/catch.hpp
Examining data/cataclysm-dda-0.E-1/tests/char_edible_rating_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/char_healing_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/char_stamina_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/char_validity_check_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/colony_list_test_helpers.h
Examining data/cataclysm-dda-0.E-1/tests/colony_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/comestible_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/crafting_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/creature_in_field_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/creature_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/encumbrance_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/event_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/explosion_balance_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/fake_messages.cpp
Examining data/cataclysm-dda-0.E-1/tests/flat_set_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/fold_string_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/food_fun_for_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/ground_destroy_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/hash_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/health_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/invlet_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/item_location_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/item_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/item_tname_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/item_type_name_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/iteminfo_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/itemname_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/iuse_actor_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/iuse_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/json_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/line_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/list_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/map_helpers.cpp
Examining data/cataclysm-dda-0.E-1/tests/map_helpers.h
Examining data/cataclysm-dda-0.E-1/tests/map_iterator_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/map_memory_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/map_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/math_functions_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/melee_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/memorial_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/modify_morale_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/mondefense_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/monster_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/monster_vision_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/morale_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/mutation_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/name_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/new_character_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/npc_talk_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/npc_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/optional_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/options_helpers.cpp
Examining data/cataclysm-dda-0.E-1/tests/options_helpers.h
Examining data/cataclysm-dda-0.E-1/tests/overmap_noise_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/overmap_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/player_helpers.cpp
Examining data/cataclysm-dda-0.E-1/tests/player_helpers.h
Examining data/cataclysm-dda-0.E-1/tests/player_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/point_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/ranged_balance_test.cpp
Parsing failed to find end of parameter list; semicolon terminated it in ( data.begin(), data.end(),
                        Creature::dispersion_for_even_chance_of_good_hit.begin(),
                        Creature::dispersion_for_even_chance_of_good_hit.end(),
        []
Examining data/cataclysm-dda-0.E-1/tests/reading_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/reload_magazine_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/reload_option_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/reloading_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/requirements_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/rewrite_vsnprintf_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/rng_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/rot_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/safe_reference_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/shadowcasting_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/stats_tracker_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/stomach_contents_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/string_formatter_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/stringmaker.h
Examining data/cataclysm-dda-0.E-1/tests/submap_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/temperature_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/test_main.cpp
Examining data/cataclysm-dda-0.E-1/tests/test_statistics.cpp
Examining data/cataclysm-dda-0.E-1/tests/test_statistics.h
Examining data/cataclysm-dda-0.E-1/tests/throwing_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/units_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/value_ptr_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_drag_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_efficiency_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_interact_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_part_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_power_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_split_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vehicle_turrets_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/vision_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/visitable_remove_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/visitable_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/weather_test.cpp
Examining data/cataclysm-dda-0.E-1/tests/wield_times_test.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/CataTidyModule.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/JsonTranslationInputCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/JsonTranslationInputCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/NoLongCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/NoLongCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/NoStaticGettextCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/NoStaticGettextCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/PointInitializationCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/PointInitializationCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/SimplifyPointConstructorsCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/SimplifyPointConstructorsCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/StringLiteralIterator.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/StringLiteralIterator.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TestFilenameCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TestFilenameCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TextStyleCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TextStyleCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TranslatorCommentsCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/TranslatorCommentsCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UseNamedPointConstantsCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UseNamedPointConstantsCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UsePointApisCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UsePointApisCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UsePointArithmeticCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/UsePointArithmeticCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/Utils.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/Utils.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/XYCheck.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/XYCheck.h
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/json-translation-input.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/no-long.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/no-static-gettext.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/point-initialization.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/simplify-point-constructors.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/test-filename.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/text-style.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/translator-comments.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/use-named-point-constants.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/use-point-apis.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/use-point-arithmetic.cpp
Examining data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/xy.cpp
Examining data/cataclysm-dda-0.E-1/tools/format/format.cpp
Examining data/cataclysm-dda-0.E-1/tools/format/getpost.h

FINAL RESULTS:

data/cataclysm-dda-0.E-1/src/compatibility.h:65:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf( buffer, size, format, n );
data/cataclysm-dda-0.E-1/src/compatibility.h:84:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf( buffer, size, format, n );
data/cataclysm-dda-0.E-1/src/debug.cpp:501: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.
        if( 0 == access( candidate.c_str(), X_OK ) ) {
data/cataclysm-dda-0.E-1/src/debug.cpp:533:20:  [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 *nm = popen( cmd.str().c_str(), "re" );
data/cataclysm-dda-0.E-1/src/debug.cpp:793:27:  [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 *addr2line = popen( cmd.str().c_str(), "re" );
data/cataclysm-dda-0.E-1/src/debug.cpp:984:58:  [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.
        std::unique_ptr<FILE, decltype( &pclose )> pipe( popen( command.c_str(), "r" ), pclose );
data/cataclysm-dda-0.E-1/src/output.cpp:1576:28:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        const int result = vsnprintf( &buffer[0], buffer_size, format, args_copy );
data/cataclysm-dda-0.E-1/src/sdl_wrappers.cpp:54:85:  [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.
SDL_Texture_Ptr CreateTexture( const SDL_Renderer_Ptr &renderer, Uint32 format, int access,
data/cataclysm-dda-0.E-1/src/sdl_wrappers.cpp:61:72:  [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.
    SDL_Texture_Ptr result( SDL_CreateTexture( renderer.get(), format, access, w, h ) );
data/cataclysm-dda-0.E-1/src/sdl_wrappers.h:83:85:  [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.
SDL_Texture_Ptr CreateTexture( const SDL_Renderer_Ptr &renderer, Uint32 format, int access,
data/cataclysm-dda-0.E-1/src/string_formatter.h:362:48:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PRINTF_LIKE(a,b) __attribute__((format(printf,a,b)))
data/cataclysm-dda-0.E-1/src/cata_utility.cpp:411:25:  [3] (random) setstate:
  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.
                    ins.setstate( std::ios::eofbit );
data/cataclysm-dda-0.E-1/src/debug.cpp:488:29:  [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 *path = std::getenv( "PATH" );
data/cataclysm-dda-0.E-1/src/filesystem.cpp:166:29:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    const auto result_str = realpath( full_path.c_str(), nullptr );
data/cataclysm-dda-0.E-1/src/ime.cpp:33:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            hImm = LoadLibrary( "imm32.dll" );
data/cataclysm-dda-0.E-1/src/mapsharing.cpp:98:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if( MAP_SHARING::getUsername().empty() && getenv( "USER" ) ) {
data/cataclysm-dda-0.E-1/src/mapsharing.cpp:99:35:  [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.
        MAP_SHARING::setUsername( getenv( "USER" ) );
data/cataclysm-dda-0.E-1/src/melee.cpp:810:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
float player::bonus_damage( bool random ) const
data/cataclysm-dda-0.E-1/src/melee.cpp:813:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if( random ) {
data/cataclysm-dda-0.E-1/src/mission_util.cpp:184:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if( params.random ) {
data/cataclysm-dda-0.E-1/src/npc.cpp:215:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        tem.gender_override = gender::random;
data/cataclysm-dda-0.E-1/src/npc.cpp:293:54:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if( tem.gender_override != npc_template::gender::random ) {
data/cataclysm-dda-0.E-1/src/npc.h:1384:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            random,
data/cataclysm-dda-0.E-1/src/omdata.h:95:6:  [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.
type random();
data/cataclysm-dda-0.E-1/src/overmap.cpp:2915:50:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            const auto start_dir = om_direction::random();
data/cataclysm-dda-0.E-1/src/overmap.cpp:3846:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
om_direction::type om_direction::random()
data/cataclysm-dda-0.E-1/src/path_info.cpp:57:20:  [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.
        user_dir = getenv( "LOCALAPPDATA" );
data/cataclysm-dda-0.E-1/src/path_info.cpp:61:20:  [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.
        user_dir = getenv( "HOME" );
data/cataclysm-dda-0.E-1/src/path_info.cpp:64:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if( ( user_dir = getenv( "XDG_DATA_HOME" ) ) ) {
data/cataclysm-dda-0.E-1/src/path_info.cpp:67:24:  [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.
            user_dir = getenv( "HOME" );
data/cataclysm-dda-0.E-1/src/path_info.cpp:71:20:  [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.
        user_dir = getenv( "HOME" );
data/cataclysm-dda-0.E-1/src/path_info.cpp:106:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if( ( user_dir = getenv( "XDG_CONFIG_HOME" ) ) ) {
data/cataclysm-dda-0.E-1/src/path_info.cpp:109:20:  [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.
        user_dir = getenv( "HOME" );
data/cataclysm-dda-0.E-1/src/player.h:376:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        float bonus_damage( bool random ) const;
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:319:28:  [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 *xmod = getenv( "XMODIFIERS" );
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:3324:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if( ( home = getenv( "HOME" ) ) ) {
data/cataclysm-dda-0.E-1/src/translations.cpp:191:30:  [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 auto env = getenv( "LANGUAGE" );
data/cataclysm-dda-0.E-1/src/translations.cpp:212:16:  [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.
    auto env = getenv( "LANGUAGE" );
data/cataclysm-dda-0.E-1/tests/calendar_test.cpp:13:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    const int num_days = GENERATE( take( 100, random( 0, 1000 ) ) );
data/cataclysm-dda-0.E-1/tests/calendar_test.cpp:31:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    const int num_days = GENERATE( take( 100, random( 0, 1000 ) ) );
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:4452:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:4461:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11639:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            std::srand( config.rngSeed() );
data/cataclysm-dda-0.E-1/tests/creature_test.cpp:60:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand( 4242424242 );
data/cataclysm-dda-0.E-1/tests/creature_test.cpp:69:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand( 4242424242 );
data/cataclysm-dda-0.E-1/tests/creature_test.cpp:78:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand( 4242424242 );
data/cataclysm-dda-0.E-1/tests/line_test.cpp:344:10:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    std::srand( seed );
data/cataclysm-dda-0.E-1/tests/test_main.cpp:288:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand( seed );
data/cataclysm-dda-0.E-1/tools/format/format.cpp:164: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.
    char *gateway_var = getenv( "GATEWAY_INTERFACE" );
data/cataclysm-dda-0.E-1/tools/format/getpost.h:67:21:  [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 *raw_get = getenv( "QUERY_STRING" );
data/cataclysm-dda-0.E-1/tools/format/getpost.h:102: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.
    char *strlength = getenv( "CONTENT_LENGTH" );
data/cataclysm-dda-0.E-1/src/avatar_action.cpp:327:61:  [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).
        veh_closed_door = dpart >= 0 && !veh1->parts[dpart].open;
data/cataclysm-dda-0.E-1/src/avatar_action.cpp:408:23:  [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).
                veh1->open( dpart );
data/cataclysm-dda-0.E-1/src/cata_tiles.cpp:1475:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    constexpr char season_suffix[4][suffix_len] = {
data/cataclysm-dda-0.E-1/src/cata_utility.cpp:381:5:  [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).
    open( mode );
data/cataclysm-dda-0.E-1/src/cata_utility.cpp:490: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 transformation[2] = { 0 };
data/cataclysm-dda-0.E-1/src/cata_utility.h:419:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open( std::ios::openmode mode );
data/cataclysm-dda-0.E-1/src/catacharset.cpp:101: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 out[5];
data/cataclysm-dda-0.E-1/src/catacharset.cpp:103:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char utf8FirstByte[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
data/cataclysm-dda-0.E-1/src/catacharset.cpp:386:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int sz = MultiByteToWideChar( CP_UTF8, 0, str.c_str(), -1, nullptr, 0 ) + 1;
data/cataclysm-dda-0.E-1/src/catacharset.cpp:388:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_UTF8, 0, str.c_str(), -1, &wstr[0], sz );
data/cataclysm-dda-0.E-1/src/catacharset.cpp:424:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int unicode_size = MultiByteToWideChar( CP_ACP, 0, str.c_str(), -1, nullptr, 0 ) + 1;
data/cataclysm-dda-0.E-1/src/catacharset.cpp:426:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_ACP, 0, str.c_str(), -1, &unicode[0], unicode_size );
data/cataclysm-dda-0.E-1/src/catacharset.cpp:445:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int unicode_size = MultiByteToWideChar( CP_UTF8, 0, str.c_str(), -1, nullptr, 0 ) + 1;
data/cataclysm-dda-0.E-1/src/catacharset.cpp:447:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_UTF8, 0, str.c_str(), -1, &unicode[0], unicode_size );
data/cataclysm-dda-0.E-1/src/character.cpp:2901:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                str_max -= atoi( previous_bonus.c_str() );
data/cataclysm-dda-0.E-1/src/character.cpp:2903:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                dex_max -= atoi( previous_bonus.c_str() );
data/cataclysm-dda-0.E-1/src/character.cpp:2905:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int_max -= atoi( previous_bonus.c_str() );
data/cataclysm-dda-0.E-1/src/character.cpp:2907:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                per_max -= atoi( previous_bonus.c_str() );
data/cataclysm-dda-0.E-1/src/colony.h:2436:22:  [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( static_cast<void *>( this ), &source, sizeof( colony ) );
data/cataclysm-dda-0.E-1/src/colony.h:3446:17:  [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 temp[sizeof( colony )];
data/cataclysm-dda-0.E-1/src/colony.h:3447:22:  [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( &temp, static_cast<void *>( this ), sizeof( colony ) );
data/cataclysm-dda-0.E-1/src/colony.h:3448:22:  [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( static_cast<void *>( this ), static_cast<void *>( &source ), sizeof( colony ) );
data/cataclysm-dda-0.E-1/src/colony.h:3449:22:  [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( static_cast<void *>( &source ), &temp, sizeof( colony ) );
data/cataclysm-dda-0.E-1/src/compatibility.h:35: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:45: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:54: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:73: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:92: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:101: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 buffer[size];
data/cataclysm-dda-0.E-1/src/compatibility.h:110: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 buffer[size];
data/cataclysm-dda-0.E-1/src/crash.cpp:82:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *file = fopen( crash_log_file.c_str(), "w" );
data/cataclysm-dda-0.E-1/src/debug.cpp:539:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/cataclysm-dda-0.E-1/src/debug.cpp:642: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.
static char mod_path[module_path_len];
data/cataclysm-dda-0.E-1/src/debug.cpp:645:28:  [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.
    alignas( SYMBOL_INFO ) char storage[sym_size];
data/cataclysm-dda-0.E-1/src/debug.cpp:798:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/cataclysm-dda-0.E-1/src/debug_menu.cpp:1485:44:  [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 new_value = std::atoi( text.c_str() );
data/cataclysm-dda-0.E-1/src/explosion.cpp:173:5:  [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).
    open;
data/cataclysm-dda-0.E-1/src/explosion.cpp:176:5:  [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).
    open.push( std::make_pair( 0.0f, p ) );
data/cataclysm-dda-0.E-1/src/explosion.cpp:179: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).
    while( !open.empty() ) {
data/cataclysm-dda-0.E-1/src/explosion.cpp:181:32:  [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).
        const float distance = open.top().first * rng_float( 1.0f, 1.2f );
data/cataclysm-dda-0.E-1/src/explosion.cpp:182:29:  [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).
        const tripoint pt = open.top().second;
data/cataclysm-dda-0.E-1/src/explosion.cpp:183:9:  [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).
        open.pop();
data/cataclysm-dda-0.E-1/src/explosion.cpp:247: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).
                open.push( std::make_pair( next_dist, dest ) );
data/cataclysm-dda-0.E-1/src/game.cpp:2994: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 buffer[suffix_len] {};
data/cataclysm-dda-0.E-1/src/gates.cpp:195:18:  [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( !open ) { // Closing the gate...
data/cataclysm-dda-0.E-1/src/gates.cpp:222: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).
        if( open ) {
data/cataclysm-dda-0.E-1/src/handle_action.cpp:478: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).
static void open()
data/cataclysm-dda-0.E-1/src/handle_action.cpp:505:26:  [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).
                    veh->open( openable );
data/cataclysm-dda-0.E-1/src/handle_action.cpp:1786:21:  [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).
                    open();
data/cataclysm-dda-0.E-1/src/iexamine.cpp:877: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).
        if( open ) {
data/cataclysm-dda-0.E-1/src/iexamine.cpp:917: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).
        if( open ) {
data/cataclysm-dda-0.E-1/src/iexamine.cpp:3908:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            return atoi( tag.substr( 15 ).c_str() );
data/cataclysm-dda-0.E-1/src/item.cpp:997: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).
    return tripoint( atoi( values[0].c_str() ),
data/cataclysm-dda-0.E-1/src/item.cpp:998: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).
                     atoi( values[1].c_str() ),
data/cataclysm-dda-0.E-1/src/item.cpp:999: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).
                     atoi( values[2].c_str() ) );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:207:44:  [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).
            obj.light_emission = std::max( atoi( tag.substr( 6 ).c_str() ), 0 );
data/cataclysm-dda-0.E-1/src/iuse.cpp:6380:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                const int quality = atoi( chq );
data/cataclysm-dda-0.E-1/src/iuse.cpp:6390:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    const int old_quality = atoi( chq );
data/cataclysm-dda-0.E-1/src/iuse.cpp:6646:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                const int quality = atoi( chq );
data/cataclysm-dda-0.E-1/src/iuse.cpp:6851:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( !ter->open.is_null() || ( ter->examine != iexamine::none &&
data/cataclysm-dda-0.E-1/src/iuse.cpp:7440:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            const int old_quality = atoi( quality_char ); // get qual number from char
data/cataclysm-dda-0.E-1/src/iuse.cpp:7755:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            const int quality = atoi( chq );
data/cataclysm-dda-0.E-1/src/iuse_software_kitten.cpp:236: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 ktile[83] =
data/cataclysm-dda-0.E-1/src/json.cpp:36: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 out[5];
data/cataclysm-dda-0.E-1/src/json.cpp:38:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char utf8FirstByte[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
data/cataclysm-dda-0.E-1/src/json.cpp:885: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 text[5];
data/cataclysm-dda-0.E-1/src/json.cpp:898: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 text[6];
data/cataclysm-dda-0.E-1/src/json.cpp:911: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 text[5];
data/cataclysm-dda-0.E-1/src/json.cpp:950: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 unihex[5] = "0000";
data/cataclysm-dda-0.E-1/src/json.cpp:1217: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 text[5];
data/cataclysm-dda-0.E-1/src/lightmap.cpp:156: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( &vision_transparency_cache, &transparency_cache, sizeof( transparency_cache ) );
data/cataclysm-dda-0.E-1/src/list.h:253:30:  [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( static_cast<void *>( this ), &source, sizeof( group_vector ) );
data/cataclysm-dda-0.E-1/src/list.h:376:30:  [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( static_cast<void *>( &*block_pointer ), static_cast<void *>( &*old_block ),
data/cataclysm-dda-0.E-1/src/list.h:465:30:  [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( static_cast<void *>( &*temp_group ), static_cast<void *>( &*group_to_erase ),
data/cataclysm-dda-0.E-1/src/list.h:469:30:  [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( static_cast<void *>( &*( block_pointer + size - 1 ) ),
data/cataclysm-dda-0.E-1/src/list.h:650:25:  [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 temp[sizeof( group_vector )];
data/cataclysm-dda-0.E-1/src/list.h:651:30:  [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( static_cast<void *>( &temp ), static_cast<void *>( this ), sizeof( group_vector ) );
data/cataclysm-dda-0.E-1/src/list.h:652:30:  [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( static_cast<void *>( this ), static_cast<void *>( &source ), sizeof( group_vector ) );
data/cataclysm-dda-0.E-1/src/list.h:653:30:  [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( static_cast<void *>( &source ), static_cast<void *>( &temp ), sizeof( group_vector ) );
data/cataclysm-dda-0.E-1/src/list.h:700:30:  [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( static_cast<void *>( &*block_pointer + size ),
data/cataclysm-dda-0.E-1/src/main.cpp:66: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[128];
data/cataclysm-dda-0.E-1/src/map.cpp:2928:18:  [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 signed char cx[4] = { 0, -1, 0, 1};
data/cataclysm-dda-0.E-1/src/map.cpp:2929:18:  [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 signed char cy[4] = { -1,  0, 1, 0};
data/cataclysm-dda-0.E-1/src/map.cpp:3703: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).
    if( ter.open ) {
data/cataclysm-dda-0.E-1/src/map.cpp:3711:29:  [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).
            ter_set( p, ter.open );
data/cataclysm-dda-0.E-1/src/map.cpp:3721:21:  [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).
    } else if( furn.open ) {
data/cataclysm-dda-0.E-1/src/map.cpp:3729:31:  [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).
            furn_set( p, furn.open );
data/cataclysm-dda-0.E-1/src/map.cpp:7713:51:  [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( dpart < 0 || !v->parts[dpart].open ) {
data/cataclysm-dda-0.E-1/src/map.cpp:8096:27:  [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( vp.part().open ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2054:84:  [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).
    std::priority_queue<gas_blast, std::vector<gas_blast>, pair_greater_cmp_first> open;
data/cataclysm-dda-0.E-1/src/map_field.cpp:2056:5:  [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).
    open.push( { 0.0f, center } );
data/cataclysm-dda-0.E-1/src/map_field.cpp:2060:27:  [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).
    while( amount > 0 && !open.empty() ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2061:27:  [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( closed.count( open.top().second ) ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2062: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).
            open.pop();
data/cataclysm-dda-0.E-1/src/map_field.cpp:2068:30:  [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).
        gas_front.push_back( open.top() );
data/cataclysm-dda-0.E-1/src/map_field.cpp:2069:56:  [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).
        const int cur_intensity = get_field_intensity( open.top().second, type );
data/cataclysm-dda-0.E-1/src/map_field.cpp:2070:9:  [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).
        open.pop();
data/cataclysm-dda-0.E-1/src/map_field.cpp:2071: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).
        while( !open.empty() && get_field_intensity( open.top().second, type ) == cur_intensity ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2071:54:  [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).
        while( !open.empty() && get_field_intensity( open.top().second, type ) == cur_intensity ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2072:31:  [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( closed.count( open.top().second ) == 0 ) {
data/cataclysm-dda-0.E-1/src/map_field.cpp:2073:38:  [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).
                gas_front.push_back( open.top() );
data/cataclysm-dda-0.E-1/src/map_field.cpp:2076: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).
            open.pop();
data/cataclysm-dda-0.E-1/src/map_field.cpp:2110: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).
                open.push( { static_cast<float>( rl_dist( center, pt ) ), pt } );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:325:18:  [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).
ter_t::ter_t() : open( ter_str_id::NULL_ID() ), close( ter_str_id::NULL_ID() ),
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1166:39:  [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).
    optional( jo, was_loaded, "open", open, ter_str_id::NULL_ID() );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1224:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( !open.is_valid() ) {
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1225:56:  [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).
        debugmsg( "invalid terrain %s for opening %s", open.c_str(), id.c_str() );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1235:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
furn_t::furn_t() : open( furn_str_id::NULL_ID() ), close( furn_str_id::NULL_ID() ) {}
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1271:39:  [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).
    optional( jo, was_loaded, "open", open, string_id_reader<furn_t> {}, furn_str_id::NULL_ID() );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1302:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( !open.is_valid() ) {
data/cataclysm-dda-0.E-1/src/mapdata.cpp:1303:58:  [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).
        debugmsg( "invalid furniture %s for opening %s", open.c_str(), id.c_str() );
data/cataclysm-dda-0.E-1/src/mapdata.h:323: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).
    ter_str_id open;  // Open action: transform into terrain with matching id
data/cataclysm-dda-0.E-1/src/mapdata.h:350: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).
    furn_str_id open;  // Open action: transform into furniture with matching id
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4867:36:  [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).
            std::vector<direction> open;
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4869: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).
                open.push_back( NORTH );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4872: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).
                open.push_back( EAST );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4875: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).
                open.push_back( SOUTH );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4878: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).
                open.push_back( WEST );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4881: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).
            if( open.empty() ) { // We'll have to build it in the center
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4905:39:  [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).
                switch( random_entry( open ) ) {
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4929:36:  [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).
            std::vector<direction> open;
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4931: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).
                open.push_back( NORTH );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4934: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).
                open.push_back( EAST );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4937: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).
                open.push_back( SOUTH );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4940: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).
                open.push_back( WEST );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4943: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).
            if( open.empty() ) { // We'll have to build it in the center
data/cataclysm-dda-0.E-1/src/mapgen.cpp:4968:39:  [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).
                switch( random_entry( open ) ) {
data/cataclysm-dda-0.E-1/src/mapsharing.cpp:104:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void ofstream_wrapper::open( const std::ios::openmode mode )
data/cataclysm-dda-0.E-1/src/mapsharing.cpp:125: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).
    file_stream.open( temp_path, mode );
data/cataclysm-dda-0.E-1/src/options.cpp:874:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        iSet = atoi( sSetIn.c_str() );
data/cataclysm-dda-0.E-1/src/options.cpp:881:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        iSet = atoi( sSetIn.c_str() );
data/cataclysm-dda-0.E-1/src/output.cpp:601:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    result = atoi( popup.text().c_str() );
data/cataclysm-dda-0.E-1/src/output.h:127: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 buffer[2] = { static_cast<char>( charcode ), '\0' };
data/cataclysm-dda-0.E-1/src/overmap.cpp:1073:9:  [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).
        open( enabled_specials );
data/cataclysm-dda-0.E-1/src/overmap.cpp:4343:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void overmap::open( overmap_special_batch &enabled_specials )
data/cataclysm-dda-0.E-1/src/overmap.h:361:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open( overmap_special_batch &enabled_specials );
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:65:5:  [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).
    open;
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:80: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).
        return open.empty();
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:84:25:  [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).
        const auto pt = open.top();
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:85:9:  [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).
        open.pop();
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:101:9:  [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).
        open.push( std::make_pair( score, to ) );
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:325:70:  [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( cost == 0 && rating <= 0 && ( !doors || !terrain.open || !furniture.open ) && veh == nullptr &&
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:325:89:  [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( cost == 0 && rating <= 0 && ( !doors || !terrain.open || !furniture.open ) && veh == nullptr &&
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:336:51:  [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).
                    } else if( doors && ( terrain.open || furniture.open ) &&
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:336:69:  [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).
                    } else if( doors && ( terrain.open || furniture.open ) &&
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:382:48:  [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( !doors || !terrain.open || !furniture.open ) {
data/cataclysm-dda-0.E-1/src/pathfinding.cpp:382:67:  [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( !doors || !terrain.open || !furniture.open ) {
data/cataclysm-dda-0.E-1/src/safemode_ui.cpp:401:51:  [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).
                    current_tab[line].proximity = atoi( temp_option.getValue().c_str() );
data/cataclysm-dda-0.E-1/src/safemode_ui.cpp:761:9:  [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).
    fin.open( file.c_str(), std::ifstream::in | std::ifstream::binary );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2531:24:  [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).
    data.read( "open", open );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2593:26:  [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).
    json.member( "open", open );
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:3302:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[max_dir_len];
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:3353: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).
                faceIndex = atoi( iline.c_str() );
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:80:22:  [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).
    std::vector<int> open( map_size, 0 );
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:86:5:  [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).
    open[map_index( source )] = std::numeric_limits<int>::max();
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:131: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).
            if( open[n] == 0 || open[n] > cn.priority ) {
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:131:33:  [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( open[n] == 0 || open[n] > cn.priority ) {
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:134:21:  [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( open[n] != 0 ) {
data/cataclysm-dda-0.E-1/src/simple_pathfinding.h:150: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).
                open[n] = cn.priority;
data/cataclysm-dda-0.E-1/src/string_input_popup.cpp:272: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).
    return std::atoi( query_string( loop, draw_only ).c_str() );
data/cataclysm-dda-0.E-1/src/string_input_popup.cpp:497:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        value = std::atol( text().c_str() );
data/cataclysm-dda-0.E-1/src/string_input_popup.cpp:507: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).
        value = std::atoi( text().c_str() );
data/cataclysm-dda-0.E-1/src/vehicle.cpp:527:21:  [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( !pt.open && one_in( 4 ) ) {
data/cataclysm-dda-0.E-1/src/vehicle.cpp:528: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).
                open( p );
data/cataclysm-dda-0.E-1/src/vehicle.cpp:2609:62:  [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( part->has_feature( VPFLAG_OPENABLE ) && part->part().open ) {
data/cataclysm-dda-0.E-1/src/vehicle.cpp:5738:85:  [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( parts[j].inside || ( part_flag( j, "OPENABLE" ) && parts[j].open ) ) {
data/cataclysm-dda-0.E-1/src/vehicle.cpp:5788:60:  [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).
                ( !part_flag( i, "OPENABLE" ) || !parts[i].open ) ) {
data/cataclysm-dda-0.E-1/src/vehicle.cpp:5807:63:  [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( part_flag( part, "OPENABLE" ) && !parts[part].open ) {
data/cataclysm-dda-0.E-1/src/vehicle.h:1505:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open( int part_index );
data/cataclysm-dda-0.E-1/src/vehicle_display.cpp:40:79:  [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( part_flag( displayed_part, VPFLAG_OPENABLE ) && parts[displayed_part].open ) {
data/cataclysm-dda-0.E-1/src/vehicle_display.cpp:61:79:  [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( part_flag( displayed_part, VPFLAG_OPENABLE ) && parts[displayed_part].open ) {
data/cataclysm-dda-0.E-1/src/vehicle_display.cpp:114:82:  [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( part_with_feature( p, VPFLAG_WINDOW, true ) >= 0 && !parts[curtains].open ) {
data/cataclysm-dda-0.E-1/src/vehicle_display.cpp:393: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.
    const char fsyms[5] = { 'E', '\\', '|', '/', 'F' };
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:164:47:  [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).
            const char *actname = parts[door].open ? _( "Close" ) : _( "Open" );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:187:49:  [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).
            open_or_close( part, !( parts[part].open ) );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:194:21:  [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( open ) {
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:200:46:  [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).
                        open_or_close( part, open );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:205:55:  [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).
                            open_or_close( next_part, open );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:214:46:  [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).
                        open_or_close( part, open );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:219:55:  [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).
                            open_or_close( next_part, open );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:1425:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void vehicle::open( int part_index )
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:1452:30:  [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).
    return parts[part_index].open;
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:1463: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).
            open( elem );
data/cataclysm-dda-0.E-1/src/vehicle_use.cpp:1868:87:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    const bool curtain_closed = ( curtain_part == -1 ) ? false : !parts[curtain_part].open;
data/cataclysm-dda-0.E-1/src/wdirent.h:233:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t d_name[PATH_MAX + 1];               /* File name */
data/cataclysm-dda-0.E-1/src/wdirent.h:263: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 d_name[PATH_MAX + 1];                  /* File name */
data/cataclysm-dda-0.E-1/src/wdirent.h:583:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t wname[PATH_MAX + 1];
data/cataclysm-dda-0.E-1/src/wdirent.h:815:31:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    const int required_size = MultiByteToWideChar( CP_ACP, 0, mbstr, -1, NULL, NULL ) + 1;
data/cataclysm-dda-0.E-1/src/wdirent.h:819:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    const int n = MultiByteToWideChar( CP_ACP, 0, mbstr, -1, wcstr, required_size );
data/cataclysm-dda-0.E-1/src/wincurse.cpp:72:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    const int newlen = MultiByteToWideChar( CP_UTF8, 0, s.c_str(), s.length(),
data/cataclysm-dda-0.E-1/src/wincurse.cpp:199: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.
static char alt_buffer[ALT_BUFFER_SIZE] = {};
data/cataclysm-dda-0.E-1/src/wincurse.cpp:225:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi( alt_buffer );
data/cataclysm-dda-0.E-1/src/worldfactory.cpp:1346:38:  [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).
            version = std::max( std::atoi( value.c_str() ), 0 );
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:2098:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:4315:29:  [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.
        alignas(alignof(T)) char storage[sizeof(T)];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:5697:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:7215:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open();
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:10971:14:  [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(&i, &f, sizeof(f));
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:10980:14:  [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(&i, &d, sizeof(d));
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11438:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char m_buffer[L_tmpnam] = { 0 };
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11525:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[100];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11534:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11558:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[100] = {};
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:11978:30:  [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).
                    tracker->open();
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:12748:31:  [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 **utf8Argv = new char *[ argc ];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:12902:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[bufferSize];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:12951:23:  [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).
                m_ofs.open( filename.c_str() );
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13200:13:  [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( m_data, m_start, m_size );
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13716:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void TrackerBase::open() {
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13816: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).
            open();
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:14101:21:  [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 asChar[sizeof (int)];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:14763:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[maxDoubleSize];
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:14770:9:  [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(buffer, "%.3f", duration);
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:15362:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open() {
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:15397:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        tp.open();
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:15774:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/cataclysm-dda-0.E-1/tests/monster_test.cpp:249:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        data.open( "slope_test_data_" + std::string( ( trigdist ? "trig_" : "square_" ) ) + monster_type );
data/cataclysm-dda-0.E-1/tests/npc_test.cpp:220: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.
constexpr char setup[height][width + 1] = {
data/cataclysm-dda-0.E-1/tests/overmap_noise_test.cpp:12:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    testfile.open( filename, std::ofstream::trunc );
data/cataclysm-dda-0.E-1/tests/overmap_noise_test.cpp:32:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    testfile.open( filename, std::ofstream::trunc );
data/cataclysm-dda-0.E-1/tools/format/getpost.h:38: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 tmp[5], tmpchar;
data/cataclysm-dda-0.E-1/tools/format/getpost.h:39:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy( tmp, "0x" );
data/cataclysm-dda-0.E-1/tools/format/getpost.h:107: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).
    content_length = atoi( strlength );
data/cataclysm-dda-0.E-1/src/artifact.cpp:1153:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "color", color );
data/cataclysm-dda-0.E-1/src/artifact.cpp:1261:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "color", color );
data/cataclysm-dda-0.E-1/src/artifact.cpp:1287:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "covers", armor->covers );
data/cataclysm-dda-0.E-1/src/assign.h:67:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( relative.read( name, out ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:72:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( proportional.read( name, scalar ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:80:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( !jo.read( name, out ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:103:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( name, out ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:124:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        arr.read( 0, out.first );
data/cataclysm-dda-0.E-1/src/assign.h:125:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        arr.read( 1, out.second );
data/cataclysm-dda-0.E-1/src/assign.h:127:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( jo.read( name, out.first ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:158:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( name, out ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:265:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !err.read( name, scalar ) || scalar <= 0 || scalar == 1 ) {
data/cataclysm-dda-0.E-1/src/assign.h:330:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !err.read( name, scalar ) || scalar <= 0 || scalar == 1 ) {
data/cataclysm-dda-0.E-1/src/assign.h:395:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !err.read( name, scalar ) || scalar <= 0 || scalar == 1 ) {
data/cataclysm-dda-0.E-1/src/assign.h:465:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !err.read( name, scalar ) || scalar <= 0 || scalar == 1 ) {
data/cataclysm-dda-0.E-1/src/assign.h:513:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( jo.read( name, tmp, false ) ) {
data/cataclysm-dda-0.E-1/src/assign.h:553:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( proportional.read( name, scalar ) ) {
data/cataclysm-dda-0.E-1/src/avatar.cpp:383:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool avatar::read( item &it, const bool continuous )
data/cataclysm-dda-0.E-1/src/avatar.cpp:910:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read( book, true );
data/cataclysm-dda-0.E-1/src/avatar.h:149:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( item &it, bool continuous = false );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2526:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "name", new_bionic.name );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2527:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "description", new_bionic.description );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2569:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "canceled_mutations", new_bionic.canceled_mutations );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2570:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "included_bionics", new_bionic.included_bionics );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2571:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "included", new_bionic.included );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2572:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "upgraded_bionic", new_bionic.upgraded_bionic );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2573:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "fuel_options", new_bionic.fuel_opts );
data/cataclysm-dda-0.E-1/src/bionics.cpp:2574:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "fuel_capacity", new_bionic.fuel_capacity );
data/cataclysm-dda-0.E-1/src/bodypart.h:189:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            s.read( parts );
data/cataclysm-dda-0.E-1/src/cata_io.h:138:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static bool read( const JsonObject &obj, const std::string &key, T &value ) {
data/cataclysm-dda-0.E-1/src/cata_io.h:139:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return obj.read( key, value );
data/cataclysm-dda-0.E-1/src/cata_io.h:141:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static bool read( JsonArray &arr, T &value ) {
data/cataclysm-dda-0.E-1/src/cata_io.h:159:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static bool read( const JsonObject &obj, const std::string &key, T &value ) {
data/cataclysm-dda-0.E-1/src/cata_io.h:167:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static bool read( JsonArray &arr, T &value ) {
data/cataclysm-dda-0.E-1/src/cata_io.h:212:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return io::detail::has_archive_tag<T>::read( *this, name, value );
data/cataclysm-dda-0.E-1/src/cata_io.h:327:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return io::detail::has_archive_tag<T>::read( *this, value );
data/cataclysm-dda-0.E-1/src/cata_io.h:436:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( const std::string &, T & ) {
data/cataclysm-dda-0.E-1/src/catacharset.cpp:147:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen( s );
data/cataclysm-dda-0.E-1/src/character_martial_arts.cpp:149:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "ma_styles", ma_styles );
data/cataclysm-dda-0.E-1/src/character_martial_arts.cpp:150:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "keep_hands_free", keep_hands_free );
data/cataclysm-dda-0.E-1/src/character_martial_arts.cpp:151:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "style_selected", style_selected );
data/cataclysm-dda-0.E-1/src/clzones.cpp:328:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo_zone.read( "mark", mark );
data/cataclysm-dda-0.E-1/src/clzones.cpp:403:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo_zone.read( "mark", mark );
data/cataclysm-dda-0.E-1/src/clzones.cpp:404:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo_zone.read( "con", con );
data/cataclysm-dda-0.E-1/src/clzones.cpp:421:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo_zone.read( "mark", mark );
data/cataclysm-dda-0.E-1/src/clzones.cpp:422:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo_zone.read( "seed", seed );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1078:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( zones );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1106:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "name", name );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1107:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "type", type );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "faction", faction );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1113:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "invert", invert );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1114:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "enabled", enabled );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1117:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "is_vehicle", is_vehicle );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1125:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "start_x", s.x );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1126:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "start_y", s.y );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1127:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "start_z", s.z );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1128:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "end_x", e.x );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1129:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "end_y", e.y );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1130:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "end_z", e.z );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1134:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "start", start );
data/cataclysm-dda-0.E-1/src/clzones.cpp:1135:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "end", end );
data/cataclysm-dda-0.E-1/src/computer.cpp:177:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "name", name );
data/cataclysm-dda-0.E-1/src/computer.cpp:178:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "mission", mission_id );
data/cataclysm-dda-0.E-1/src/computer.cpp:179:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "security", security );
data/cataclysm-dda-0.E-1/src/computer.cpp:180:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "alerts", alerts );
data/cataclysm-dda-0.E-1/src/computer.cpp:181:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "next_attempt", next_attempt );
data/cataclysm-dda-0.E-1/src/computer.cpp:182:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "options", options );
data/cataclysm-dda-0.E-1/src/computer.cpp:183:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "failures", failures );
data/cataclysm-dda-0.E-1/src/computer.cpp:184:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "access_denied", access_denied );
data/cataclysm-dda-0.E-1/src/craft_command.cpp:86:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "use_from", use_from_str );
data/cataclysm-dda-0.E-1/src/craft_command.cpp:88:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "type", comp.type );
data/cataclysm-dda-0.E-1/src/craft_command.cpp:89:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "count", comp.count );
data/cataclysm-dda-0.E-1/src/crafting_gui.cpp:920:59:  [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).
        return rel_menu.entries[rel_menu.ret].txt.substr( strlen( "─ " ) );
data/cataclysm-dda-0.E-1/src/creature.cpp:1752:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "even_good", dispersion_for_even_chance_of_good_hit );
data/cataclysm-dda-0.E-1/src/debug.cpp:803:34:  [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).
            auto buf_end = buf + strlen( buf );
data/cataclysm-dda-0.E-1/src/debug.cpp:805:64:  [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).
                                      search_for, search_for + strlen( search_for ) );
data/cataclysm-dda-0.E-1/src/debug.cpp:811:29:  [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).
            out.write( src, strlen( src ) );
data/cataclysm-dda-0.E-1/src/debug.cpp:832: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).
        const auto funcNameEnd = funcName + std::strlen( funcName );
data/cataclysm-dda-0.E-1/src/effect.cpp:1223:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !entry.read( name ) ) {
data/cataclysm-dda-0.E-1/src/effect.cpp:1363:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "duration", duration );
data/cataclysm-dda-0.E-1/src/effect.cpp:1368:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "start_turn", start_time );
data/cataclysm-dda-0.E-1/src/emit.cpp:50:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "intensity", et.intensity_ );
data/cataclysm-dda-0.E-1/src/emit.cpp:51:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "qty", et.qty_ );
data/cataclysm-dda-0.E-1/src/emit.cpp:52:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "chance", et.chance_ );
data/cataclysm-dda-0.E-1/src/event_statistics.cpp:141:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( jo.read( "equals", equals_int, false ) ) {
data/cataclysm-dda-0.E-1/src/event_statistics.cpp:146:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( jo.read( "equals", equals_string, false ) ) {
data/cataclysm-dda-0.E-1/src/event_statistics.cpp:151:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( jo.read( "equals_statistic", stat ) ) {
data/cataclysm-dda-0.E-1/src/explosion.cpp:99:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "power", ret.power );
data/cataclysm-dda-0.E-1/src/explosion.cpp:119:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "casing_mass", ret.casing_mass );
data/cataclysm-dda-0.E-1/src/field_type.cpp:250:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "looks_like", looks_like );
data/cataclysm-dda-0.E-1/src/filesystem.cpp:252:30:  [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 size_t len_fname = strlen( entry.d_name );
data/cataclysm-dda-0.E-1/src/flag.cpp:23:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "info", f.info_ );
data/cataclysm-dda-0.E-1/src/flag.cpp:24:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "conflicts", f.conflicts_ );
data/cataclysm-dda-0.E-1/src/flag.cpp:25:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "inherit", f.inherit_ );
data/cataclysm-dda-0.E-1/src/flag.cpp:26:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "craft_inherit", f.craft_inherit_ );
data/cataclysm-dda-0.E-1/src/flag.cpp:27:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "taste_mod", f.taste_mod_ );
data/cataclysm-dda-0.E-1/src/font_loader.h:43:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    config.read( "typeface", typeface );
data/cataclysm-dda-0.E-1/src/font_loader.h:48:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    config.read( "map_typeface", map_typeface );
data/cataclysm-dda-0.E-1/src/font_loader.h:53:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    config.read( "overmap_typeface", overmap_typeface );
data/cataclysm-dda-0.E-1/src/game.cpp:2108:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    u.read( oThisItem );
data/cataclysm-dda-0.E-1/src/game_inventory.cpp:1113:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
item_location game_menus::inv::read( player &pl )
data/cataclysm-dda-0.E-1/src/game_inventory.h:89:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
item_location read( player &pl );
data/cataclysm-dda-0.E-1/src/gamemode_tutorial.cpp:282:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        messages.read( next );
data/cataclysm-dda-0.E-1/src/generic_factory.h:474:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( name, member ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:503:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( name, member ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:524:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( name, member ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:562:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( member_name, sym_as_string ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:581:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( member_name, sym_as_string, false ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:583:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !jo.read( member_name, sym_as_int ) ) {
data/cataclysm-dda-0.E-1/src/generic_factory.h:962:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( member_name, legacy_value ) ) {
data/cataclysm-dda-0.E-1/src/handle_action.cpp:1211:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static void read()
data/cataclysm-dda-0.E-1/src/handle_action.cpp:1215:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    item_location loc = game_menus::inv::read( u );
data/cataclysm-dda-0.E-1/src/handle_action.cpp:1224:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            u.read( u.i_at( loc.obtain( u ) ) );
data/cataclysm-dda-0.E-1/src/handle_action.cpp:1955:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                read();
data/cataclysm-dda-0.E-1/src/harvest.cpp:85:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "message", ret.message_ );
data/cataclysm-dda-0.E-1/src/help.cpp:50:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "messages", messages );
data/cataclysm-dda-0.E-1/src/input.cpp:217:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            action.read( "name", actions[action_id].name );
data/cataclysm-dda-0.E-1/src/item.cpp:916: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.
    return std::equal( contents.begin(), contents.end(), rhs.contents.begin(), []( const item & a,
data/cataclysm-dda-0.E-1/src/item_action.cpp:199:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "name", ia.name ) || ia.name.empty() ) {
data/cataclysm-dda-0.E-1/src/item_factory.cpp:1958:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "plant_name", slot.plant_name );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2231:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "repairs_like", def.repairs_like );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2246:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !jo.read( "name", def.name ) ) {
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2252:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "description", def.description );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2356:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "looks_like", def.looks_like );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2365:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !curr.read( "name", cname.name ) ) {
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2586:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result |= obj.read( name, pa.first );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2587:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result |= obj.read( name, pa.second );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2589:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result |= obj.read( name + "-min", pa.first );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2590:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result |= obj.read( name + "-max", pa.second );
data/cataclysm-dda-0.E-1/src/item_factory.cpp:2667:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result |= obj.read( name, temp );
data/cataclysm-dda-0.E-1/src/item_location.cpp:543:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "idx", idx );
data/cataclysm-dda-0.E-1/src/item_location.cpp:544:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "pos", pos );
data/cataclysm-dda-0.E-1/src/item_location.cpp:549:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            obj.read( "character", who_id );
data/cataclysm-dda-0.E-1/src/iuse.cpp:7471:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = json.read( temp_vec );
data/cataclysm-dda-0.E-1/src/iuse.cpp:7475:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = json.read( extended_photos );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:144:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "msg", msg_transform );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:145:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "container", container );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:150:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "target_charges", ammo_qty );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:159:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "target_ammo", ammo_type );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:161:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "countdown", countdown );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:167:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "active", active );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:169:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:174:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "need_fire", need_fire );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:176:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !obj.read( "need_charges_msg", need_charges_msg ) ) {
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:180:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "need_charges", need_charges );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:182:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !obj.read( "need_fire_msg", need_fire_msg ) ) {
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:186:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "need_worn", need_worn );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:187:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "need_wielding", need_wielding );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:189:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "qualities_needed", qualities_needed );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:191:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "menu_text", menu_text );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:347:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "group", unpack_group );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:348:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "items_fit", items_fit );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:398:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "name", name );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:399:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "interval", interval );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:400:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "message", message );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:486:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "draw_explosion_radius", draw_explosion_radius );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:490:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "do_flashbang", do_flashbang );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:491:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "flashbang_player_immune", flashbang_player_immune );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:492:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fields_radius", fields_radius );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:496:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fields_min_intensity", fields_min_intensity );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:497:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fields_max_intensity", fields_max_intensity );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:501:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "emp_blast_radius", emp_blast_radius );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:502:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "scrambler_blast_radius", scrambler_blast_radius );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:503:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "sound_volume", sound_volume );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:504:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "sound_msg", sound_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:505:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "no_deactivate_msg", no_deactivate_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:583:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "unfold_msg", unfold_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:584:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:585:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "tools_needed", tools_needed );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:643:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            json.read( parts );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:681:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "activation_message", activation_message );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:682:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "charges_needed", charges_needed );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:683:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "tools_needed", tools_needed );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:690:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "stat_adjustments", stat_adjustments );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:691:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fields_produced", fields_produced );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:692:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:838:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "friendly_msg", friendly_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:839:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "hostile_msg", hostile_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:840:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "difficulty", difficulty );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:841:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:842:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "place_randomly", place_randomly );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:938:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "summon_msg", summon_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:939:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:940:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "place_randomly", place_randomly );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:971:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "activate_msg", activate_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:972:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "deactive_msg", deactive_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:973:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "out_of_power_msg", out_of_power_msg );
data/cataclysm-dda-0.E-1/src/iuse_actor.cpp:2260:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !obj.read( "description_frequency", description_frequency ) ) {
data/cataclysm-dda-0.E-1/src/json.cpp:1368:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( bool &b, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1377:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( char &c, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1386:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( signed char &c, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1396:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( unsigned char &c, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1406:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( short unsigned int &s, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1416:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( short int &s, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1426:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( int &i, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1435:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( std::int64_t &i, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1444:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( std::uint64_t &i, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1453:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( unsigned int &u, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1462:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( float &f, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1471:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( double &d, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1480:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( std::string &s, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1490:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( std::bitset<N> &b, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1504:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool JsonIn::read( JsonDeserializer &j, bool throw_on_error )
data/cataclysm-dda-0.E-1/src/json.cpp:1572:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream->read( &buffer[0], pos - startpos );
data/cataclysm-dda-0.E-1/src/json.cpp:1692:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream->read( &ret[0], len );
data/cataclysm-dda-0.E-1/src/json.cpp:1927:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
template bool JsonIn::read<12>( std::bitset<12> &, bool throw_on_error );
data/cataclysm-dda-0.E-1/src/json.h:259:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( bool &b, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:260:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( char &c, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:261:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( signed char &c, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:262:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( unsigned char &c, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:263:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( short unsigned int &s, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:264:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( short int &s, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:265:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( int &i, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:266:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( int64_t &i, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:267:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( uint64_t &i, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:268:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( unsigned int &u, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:269:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( float &f, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:270:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( double &d, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:271:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( std::string &s, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:273:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( std::bitset<N> &b, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:274:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( JsonDeserializer &j, bool throw_on_error = false );
data/cataclysm-dda-0.E-1/src/json.h:277:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        auto read( T &thing, bool throw_on_error = false ) -> decltype( thing.str(), true ) {
data/cataclysm-dda-0.E-1/src/json.h:279:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !read( tmp, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:288:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        auto read( T &v, bool throw_on_error = false ) ->
data/cataclysm-dda-0.E-1/src/json.h:303:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        auto read( T &v, bool throw_on_error = false ) -> decltype( v.deserialize( *this ), true ) {
data/cataclysm-dda-0.E-1/src/json.h:316:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( T &val, bool throw_on_error = false ) {
data/cataclysm-dda-0.E-1/src/json.h:318:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( read( i, false ) ) {
data/cataclysm-dda-0.E-1/src/json.h:323:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( read( s, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:332:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( std::pair<T, U> &p, bool throw_on_error = false ) {
data/cataclysm-dda-0.E-1/src/json.h:339:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              read( p.first, throw_on_error ) &&
data/cataclysm-dda-0.E-1/src/json.h:341:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              read( p.second, throw_on_error ) &&
data/cataclysm-dda-0.E-1/src/json.h:359:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        auto read( T &v, bool throw_on_error = false ) -> decltype( v.front(), true ) {
data/cataclysm-dda-0.E-1/src/json.h:368:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if( read( element, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:386:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( std::array<T, N> &v, bool throw_on_error = false ) {
data/cataclysm-dda-0.E-1/src/json.h:399:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if( !read( v[i], throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:421:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( T &v, bool throw_on_error = false ) {
data/cataclysm-dda-0.E-1/src/json.h:430:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if( read( element, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:449:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( cata::colony<T> &v, bool throw_on_error = false ) {
data/cataclysm-dda-0.E-1/src/json.h:458:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if( read( element, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:479:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( T &m, bool throw_on_error = true ) {
data/cataclysm-dda-0.E-1/src/json.h:490:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if( read( element, throw_on_error ) ) {
data/cataclysm-dda-0.E-1/src/json.h:910:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( const std::string &name, T &t, bool throw_on_error = true ) const {
data/cataclysm-dda-0.E-1/src/json.h:917:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return jsin->read( t, throw_on_error );
data/cataclysm-dda-0.E-1/src/json.h:1082:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return jsin->read( t );
data/cataclysm-dda-0.E-1/src/json.h:1085:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        template <typename T> bool read( size_t i, T &t ) const {
data/cataclysm-dda-0.E-1/src/json.h:1088:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return jsin->read( t );
data/cataclysm-dda-0.E-1/src/json.h:1122:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( T &t ) const {
data/cataclysm-dda-0.E-1/src/json.h:1123:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return seek().read( t );
data/cataclysm-dda-0.E-1/src/json.h:1410:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jsin.read( *obj );
data/cataclysm-dda-0.E-1/src/magic.cpp:1223:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "mana", mana );
data/cataclysm-dda-0.E-1/src/magic.cpp:1235:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "invlets", invlets );
data/cataclysm-dda-0.E-1/src/magic_enchantment.cpp:198:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "hit_you_effect", hit_you_effect );
data/cataclysm-dda-0.E-1/src/magic_enchantment.cpp:199:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "hit_me_effect", hit_me_effect );
data/cataclysm-dda-0.E-1/src/magic_teleporter_list.cpp:146:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "position", temp_pos );
data/cataclysm-dda-0.E-1/src/magic_teleporter_list.cpp:148:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "name", name );
data/cataclysm-dda-0.E-1/src/main.cpp:68:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( ( ( rdsz = read( pfd[0], buf, sizeof buf - 1 ) ) > 0 ) ) {
data/cataclysm-dda-0.E-1/src/main_menu.cpp:66:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen( s );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:232:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    j.read( "sound", sound );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:233:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    j.read( "sound_fail", sound_fail );
data/cataclysm-dda-0.E-1/src/mapdata.cpp:382:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "looks_like", looks_like );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:597:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( pjo.read( "point", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/mapgen.cpp:599:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        } else if( pjo.read( "set", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/mapgen.cpp:602:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        } else if( pjo.read( "line", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/mapgen.cpp:604:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        } else if( pjo.read( "square", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/mapgen.cpp:684:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pjo.read( "chance", tmp_chance );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:685:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pjo.read( "rotation", tmp_rotation );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:686:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pjo.read( "fuel", tmp_fuel );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:687:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pjo.read( "status", tmp_status );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:1422:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsi.read( "items", items );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:1426:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsi.read( "overwrite", overwrite );
data/cataclysm-dda-0.E-1/src/mapgen.cpp:1450:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsi.read( "access_denied", access_denied );
data/cataclysm-dda-0.E-1/src/mapgen_functions.cpp:555: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.
    return std::equal( std::begin( a2 ), std::end( a2 ), a1,
data/cataclysm-dda-0.E-1/src/material.cpp:53:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "fuel", bd.fuel );
data/cataclysm-dda-0.E-1/src/material.cpp:54:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "smoke", bd.smoke );
data/cataclysm-dda-0.E-1/src/material.cpp:55:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "burn", bd.burn );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:388:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "ammo_type", ammo_type );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:396:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fake_str", fake_str );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:397:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fake_dex", fake_dex );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:398:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fake_int", fake_int );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:399:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "fake_per", fake_per );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:409:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "max_ammo", max_ammo );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:411:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "move_cost", move_cost );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:413:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( obj.read( "description", description ) ) {
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:416:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( obj.read( "failure_msg", failure_msg ) ) {
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:419:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( obj.read( "no_ammo_sound", no_ammo_sound ) ) {
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:425:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "targeting_cost", targeting_cost );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:427:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "require_targeting_player", require_targeting_player );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:428:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "require_targeting_npc", require_targeting_npc );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:429:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "require_targeting_monster", require_targeting_monster );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:431:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "targeting_timeout", targeting_timeout );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:432:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "targeting_timeout_extend", targeting_timeout_extend );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:434:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( obj.read( "targeting_sound", targeting_sound ) ) {
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:440:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "targeting_volume", targeting_volume );
data/cataclysm-dda-0.E-1/src/mattack_actors.cpp:444:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "require_sunlight", require_sunlight );
data/cataclysm-dda-0.E-1/src/messages.cpp:102:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        obj.read( "turn", timestamp_in_turns );
data/cataclysm-dda-0.E-1/src/messages.cpp:338:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "messages", player_messages.messages );
data/cataclysm-dda-0.E-1/src/messages.cpp:339:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "curmes", player_messages.curmes );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:311:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stat.read( "name", adj.stat );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:312:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stat.read( "modifier", adj.stat_adjust );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:316:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        flag.read( "name", adj.flag );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:317:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        flag.read( "value", adj.flag_val );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:320:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jsobj.read( "special", adj.special );
data/cataclysm-dda-0.E-1/src/monstergenerator.cpp:682:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "looks_like", looks_like );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:205:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "attack_text_u", ret.attack_text_u );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:206:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "attack_text_npc", ret.attack_text_npc );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:207:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "required_mutations", ret.required_mutations );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:208:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "blocker_mutations", ret.blocker_mutations );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:209:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "hardcoded_effect", ret.hardcoded_effect );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:215:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "chance", ret.chance );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:251:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "lie", ret.lie );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:252:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "persuade", ret.persuade );
data/cataclysm-dda-0.E-1/src/mutation_data.cpp:253:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "intimidate", ret.intimidate );
data/cataclysm-dda-0.E-1/src/npc.cpp:206:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "name_unique", tem.name_unique );
data/cataclysm-dda-0.E-1/src/npc.cpp:207:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "name_suffix", tem.name_suffix );
data/cataclysm-dda-0.E-1/src/npc.cpp:1004:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto loc = game_menus::inv::read( *pl );
data/cataclysm-dda-0.E-1/src/npctalk.cpp:2542:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "name", name );
data/cataclysm-dda-0.E-1/src/npctalk.cpp:2716:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        truefalse_jo.read( "true", truetext );
data/cataclysm-dda-0.E-1/src/npctalk.cpp:2717:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        truefalse_jo.read( "false", falsetext );
data/cataclysm-dda-0.E-1/src/npctalk.cpp:2719:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "text", truetext );
data/cataclysm-dda-0.E-1/src/omdata.h:135:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "group", group );
data/cataclysm-dda-0.E-1/src/omdata.h:136:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "population", population );
data/cataclysm-dda-0.E-1/src/omdata.h:151:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "chance", chance );
data/cataclysm-dda-0.E-1/src/omdata.h:382:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "radius", radius );
data/cataclysm-dda-0.E-1/src/omdata.h:396:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        om.read( "point", p );
data/cataclysm-dda-0.E-1/src/omdata.h:397:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        om.read( "overmap", terrain );
data/cataclysm-dda-0.E-1/src/omdata.h:398:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        om.read( "flags", flags );
data/cataclysm-dda-0.E-1/src/omdata.h:399:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        om.read( "locations", locations );
data/cataclysm-dda-0.E-1/src/omdata.h:421:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "point", p );
data/cataclysm-dda-0.E-1/src/omdata.h:422:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "terrain", terrain );
data/cataclysm-dda-0.E-1/src/omdata.h:423:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "existing", existing );
data/cataclysm-dda-0.E-1/src/omdata.h:424:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "connection", connection );
data/cataclysm-dda-0.E-1/src/player.cpp:4123:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            u->read( used );
data/cataclysm-dda-0.E-1/src/player_activity.cpp:213: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.
    return std::equal( left.begin(), left.end(), right.begin() );
data/cataclysm-dda-0.E-1/src/player_activity.cpp:253:19:  [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( values.begin(), values.end(), other.values.begin() ) ) {
data/cataclysm-dda-0.E-1/src/player_activity.cpp:257:19:  [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( str_values.begin(), str_values.end(), other.str_values.begin() ) ) {
data/cataclysm-dda-0.E-1/src/player_activity.cpp:261:19:  [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( coords.begin(), coords.end(), other.coords.begin() ) ) {
data/cataclysm-dda-0.E-1/src/recipe_groups.cpp:45:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ordering.read( "id", name_id );
data/cataclysm-dda-0.E-1/src/recipe_groups.cpp:47:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ordering.read( "description", desc );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:23:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( member, tmp ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:331:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "om_terrain", alias.overmap_terrain );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:332:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "alias", alias.alias );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:397:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "id", new_region.id ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:401:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "default_oter", new_region.default_oter ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:404:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "river_scale", new_region.river_scale ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:426:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !pjo.read( "percent_coverage", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:430:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !pjo.read( "default_ter", new_region.field_coverage.default_ter_str ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:442:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( pjo.read( "boost_chance", tmpval ) && tmpval != 0.0f ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:444:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !pjo.read( "boosted_percent_coverage", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:448:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !pjo.read( "boosted_other_percent", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:481:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !zjo.read( "chance", extras.chance ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:508:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !cjo.read( "shop_radius", new_region.city_spec.shop_radius ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:511:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !cjo.read( "shop_sigma", new_region.city_spec.shop_sigma ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:514:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !cjo.read( "park_radius", new_region.city_spec.park_radius ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:517:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !cjo.read( "park_sigma", new_region.city_spec.park_sigma ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:520:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !cjo.read( "house_basement_chance", new_region.city_spec.house_basement_chance ) && strict ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:601:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "default_oter", region.default_oter );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:602:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "river_scale", region.river_scale );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:615:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( fieldjo.read( "percent_coverage", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:619:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fieldjo.read( "default_ter", region.field_coverage.default_ter_str );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:628:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( fieldjo.read( "boost_chance", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:631:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( fieldjo.read( "boosted_percent_coverage", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:639:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( fieldjo.read( "boosted_other_percent", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:670:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( zonejo.read( "chance", tmpval ) ) {
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:684:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cityjo.read( "shop_radius", region.city_spec.shop_radius );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:685:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cityjo.read( "shop_sigma", region.city_spec.shop_sigma );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:686:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cityjo.read( "park_radius", region.city_spec.park_radius );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:687:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cityjo.read( "park_sigma", region.city_spec.park_sigma );
data/cataclysm-dda-0.E-1/src/regional_settings.cpp:688:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cityjo.read( "house_basement_chance", region.city_spec.house_basement_chance );
data/cataclysm-dda-0.E-1/src/relic.cpp:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "name", item_name_override );
data/cataclysm-dda-0.E-1/src/savegame.cpp:171:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "turn", tmpturn );
data/cataclysm-dda-0.E-1/src/savegame.cpp:172:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "calendar_start", tmpcalstart );
data/cataclysm-dda-0.E-1/src/savegame.cpp:180:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "auto_travel_mode", auto_travel_mode );
data/cataclysm-dda-0.E-1/src/savegame.cpp:181:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "run_mode", tmprun );
data/cataclysm-dda-0.E-1/src/savegame.cpp:182:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mostseen", mostseen );
data/cataclysm-dda-0.E-1/src/savegame.cpp:183:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "levx", levx );
data/cataclysm-dda-0.E-1/src/savegame.cpp:184:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "levy", levy );
data/cataclysm-dda-0.E-1/src/savegame.cpp:185:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "levz", levz );
data/cataclysm-dda-0.E-1/src/savegame.cpp:186:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "om_x", comx );
data/cataclysm-dda-0.E-1/src/savegame.cpp:187:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "om_y", comy );
data/cataclysm-dda-0.E-1/src/savegame.cpp:201:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( data.read( "grscent", linebuf ) && data.read( "typescent", linebuff ) ) {
data/cataclysm-dda-0.E-1/src/savegame.cpp:201:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( data.read( "grscent", linebuf ) && data.read( "typescent", linebuff ) ) {
data/cataclysm-dda-0.E-1/src/savegame.cpp:207:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "active_monsters", *critter_tracker );
data/cataclysm-dda-0.E-1/src/savegame.cpp:212:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            elem.read( stairtmp );
data/cataclysm-dda-0.E-1/src/savegame.cpp:217:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data.read( "kill_tracker", *kill_tracker_ptr );
data/cataclysm-dda-0.E-1/src/savegame.cpp:233:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "player", u );
data/cataclysm-dda-0.E-1/src/savegame.cpp:234:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "stats_tracker", *stats_tracker_ptr );
data/cataclysm-dda-0.E-1/src/savegame.cpp:928:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            jsin.read( tmp_ter );
data/cataclysm-dda-0.E-1/src/savegame.cpp:929:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            jsin.read( count );
data/cataclysm-dda-0.E-1/src/savegame.cpp:954:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( new_region_id );
data/cataclysm-dda-0.E-1/src/savegame.cpp:974:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_city.name );
data/cataclysm-dda-0.E-1/src/savegame.cpp:976:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_city.pos.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:978:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_city.pos.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:980:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_city.size );
data/cataclysm-dda-0.E-1/src/savegame.cpp:986:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( connections_out );
data/cataclysm-dda-0.E-1/src/savegame.cpp:998:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_road.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1000:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_road.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1023:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_radio.pos.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1025:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_radio.pos.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1027:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_radio.strength );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1029:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_radio.message );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1053:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( id );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1055:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_tracker.p.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1057:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_tracker.p.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1059:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( new_tracker.name );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1074:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( pos );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1076:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( time );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1078:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( strength );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1108:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        jsin.read( s );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1123:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                jsin.read( p );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1146:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( value );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1147:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( count );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1187:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.p.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1188:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.p.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1189:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.text );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1190:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.dangerous );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1191:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.danger_radius );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1205:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.p.x );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1206:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.p.y );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1207:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    jsin.read( tmp.id );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1640:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( *faction_manager_ptr );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1642:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( seed );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1645:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                w.read( "lightning", weather.lightning_active );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1709:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( add_fac );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1724:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( add_fac );
data/cataclysm-dda-0.E-1/src/savegame.cpp:1745:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jsin.read( *mptr );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:134:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "monster_at", temp_pos ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:265:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "type", tmptype ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:277:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "position", tmppos ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:281:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "moves_left", moves_left );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:282:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "index", index );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:284:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "coords", coords );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:285:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "coord_set", coord_set );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:286:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "name", name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:287:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "targets", targets );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:288:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "placement", placement );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:291:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "auto_resume", auto_resume );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:292:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "monsters", monsters );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:321:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "blacklisted", blacklisted );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:323:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "req_comps_total", components );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:324:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "tool_comps_total", tools );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:325:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "quality_comps_total", qualities );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:345:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "level", _level );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:346:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "exercise", _exercise );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:347:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "istraining", _isTraining );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:348:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "lastpracticed", _lastPracticed ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:352:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "highestlevel", _highestLevel );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:386:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "key", key );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:387:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "charge", charge );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:388:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "powered", powered );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:403:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "time", time );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:404:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "type_id", type_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:405:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "component_hash", component_hash );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:415:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "posx", position.x ) ) {  // uh-oh.
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:418:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "posy", position.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:419:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "posz", position.z ) && g != nullptr ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:423:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "str_cur", str_cur );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:424:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "str_max", str_max );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:425:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dex_cur", dex_cur );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:426:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dex_max", dex_max );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:427:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "int_cur", int_cur );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:428:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "int_max", int_max );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:429:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "per_cur", per_cur );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:430:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "per_max", per_max );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:432:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "str_bonus", str_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:433:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dex_bonus", dex_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:434:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "per_bonus", per_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:435:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "int_bonus", int_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:436:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "omt_path", omt_path );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:438:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "thirst", thirst );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:439:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "hunger", hunger );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:440:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "fatigue", fatigue );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:441:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "sleep_deprivation", sleep_deprivation );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:442:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stored_calories", stored_calories );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:443:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "radiation", radiation );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:444:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "oxygen", oxygen );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:445:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "pkill", pkill );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:447:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "type_of_scent", type_of_scent );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:451:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "ma_styles", temp_styles );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:453:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "keep_hands_free", temp_keep_hands_free );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:455:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "style_selected", temp_selected_style );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:462:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "martial_arts_data", martial_arts_data );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:471:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "consumption_history", consumption_history );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:472:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "activity", activity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:473:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "destination_activity", destination_activity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:474:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stashed_outbounds_activity", stashed_outbounds_activity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:475:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stashed_outbounds_backlog", stashed_outbounds_backlog );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:479:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "backlog", backlog );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:482:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "backlog", temp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:489:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "fetch_data", fetch_reqs );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:494:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "activity_vehicle_part_index", activity_vehicle_part_index );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:496:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "healthy", healthy );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:497:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "healthy_mod", healthy_mod );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:498:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "healed_24h", healed_total );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:502:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "temp_cur", temp_cur );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:505:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "temp_conv", temp_conv );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:508:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "frostbite_timer", frostbite_timer );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:511:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "body_wetness", body_wetness );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:514:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stim", stim );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:515:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stamina", stamina );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:517:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "damage_bandaged", damage_bandaged );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:518:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "damage_disinfected", damage_disinfected );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:519:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "magic", magic );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:522:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "underwater", underwater );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:524:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "traits", my_traits );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:537:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mutations", old_my_mutations );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:542:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mutation_keys", trait_keys );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:547:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "active_mutations_hacky", active_muts );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:552:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mutations", my_mutations );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:567:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "my_bionics", *my_bionics );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:573:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "worn", worn );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:578:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "hp_cur", hp_cur ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:582:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "hp_max", hp_max ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:593:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "weapon", weapon );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:596:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "move_mode", tmove_mode );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:606:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( data.read( "mounted_creature", temp_id ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:618:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        member.read( ( *_skills )[skill_id( member.name() )] );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:660:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stomach", stomach );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:661:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "guts", guts );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:893:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "tank_plut", tank_plut );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:894:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "reactor_plut", reactor_plut );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:895:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "slow_rad", slow_rad );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:896:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "scent", scent );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:897:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "male", male );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:898:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cash", cash );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:899:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "recoil", recoil );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:900:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "in_vehicle", in_vehicle );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:901:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "last_sleep_check", last_sleep_check );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:902:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "id", tmpid ) && tmpid.is_valid() ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:909:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "addictions", addictions );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:910:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "followers", follower_ids );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:918:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "automoveroute", auto_move_route );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:944:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            warning_data.read( "fac_warning_time", warning_time );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:952:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "last_target", tmptar );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:953:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "last_target_type", tmptartyp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:954:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "last_target_pos", last_target_pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:955:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "ammo_location", ammo_location );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:967:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "destination_point", destination_point );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:971:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bcdata.read( "pos", bcpt );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1062:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "profession", prof_ident ) && string_id<profession>( prof_ident ).is_valid() ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1068:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "controlling_vehicle", controlling_vehicle );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1070:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "grab_point", grab_point );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1074:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "grab_type", grab_typestr );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1081:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "focus_pool", focus_pool );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1084:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "str_upgrade", str_upgrade );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1085:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dex_upgrade", dex_upgrade );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1086:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "int_upgrade", int_upgrade );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1087:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "per_upgrade", per_upgrade );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1091:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "targeting_data", tdata );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1104:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "magic", magic );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "scenario", scen_ident ) && string_id<scenario>( scen_ident ).is_valid() ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1125:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "learned_recipes", *learned_recipes );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1129:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "items_identified", items_identified );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1131:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "translocators", translocators );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1134:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "active_missions", tmpmissions ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1137:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "failed_missions", tmpmissions ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1140:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "completed_missions", tmpmissions ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1145:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "active_mission", tmpactive_mission ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1193:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "show_map_memory", show_map_memory );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1222:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "weapon_source", weapon_source );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1225:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "cached_fake_weapon", *cached_fake_weapon );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1228:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "bp_cost", bp_cost_per_shot );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1262:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "engagement", tmpeng );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1265:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "aim", tmpaim );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1268:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cbm_reserve", tmpreserve );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1271:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cbm_recharge", tmprecharge );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1278:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( rule.first, tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1284:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "rule_" + rule.first, tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1290:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "override_enable_" + rule.first, tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1296:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "override_" + rule.first, tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1306:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data.read( "rule_avoid_combat", tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1314:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data.read( "override_enable_avoid_combat", tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1322:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data.read( "override_avoid_combat", tmpflag );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1331:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "pickup_whitelist", *pickup_whitelist );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1354:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "first_topic", tmptopic );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1357:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "first_topic", first_topic );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1360:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "skill", skill );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1361:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "style", style );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1364:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "missions", tmpmissions );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1367:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "missions_assigned", tmpmissions_assigned );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1372:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "mission_selected", tmpmission_selected ) && tmpmission_selected != -1 ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1392:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "aggression", tmpagg ) &&
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1393:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "bravery", tmpbrav ) &&
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1394:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "collector", tmpcol ) &&
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1395:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "altruism", tmpalt ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1418:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "trust", trust );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1419:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "fear", fear );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1420:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "value", value );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1421:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "anger", anger );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1422:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "owed", owed );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1440:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "value", value );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1441:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "itype_id", item_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1488:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "name", name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1489:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "marked_for_death", marked_for_death );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1490:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dead", dead );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1492:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "myclass", classtmp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1495:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "myclass", classid );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1498:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "known_to_u", known_to_u );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1499:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "personality", personality );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1500:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "submap_coords", submap_coords ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1504:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mapx", old_coords.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1505:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "mapy", old_coords.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1507:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( data.read( "omx", o ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1510:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( data.read( "omy", o ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1516:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "mapz", position.z ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1517:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "omz", position.z ); // omz/mapz got moved to position.z
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1522:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "plx", last_player_seen_pos->x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1523:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "ply", last_player_seen_pos->y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1524:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( !data.read( "plz", last_player_seen_pos->z ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1532:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "last_player_seen_pos", last_player_seen_pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1535:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "goalx", goal.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1536:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "goaly", goal.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1537:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "goalz", goal.z );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1539:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "guardx", guard_pos.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1540:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "guardy", guard_pos.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1541:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "guardz", guard_pos.z );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1542:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "current_activity_id", act_id ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1550:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "pulp_locationx", pulp_location->x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1551:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "pulp_locationy", pulp_location->y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1552:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "pulp_locationz", pulp_location->z );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1558:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "pulp_location", pulp_location );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1561:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "mission", misstmp ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1572:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "previous_mission", misstmp ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1584:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "my_fac", facID ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1588:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "faction_api_ver", temp_fac_api_ver ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1594:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "attitude", atttmp ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1605:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "job", jobtmp ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1608:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "previous_attitude", atttmp ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1620:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "comp_mission_id", comp_miss_id ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1624:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "comp_mission_pt", comp_miss_pt ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1628:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "comp_mission_role", comp_miss_role ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1632:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "companion_mission_role_id", companion_mission_role ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1637:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "companion_mission_points", companion_mission_pts );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1644:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "companion_mission_time", companion_mission_t ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1650:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "companion_mission_time_ret", companion_mission_t_r ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1662:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "restock", restock ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1666:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "op_of_u", op_of_u );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1667:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "chatbin", chatbin );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1668:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "rules", rules ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1669:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "misc_rules", rules );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1670:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "combat_rules", rules );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1673:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "real_weapon", real_weapon );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1675:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cbm_weapon_index", cbm_weapon_index );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1677:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "last_updated", last_updated ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1684:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        member.read( p );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1842:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "typeid", sidtmp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1845:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "unique_name", unique_name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1846:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "posx", position.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1847:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "posy", position.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1848:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "posz", position.z ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1852:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "wandf", wandf );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1853:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "wandx", wander_pos.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1854:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "wandy", wander_pos.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1855:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( data.read( "wandz", wander_pos.z ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1888:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "hp", hp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1929:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "friendly", friendly );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1930:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "mission_id", mission_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1931:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "no_extra_death_drops", no_extra_death_drops );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1932:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dead", dead );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1933:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "anger", anger );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1934:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "morale", morale );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1935:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "hallucination", hallucination );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1936:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "stairscount", staircount ); // really?
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1937:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "fish_population", fish_population );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1940:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "plans", plans );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1945:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "summon_time_limit", summon_time_limit );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1949:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "destination", destination );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1957:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "baby_timer", baby_timer );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1965:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "udder_timer", udder_timer );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1969:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "inv", inv );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1970:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "dragged_foe_id", dragged_foe_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1976:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "ammo", ammo );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1988:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "last_updated", last_updated ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1991:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "mounted_player_id", mounted_player_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:1992:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "path", path );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2144:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "comps_used", comps_used );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2147:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    obj.read( "cached_tool_selections", cached_tool_selections );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2262:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( archive.read( "damage", float_damage ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2269:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const bool note_read = archive.read( "note", note );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2291:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( archive.read( "snippet_id", snip ) && snip ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2312:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( archive.read( "mode", mode ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2460:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "id", pid );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2523:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read( "base", base );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2529:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "mount_dx", mount.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2530:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "mount_dy", mount.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2531:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "open", open );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2532:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "direction", direction );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2533:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "blood", blood );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2534:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "enabled", enabled );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2535:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "flags", flags );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2536:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "passenger_id", passenger_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2542:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "crew_id", crew_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2543:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "items", items );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2544:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_first_x", target.first.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2545:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_first_y", target.first.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2546:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_first_z", target.first.z );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2547:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_second_x", target.second.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2548:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_second_y", target.second.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2549:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "target_second_z", target.second.z );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2550:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "ammo_pref", ammo_pref );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2631:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "x", val.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2632:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "y", val.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2633:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "text", val.text );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2655:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "type", type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2656:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "posx", pos.x );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2657:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "posy", pos.y );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2658:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "om_id", om_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2659:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "faceDir", fdir );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2660:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "moveDir", mdir );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2661:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "turn_dir", turn_dir );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2662:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "velocity", velocity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2663:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "falling", is_falling );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2664:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "floating", is_floating );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2665:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cruise_velocity", cruise_velocity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2666:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "vertical_velocity", vertical_velocity );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2667:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "cruise_on", cruise_on );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2668:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "engine_on", engine_on );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2669:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "tracking_on", tracking_on );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2670:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "skidding", skidding );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2671:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "of_turn_carry", of_turn_carry );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2672:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "is_locked", is_locked );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2673:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "is_alarm_on", is_alarm_on );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2674:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "camera_on", camera_on );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2675:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !data.read( "last_update_turn", last_update ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2681:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "name", name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2684:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "owner", temp_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2685:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "old_owner", temp_old_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2697:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "theft_time", theft_time );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2699:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "parts", parts );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2706:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "pivot", pivot_anchor[0] );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2709:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "is_following", is_following );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2710:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "is_patrolling", is_patrolling );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2711:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "autodrive_local_target", autodrive_local_target );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2772:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "tags", tags );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2773:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "labels", labels );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2778:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        sdata.read( "point", p );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2779:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        sdata.read( "zone", zd );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2882:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( jo.read( "status", status_string ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2884:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( jo.read( "failed", failed ) && failed ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2886:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if( jo.read( "was_started", was_started ) && !was_started ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2894:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "value", value );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2895:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "kill_count_to_reach", kill_count_to_reach );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2896:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "reward", reward );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2897:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "uid", uid );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2927:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "target_npc_id", target_npc_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2928:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "monster_type", monster_type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2929:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "monster_species", monster_species );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2930:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "monster_kill_goal", monster_kill_goal );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2931:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "deadline", deadline );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2932:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "step", step );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2933:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "item_count", item_count );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2934:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "npc_id", npc_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2935:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "good_fac_id", good_fac_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2936:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "bad_fac_id", bad_fac_id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2944:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    legacy_no_player_id = !jo.read( "player_id", player_id ) ||
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2992:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "id", id );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2993:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "name", name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2994:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "likes_u", likes_u );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2995:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "respects_u", respects_u );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2996:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "known_by_u", known_by_u );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2997:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "size", size );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2998:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "power", power );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:2999:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "food_supply", food_supply ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3002:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "wealth", wealth ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3090:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "moves", moves );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3091:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "pain", pain );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3101:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( "effects", tmp_map );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3122:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "values", values );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3124:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "blocks_left", num_blocks );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3125:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "dodges_left", num_dodges );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3126:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "num_blocks_bonus", num_blocks_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3127:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "num_dodges_bonus", num_dodges_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3129:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "armor_bash_bonus", armor_bash_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3130:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "armor_cut_bonus", armor_cut_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3132:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "speed", speed_base );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3134:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "speed_bonus", speed_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3135:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "dodge_bonus", dodge_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3136:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "block_bonus", block_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3137:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "hit_bonus", hit_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3138:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "bash_bonus", bash_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3139:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "cut_bonus", cut_bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3141:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "bash_mult", bash_mult );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3142:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "cut_mult", cut_mult );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3143:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "melee_quiet", melee_quiet );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3145:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "grab_resist", grab_resist );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3146:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "throw_resist", throw_resist );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3148:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "underwater", underwater );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3158:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !jo.read( "type", type ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3162:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( jo.read( "item_type", tmpitype ) && item::type_is_defined( tmpitype ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3165:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "bonus", bonus );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3166:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "duration", duration );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3167:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "decay_start", decay_start );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3168:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "age", age );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3193:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsin.read( "morale", points );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3332:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "sated", sated );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3378:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "type", value.type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3379:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "count", value.count );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3380:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "recoverable", value.recoverable );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3386:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "type", value.type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3387:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "count", value.count );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3388:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "recoverable", value.recoverable );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3405:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "type", value.type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3406:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "count", value.count );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3407:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "level", value.level );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3463:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "name", name );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3464:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "pos", omt_pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3465:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    data.read( "bb_pos", bb_pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3474:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            edata.read( "dir", dir );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3476:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        edata.read( "type", e.type );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3478:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            edata.read( "cur_level", e.cur_level );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3498:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        edata.read( "pos", e.pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3506:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        edata.read( "pos", restore_pos );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3553:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !( jsin.read( type_ ) && jsin.read( value_ ) ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3553:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( !( jsin.read( type_ ) && jsin.read( value_ ) ) ) {
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3571:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "event_counts", copy );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3586:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "data", data );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3590:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "initial_scores", initial_scores );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:3914:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( tmp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4011:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( tcosmetics );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4042:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( *tmp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4063:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( tmp );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4073:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( loc );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4075:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jsin.read( new_comp_it->second );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4081:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jsin.read( *legacy_computer );
data/cataclysm-dda-0.E-1/src/savegame_json.cpp:4085:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jsin.read( *camp );
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:2954:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if( strlen( ev.text.text ) > 0 ) {
data/cataclysm-dda-0.E-1/src/sdltiles.cpp:2986:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if( strlen( ev.edit.text ) > 0 ) {
data/cataclysm-dda-0.E-1/src/skill.cpp:96:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "name", name );
data/cataclysm-dda-0.E-1/src/skill.cpp:98:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "description", desc );
data/cataclysm-dda-0.E-1/src/skill.cpp:106:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jso_tta.read( "min_time", time_to_attack.min_time );
data/cataclysm-dda-0.E-1/src/skill.cpp:107:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jso_tta.read( "base_time", time_to_attack.base_time );
data/cataclysm-dda-0.E-1/src/skill.cpp:108:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jso_tta.read( "time_reduction_per_level", time_to_attack.time_reduction_per_level );
data/cataclysm-dda-0.E-1/src/skill.cpp:146:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jsobj.read( "display_string", display_string );
data/cataclysm-dda-0.E-1/src/speech.cpp:17:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "sound", sound );
data/cataclysm-dda-0.E-1/src/stomach.cpp:142:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "vitamins", nutr.vitamins );
data/cataclysm-dda-0.E-1/src/stomach.cpp:143:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "calories", nutr.kcal );
data/cataclysm-dda-0.E-1/src/stomach.cpp:145:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "water", str );
data/cataclysm-dda-0.E-1/src/stomach.cpp:147:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "max_volume", str );
data/cataclysm-dda-0.E-1/src/stomach.cpp:149:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "contents", str );
data/cataclysm-dda-0.E-1/src/stomach.cpp:151:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "last_ate", last_ate );
data/cataclysm-dda-0.E-1/src/text_snippets.cpp:36:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !entry.read( text ) ) {
data/cataclysm-dda-0.E-1/src/text_snippets.cpp:57:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jo.read( "id", id );
data/cataclysm-dda-0.E-1/src/trap.cpp:153:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        jv.read( "sound", vehicle_data.sound );
data/cataclysm-dda-0.E-1/src/trap.cpp:168:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if( jv.read( "set_trap", vehicle_data.set_trap ) ) {
data/cataclysm-dda-0.E-1/src/uistate.h:190:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_leftsort", adv_inv_sort[left] );
data/cataclysm-dda-0.E-1/src/uistate.h:191:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_rightsort", adv_inv_sort[right] );
data/cataclysm-dda-0.E-1/src/uistate.h:198:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_leftarea", adv_inv_area[left] );
data/cataclysm-dda-0.E-1/src/uistate.h:199:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_rightarea", adv_inv_area[right] );
data/cataclysm-dda-0.E-1/src/uistate.h:206:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_leftindex", adv_inv_index[left] );
data/cataclysm-dda-0.E-1/src/uistate.h:207:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_rightindex", adv_inv_index[right] );
data/cataclysm-dda-0.E-1/src/uistate.h:221:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_leftfilter", adv_inv_filter[left] );
data/cataclysm-dda-0.E-1/src/uistate.h:222:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                jo.read( "adv_inv_rightfilter", adv_inv_filter[right] );
data/cataclysm-dda-0.E-1/src/uistate.h:230:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_src", adv_inv_src );
data/cataclysm-dda-0.E-1/src/uistate.h:231:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_dest", adv_inv_dest );
data/cataclysm-dda-0.E-1/src/uistate.h:232:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_last_popup_dest", adv_inv_last_popup_dest );
data/cataclysm-dda-0.E-1/src/uistate.h:233:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_container_location", adv_inv_container_location );
data/cataclysm-dda-0.E-1/src/uistate.h:234:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_container_index", adv_inv_container_index );
data/cataclysm-dda-0.E-1/src/uistate.h:235:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_container_in_vehicle", adv_inv_container_in_vehicle );
data/cataclysm-dda-0.E-1/src/uistate.h:236:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_container_type", adv_inv_container_type );
data/cataclysm-dda-0.E-1/src/uistate.h:237:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "adv_inv_container_content_type", adv_inv_container_content_type );
data/cataclysm-dda-0.E-1/src/uistate.h:238:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_blinking", overmap_blinking );
data/cataclysm-dda-0.E-1/src/uistate.h:239:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_overlays", overmap_show_overlays );
data/cataclysm-dda-0.E-1/src/uistate.h:240:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_map_notes", overmap_show_map_notes );
data/cataclysm-dda-0.E-1/src/uistate.h:241:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_land_use_codes", overmap_show_land_use_codes );
data/cataclysm-dda-0.E-1/src/uistate.h:242:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_city_labels", overmap_show_city_labels );
data/cataclysm-dda-0.E-1/src/uistate.h:243:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_hordes", overmap_show_hordes );
data/cataclysm-dda-0.E-1/src/uistate.h:244:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "overmap_show_forest_trails", overmap_show_forest_trails );
data/cataclysm-dda-0.E-1/src/uistate.h:245:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "hidden_recipes", hidden_recipes );
data/cataclysm-dda-0.E-1/src/uistate.h:246:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "favorite_recipes", favorite_recipes );
data/cataclysm-dda-0.E-1/src/uistate.h:247:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "recent_recipes", recent_recipes );
data/cataclysm-dda-0.E-1/src/uistate.h:249:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( !jo.read( "vmenu_show_items", vmenu_show_items ) ) {
data/cataclysm-dda-0.E-1/src/uistate.h:255:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "list_item_sort", list_item_sort );
data/cataclysm-dda-0.E-1/src/uistate.h:256:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "list_item_filter_active", list_item_filter_active );
data/cataclysm-dda-0.E-1/src/uistate.h:257:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "list_item_downvote_active", list_item_downvote_active );
data/cataclysm-dda-0.E-1/src/uistate.h:258:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            jo.read( "list_item_priority_active", list_item_priority_active );
data/cataclysm-dda-0.E-1/src/veh_type.cpp:379:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "looks_like", def.looks_like );
data/cataclysm-dda-0.E-1/src/vehicle.cpp:6144:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        json.read( parts );
data/cataclysm-dda-0.E-1/src/vitamin.cpp:55:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "name", vit.name_ );
data/cataclysm-dda-0.E-1/src/vitamin.cpp:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "deficiency", vit.deficiency_ );
data/cataclysm-dda-0.E-1/src/vitamin.cpp:59:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "excess", vit.excess_ );
data/cataclysm-dda-0.E-1/tests/assertion_helpers.h:15: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.
    CHECK( std::equal( c1.begin(), c1.end(), c2.begin() ) );
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:3586:29:  [1] (buffer) is_permutation:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                return std::is_permutation(m_target.begin(), m_target.end(), vec.begin());
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:12777:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:12782:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13074: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.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13080: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.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/cataclysm-dda-0.E-1/tests/catch/catch.hpp:13166:67:  [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).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )
data/cataclysm-dda-0.E-1/tests/json_test.cpp:26:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        CHECK( jsin.read( read_val ) );
data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/json-translation-input.cpp:55:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read( const std::string &name, T &t, bool throw_on_error = true );
data/cataclysm-dda-0.E-1/tools/clang-tidy-plugin/test/json-translation-input.cpp:110:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    jo.read( "endless_msg", bar.endless_msg );

ANALYSIS SUMMARY:

Hits = 1163
Lines analyzed = 413596 in approximately 10.69 seconds (38694 lines/second)
Physical Source Lines of Code (SLOC) = 327128
Hits@level = [0]  82 [1] 889 [2] 223 [3]  40 [4]  11 [5]   0
Hits@level+ = [0+] 1245 [1+] 1163 [2+] 274 [3+]  51 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 3.80585 [1+] 3.55518 [2+] 0.837593 [3+] 0.155902 [4+] 0.033626 [5+]   0
Dot directories skipped = 2 (--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.