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/blockattack-2.6.0/source/code/BallManager.hpp Examining data/blockattack-2.6.0/source/code/BlockGame.cpp Examining data/blockattack-2.6.0/source/code/BlockGame.hpp Examining data/blockattack-2.6.0/source/code/DialogBox.cpp Examining data/blockattack-2.6.0/source/code/DialogBox.hpp Examining data/blockattack-2.6.0/source/code/ExplosionManager.hpp Examining data/blockattack-2.6.0/source/code/HelpAboutState.cpp Examining data/blockattack-2.6.0/source/code/HelpAboutState.hpp Examining data/blockattack-2.6.0/source/code/HelpCommon.cpp Examining data/blockattack-2.6.0/source/code/HelpCommon.hpp Examining data/blockattack-2.6.0/source/code/HelpGamepadState.cpp Examining data/blockattack-2.6.0/source/code/HelpGamepadState.hpp Examining data/blockattack-2.6.0/source/code/HelpHowtoState.cpp Examining data/blockattack-2.6.0/source/code/HelpHowtoState.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/access.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/adapters.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/binary.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/json.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/portable_binary.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/xml.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/helpers.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/polymorphic_impl.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/polymorphic_impl_fwd.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/static_object.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/details/util.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/base64.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/allocators.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/cursorstreamwrapper.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/encodedstream.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/encodings.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/error/en.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/error/error.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/filereadstream.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/filewritestream.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/fwd.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/biginteger.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/diyfp.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/dtoa.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/ieee754.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/itoa.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/meta.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/pow10.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/regex.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/stack.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/strfunc.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/strtod.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/swap.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/istreamwrapper.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/memorybuffer.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/memorystream.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/msinttypes/inttypes.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/msinttypes/stdint.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/ostreamwrapper.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/prettywriter.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/rapidjson.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/schema.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/stream.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/stringbuffer.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml_iterators.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml_print.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml_utils.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/macros.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/specialize.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/array.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/atomic.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/base_class.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/bitset.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/boost_variant.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/chrono.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/common.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/complex.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/concepts/pair_associative_container.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/deque.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/forward_list.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/functional.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/list.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/map.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/memory.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/optional.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/polymorphic.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/queue.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/set.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/stack.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/string.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/tuple.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/unordered_map.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/unordered_set.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/utility.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/valarray.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/variant.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/types/vector.hpp Examining data/blockattack-2.6.0/source/code/Libs/include/cereal/version.hpp Examining data/blockattack-2.6.0/source/code/MenuSystem.cpp Examining data/blockattack-2.6.0/source/code/MenuSystem.h Examining data/blockattack-2.6.0/source/code/ReadKeyboard.cpp Examining data/blockattack-2.6.0/source/code/ReadKeyboard.h Examining data/blockattack-2.6.0/source/code/ReplayPlayer.cpp Examining data/blockattack-2.6.0/source/code/ReplayPlayer.hpp Examining data/blockattack-2.6.0/source/code/ScoresDisplay.cpp Examining data/blockattack-2.6.0/source/code/ScoresDisplay.hpp Examining data/blockattack-2.6.0/source/code/ShowFileState.cpp Examining data/blockattack-2.6.0/source/code/ShowFileState.hpp Examining data/blockattack-2.6.0/source/code/TextManager.hpp Examining data/blockattack-2.6.0/source/code/common.cpp Examining data/blockattack-2.6.0/source/code/common.h Examining data/blockattack-2.6.0/source/code/gamecontroller.cpp Examining data/blockattack-2.6.0/source/code/gamecontroller.h Examining data/blockattack-2.6.0/source/code/global.hpp Examining data/blockattack-2.6.0/source/code/highscore.cpp Examining data/blockattack-2.6.0/source/code/highscore.h Examining data/blockattack-2.6.0/source/code/icon.cpp Examining data/blockattack-2.6.0/source/code/icon.hpp Examining data/blockattack-2.6.0/source/code/levelselect.cpp Examining data/blockattack-2.6.0/source/code/levelselect.hpp Examining data/blockattack-2.6.0/source/code/main.cpp Examining data/blockattack-2.6.0/source/code/menudef.cpp Examining data/blockattack-2.6.0/source/code/os.cpp Examining data/blockattack-2.6.0/source/code/os.hpp Examining data/blockattack-2.6.0/source/code/puzzlehandler.cpp Examining data/blockattack-2.6.0/source/code/puzzlehandler.hpp Examining data/blockattack-2.6.0/source/code/replayhandler.cpp Examining data/blockattack-2.6.0/source/code/replayhandler.hpp Examining data/blockattack-2.6.0/source/code/sago/GameStateInterface.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoDataHolder.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoDataHolder.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoMisc.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoMisc.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoMiscSdl2.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoMiscSdl2.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoSprite.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoSprite.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoSpriteHolder.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoSpriteHolder.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoTextBox.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoTextBox.hpp Examining data/blockattack-2.6.0/source/code/sago/SagoTextField.cpp Examining data/blockattack-2.6.0/source/code/sago/SagoTextField.hpp Examining data/blockattack-2.6.0/source/code/sago/platform_folders.cpp Examining data/blockattack-2.6.0/source/code/sago/platform_folders.h Examining data/blockattack-2.6.0/source/code/scopeHelpers.hpp Examining data/blockattack-2.6.0/source/code/stageclearhandler.cpp Examining data/blockattack-2.6.0/source/code/stageclearhandler.hpp Examining data/blockattack-2.6.0/source/code/stats.cpp Examining data/blockattack-2.6.0/source/code/stats.h Examining data/blockattack-2.6.0/source/code/version.h Examining data/blockattack-2.6.0/source/misc/travis_help/utf8_v2_3_4/source/utf8.h Examining data/blockattack-2.6.0/source/misc/travis_help/utf8_v2_3_4/source/utf8/checked.h Examining data/blockattack-2.6.0/source/misc/travis_help/utf8_v2_3_4/source/utf8/core.h Examining data/blockattack-2.6.0/source/misc/travis_help/utf8_v2_3_4/source/utf8/unchecked.h FINAL RESULTS: data/blockattack-2.6.0/source/code/Libs/include/cereal/access.hpp:240:9: [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. class access data/blockattack-2.6.0/source/code/Libs/include/cereal/access.hpp:345:15: [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. ::cereal::access::construct( itsPtr, std::forward<Args>( args )... ); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:481:9: [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. access::member_serialize(*self, const_cast<T &>(t)); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:497:9: [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. access::member_save(*self, t); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:513:24: [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. self->process( access::member_save_minimal(*self, t) ); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:588:9: [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. access::member_serialize(*self, const_cast<T &>(t), registerClassVersion<T>()); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:606:9: [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. access::member_save(*self, t, registerClassVersion<T>()); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:624:24: [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. self->process( access::member_save_minimal(*self, t, registerClassVersion<T>()) ); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:886:9: [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. access::member_serialize(*self, t); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:902:9: [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. access::member_load(*self, t); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:921:9: [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. access::member_load_minimal(*self, t, value); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:1007:9: [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. access::member_serialize(*self, t, version); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:1027:9: [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. access::member_load(*self, t, version); data/blockattack-2.6.0/source/code/Libs/include/cereal/cereal.hpp:1050:9: [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. access::member_load_minimal(*self, t, value, version); data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:194:48: [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. typename detail::Void< decltype( cereal::access::member_##name( std::declval<A&>(), std::declval<T&>() versioned ) ) >::type> : yes {} data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:203:52: [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. static auto test(int) -> decltype( cereal::access::member_##name( std::declval<AA&>(), std::declval<TT&>() versioned ), yes()); \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:286:52: [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. typename detail::Void< decltype( cereal::access::member_save( std::declval<AA&>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:293:52: [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. typename detail::Void< decltype( cereal::access::member_save_non_const( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:307:52: [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. static auto test(int) -> decltype( cereal::access::member_save( std::declval<AA&>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:313:53: [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. static auto test2(int) -> decltype( cereal::access::member_save_non_const( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:433:21: [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. cereal::access::member_save_minimal( std::declval<AA const &>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:441:21: [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. cereal::access::member_save_minimal_non_const( std::declval<AA const &>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:456:52: [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. static auto test(int) -> decltype( cereal::access::member_save_minimal( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:463:53: [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. static auto test2(int) -> decltype( cereal::access::member_save_minimal_non_const( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:491:40: [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. using type = decltype( cereal::access::member_save_minimal( std::declval<A const &>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:682:19: [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. cereal::access::member_load_minimal( std::declval<A const &>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:688:21: [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. cereal::access::member_load_minimal( std::declval<A const &>(), \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:699:52: [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. static auto test(int) -> decltype( cereal::access::member_load_minimal( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:709:52: [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. static auto test(int) -> decltype( cereal::access::member_load_minimal( \ data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:887:32: [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. std::is_same<decltype( access::load_and_construct<T>( std::declval<A&>(), std::declval< ::cereal::construct<T>&>() ) ), void>::value> data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:892:32: [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. std::is_same<decltype( access::load_and_construct<T>( std::declval<A&>(), std::declval< ::cereal::construct<T>&>(), 0 ) ), void>::value> data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1205:67: [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. static auto (check)( U const & t ) -> decltype( ::cereal::access::shared_from_this(t), std::true_type() ); data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1260:64: [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. struct test<TT, typename detail::Void< decltype( cereal::access::construct<TT>() ) >::type> : yes {}; data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1264:50: [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. static auto test(int) -> decltype( cereal::access::construct<TT>(), yes()); data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1364:26: [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. { return ::cereal::access::construct<T>(); } data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1373:9: [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. access::load_and_construct<T>( ar, construct ); data/blockattack-2.6.0/source/code/Libs/include/cereal/details/traits.hpp:1384:9: [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. access::load_and_construct<T>( ar, construct, version ); data/blockattack-2.6.0/source/code/Libs/include/cereal/specialize.hpp:36:9: [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. class access; data/blockattack-2.6.0/source/code/common.cpp:57:2: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/blockattack-2.6.0/source/code/common.cpp:67:2: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/blockattack-2.6.0/source/code/common.h:75:73: [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. std::string SPrintStringF(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); data/blockattack-2.6.0/source/code/common.h:85:68: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. const char* SPrintCF(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); data/blockattack-2.6.0/source/code/os.cpp:117:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int retcode = system(cmd.c_str()); data/blockattack-2.6.0/source/code/sago/SagoMiscSdl2.cpp:50:2: [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. vsnprintf(buffer, sizeof(buffer), fmt, args); data/blockattack-2.6.0/source/code/sago/SagoMiscSdl2.hpp:41:69: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void SagoFatalErrorF(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); data/blockattack-2.6.0/source/code/main.cpp:838:27: [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* columnsEnv = getenv("COLUMNS"); // Allows using "COLUMNS=300 help2man" for generating the man page without bad line breaks. data/blockattack-2.6.0/source/code/sago/platform_folders.cpp:49: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* homeEnv = std::getenv("HOME"); data/blockattack-2.6.0/source/code/sago/platform_folders.cpp:169: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* tempRes = std::getenv(envName); data/blockattack-2.6.0/source/code/sago/platform_folders.cpp:180: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 char* envValue = std::getenv(envName); data/blockattack-2.6.0/source/code/BlockGame.cpp:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[20]; data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/json.hpp:466: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( data, decoded.data(), decoded.size() ); data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/xml.hpp:467: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( data, decoded.data(), decoded.size() ); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/base64.hpp:52:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char char_array_3[3]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/base64.hpp:53: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. unsigned char char_array_4[4]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/base64.hpp:94: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. unsigned char char_array_4[4], char_array_3[3]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/allocators.h:230: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(newBuffer, originalPtr, originalSize); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1146:20: [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 buffer[sizeof(GenericValue)]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1947: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 payload[sizeof(SizeType) * 2 + 6]; // 2 x SizeType + lower 48-bit pointer data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1949: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 payload[sizeof(SizeType) * 2 + sizeof(void*) + 6]; // 6 padding bytes data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1951: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 payload[sizeof(SizeType) * 2 + sizeof(void*) + 2]; // 2 padding bytes data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1984: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 padding[4]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1988: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 padding2[4]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1992: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 padding[4]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:1996: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 padding2[4]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:2039:18: [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*>(e), values, count * sizeof(GenericValue)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:2052:18: [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*>(m), members, count * sizeof(Member)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/document.h:2079: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(str, s, s.length * sizeof(Ch)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/biginteger.h:33: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(digits_, rhs.digits_, count_ * sizeof(Type)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/biginteger.h:59:18: [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(digits_, rhs.digits_, count_ * sizeof(Type)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/itoa.h:24: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. static const char cDigitsLut[200] = { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/regex.h:459:9: [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(s, &GetState(src.minIndex), count * sizeof(State)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h:248: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(p, token.name, (token.length + 1) * sizeof(Ch)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h:298: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[21]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h:831:18: [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(tokens_, rhs.tokens_, rhs.tokenCount_ * sizeof(Token)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h:834:18: [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(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/pointer.h:1090:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hexDigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:297: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. static const char whitespace[16] = " \n\r\t"; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:316: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. static const char whitespace[16] = " \n\r\t"; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:349: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. static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:385: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. static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:992:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char escape[256] = { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1077:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1078:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1079:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1140:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1141:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1142:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1188:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1189:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1190:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1807: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. static const unsigned char tokenMap[256] = { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/reader.h:1830:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char G[cIterativeParsingStateCount][kTokenCount] = { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/schema.h:467: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 buffer[256u + 24]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/schema.h:1449: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[21]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/schema.h:2224: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(documentStack_.template Push<char>(basePathSize), basePath, basePathSize); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/schema.h:2341:9: [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(sb.Push(CurrentSchema().GetURI().GetStringLength()), data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:313: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[11]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:322: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[10]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:331: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[21]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:340: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[20]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:368: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[25]; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:378:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char escape[256] = { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:597: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. static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:598: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. static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/writer.h:599: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. static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F }; data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:299:35: [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 lookup_whitespace[256]; // Whitespace table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:300:35: [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 lookup_node_name[256]; // Node name table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:301:35: [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 lookup_text[256]; // Text table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:302:35: [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 lookup_text_pure_no_ws[256]; // Text table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:303:35: [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 lookup_text_pure_with_ws[256]; // Text table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:304:35: [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 lookup_attribute_name[256]; // Attribute name table data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:305:35: [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 lookup_attribute_data_1[256]; // Attribute data table with single quote data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:306:35: [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 lookup_attribute_data_1_pure[256]; // Attribute data table with single quote data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:307:35: [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 lookup_attribute_data_2[256]; // Attribute data table with double quotes data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:308:35: [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 lookup_attribute_data_2_pure[256]; // Attribute data table with double quotes data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:309:35: [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 lookup_digits[256]; // Digits data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:310:35: [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 lookup_upcase[256]; // To uppercase conversion table for ASCII characters data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml.hpp:649: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_static_memory[CEREAL_RAPIDXML_STATIC_POOL_SIZE]; // Static raw memory data/blockattack-2.6.0/source/code/Libs/include/cereal/types/memory.hpp:147:16: [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( &itsState, itsPtr, sizeof(ParentType) ); data/blockattack-2.6.0/source/code/Libs/include/cereal/types/memory.hpp:156:18: [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 *>(itsPtr), &itsState, sizeof(ParentType) ); data/blockattack-2.6.0/source/code/Libs/include/cereal/types/tuple.hpp:49:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char str[sizeof...(Cs) + size]; data/blockattack-2.6.0/source/code/MenuSystem.cpp:241: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. static char FPS[10]; data/blockattack-2.6.0/source/code/ScoresDisplay.cpp:116:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char playerScore[32]; data/blockattack-2.6.0/source/code/ScoresDisplay.cpp:117:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char playerName[32]; data/blockattack-2.6.0/source/code/common.cpp:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/blockattack-2.6.0/source/code/common.cpp:64: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. static char buffer[1024]; data/blockattack-2.6.0/source/code/gamecontroller.cpp:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[3]; data/blockattack-2.6.0/source/code/os.cpp:63:19: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int actualSize = MultiByteToWideChar(CP_UTF8, 0, str, -1, nullptr, 0); data/blockattack-2.6.0/source/code/os.cpp:67:16: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). actualSize = MultiByteToWideChar(CP_UTF8, 0, str, -1, &buffer[0], buffer.size()); data/blockattack-2.6.0/source/code/os.cpp:82:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t win_buffer[50]; data/blockattack-2.6.0/source/code/replayhandler.cpp:36:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[200]; data/blockattack-2.6.0/source/code/sago/SagoMiscSdl2.cpp:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/blockattack-2.6.0/source/code/sago/platform_folders.cpp:159:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[200]; data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/json.hpp:530:35: [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 len = std::strlen( searchName ); data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/json.hpp:536:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ( std::strlen( currentName ) == len ) ) data/blockattack-2.6.0/source/code/Libs/include/cereal/archives/xml.hpp:268: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). strValue.resize(std::strlen(strValue.c_str())); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/strfunc.h:40:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return SizeType(std::strlen(s)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/internal/strfunc.h:45:26: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return SizeType(std::wcslen(s)); data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidjson/istreamwrapper.h:101:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!stream_.read(buffer_, static_cast<std::streamsize>(bufferSize_))) { data/blockattack-2.6.0/source/code/Libs/include/cereal/external/rapidxml/rapidxml_utils.hpp:45:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream.read(&m_data.front(), static_cast<streamsize>(size)); ANALYSIS SUMMARY: Hits = 140 Lines analyzed = 43905 in approximately 1.24 seconds (35405 lines/second) Physical Source Lines of Code (SLOC) = 27902 Hits@level = [0] 18 [1] 7 [2] 84 [3] 4 [4] 45 [5] 0 Hits@level+ = [0+] 158 [1+] 140 [2+] 133 [3+] 49 [4+] 45 [5+] 0 Hits/KSLOC@level+ = [0+] 5.66268 [1+] 5.01756 [2+] 4.76668 [3+] 1.75615 [4+] 1.61279 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.