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/lierolibre-0.5/src/argParse.cpp
Examining data/lierolibre-0.5/src/argParse.hpp
Examining data/lierolibre-0.5/src/binReader.cpp
Examining data/lierolibre-0.5/src/binReader.hpp
Examining data/lierolibre-0.5/src/bobject.cpp
Examining data/lierolibre-0.5/src/bobject.hpp
Examining data/lierolibre-0.5/src/bonus.cpp
Examining data/lierolibre-0.5/src/bonus.hpp
Examining data/lierolibre-0.5/src/boostTesting.cpp
Examining data/lierolibre-0.5/src/common.hpp
Examining data/lierolibre-0.5/src/configHelper.hpp
Examining data/lierolibre-0.5/src/configInit.cpp
Examining data/lierolibre-0.5/src/configInit.hpp
Examining data/lierolibre-0.5/src/console.cpp
Examining data/lierolibre-0.5/src/console.hpp
Examining data/lierolibre-0.5/src/constants.hpp
Examining data/lierolibre-0.5/src/controller/commonController.cpp
Examining data/lierolibre-0.5/src/controller/commonController.hpp
Examining data/lierolibre-0.5/src/controller/controller.hpp
Examining data/lierolibre-0.5/src/controller/localController.cpp
Examining data/lierolibre-0.5/src/controller/localController.hpp
Examining data/lierolibre-0.5/src/controller/replayController.cpp
Examining data/lierolibre-0.5/src/controller/replayController.hpp
Examining data/lierolibre-0.5/src/dataPath.cpp
Examining data/lierolibre-0.5/src/dataPath.hpp
Examining data/lierolibre-0.5/src/dummy_config.h
Examining data/lierolibre-0.5/src/exactObjectList.hpp
Examining data/lierolibre-0.5/src/fastObjectList.hpp
Examining data/lierolibre-0.5/src/filesystem.cpp
Examining data/lierolibre-0.5/src/filesystem.hpp
Examining data/lierolibre-0.5/src/game.cpp
Examining data/lierolibre-0.5/src/game.hpp
Examining data/lierolibre-0.5/src/gfx.cpp
Examining data/lierolibre-0.5/src/gfx.hpp
Examining data/lierolibre-0.5/src/gfx/blit.cpp
Examining data/lierolibre-0.5/src/gfx/blit.hpp
Examining data/lierolibre-0.5/src/gfx/color.hpp
Examining data/lierolibre-0.5/src/gfx/font.cpp
Examining data/lierolibre-0.5/src/gfx/font.hpp
Examining data/lierolibre-0.5/src/gfx/macros.hpp
Examining data/lierolibre-0.5/src/gfx/palette.hpp
Examining data/lierolibre-0.5/src/gfx/sprite.cpp
Examining data/lierolibre-0.5/src/gfx/sprite.hpp
Examining data/lierolibre-0.5/src/gfx/palette.cpp
Examining data/lierolibre-0.5/src/gvl/containers/accurate_rectangle_packing.hpp
Examining data/lierolibre-0.5/src/gvl/containers/avl_tree.hpp
Examining data/lierolibre-0.5/src/gvl/containers/bounded_rectangle_packing.hpp
Examining data/lierolibre-0.5/src/gvl/containers/bucket.hpp
Examining data/lierolibre-0.5/src/gvl/containers/buffer.cpp
Examining data/lierolibre-0.5/src/gvl/containers/buffer.hpp
Examining data/lierolibre-0.5/src/gvl/containers/compact_interval_set.hpp
Examining data/lierolibre-0.5/src/gvl/containers/critbit.cpp
Examining data/lierolibre-0.5/src/gvl/containers/critbit.hpp
Examining data/lierolibre-0.5/src/gvl/containers/deque.hpp
Examining data/lierolibre-0.5/src/gvl/containers/generic_hash_set.hpp
Examining data/lierolibre-0.5/src/gvl/containers/hash_map.hpp
Examining data/lierolibre-0.5/src/gvl/containers/hash_set.hpp
Examining data/lierolibre-0.5/src/gvl/containers/int_set.hpp
Examining data/lierolibre-0.5/src/gvl/containers/iterator.hpp
Examining data/lierolibre-0.5/src/gvl/containers/linked_vector.hpp
Examining data/lierolibre-0.5/src/gvl/containers/list.cpp
Examining data/lierolibre-0.5/src/gvl/containers/list.h
Examining data/lierolibre-0.5/src/gvl/containers/list.hpp
Examining data/lierolibre-0.5/src/gvl/containers/list3.hpp
Examining data/lierolibre-0.5/src/gvl/containers/node_base.hpp
Examining data/lierolibre-0.5/src/gvl/containers/pairing_heap.hpp
Examining data/lierolibre-0.5/src/gvl/containers/pod_vector.hpp
Examining data/lierolibre-0.5/src/gvl/containers/range.hpp
Examining data/lierolibre-0.5/src/gvl/containers/string.hpp
Examining data/lierolibre-0.5/src/gvl/containers/tests/deque.cpp
Examining data/lierolibre-0.5/src/gvl/containers/tests/hash_set.cpp
Examining data/lierolibre-0.5/src/gvl/containers/tests/list.cpp
Examining data/lierolibre-0.5/src/gvl/containers/tests/pairing_heap.cpp
Examining data/lierolibre-0.5/src/gvl/containers/tests/treap.cpp
Examining data/lierolibre-0.5/src/gvl/containers/treap.hpp
Examining data/lierolibre-0.5/src/gvl/containers/treap2.hpp
Examining data/lierolibre-0.5/src/gvl/containers/xlist.hpp
Examining data/lierolibre-0.5/src/gvl/crypt/curve25519.cpp
Examining data/lierolibre-0.5/src/gvl/crypt/curve25519.hpp
Examining data/lierolibre-0.5/src/gvl/crypt/gash.hpp
Examining data/lierolibre-0.5/src/gvl/crypt/gciph.hpp
Examining data/lierolibre-0.5/src/gvl/cstdint.hpp
Examining data/lierolibre-0.5/src/gvl/debug.hpp
Examining data/lierolibre-0.5/src/gvl/dense_int_set.hpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/_build/deque.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/accurate_rectangle_packing.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/bounded_rectangle_packing.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/compact_interval_set.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/dense_int_set.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/hash_set.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/list.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/pairing_heap.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/string.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/containers/treap.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/io/bitstream.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/io/formatter.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/io/stream.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/math/deterministic_float.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/math/random.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/support/bits.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/support/opt.cpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/template.hpp
Examining data/lierolibre-0.5/src/gvl/gvl_test/test.cpp
Examining data/lierolibre-0.5/src/gvl/hash_set/generic_hash_set.hpp
Examining data/lierolibre-0.5/src/gvl/hash_set/hash_set.hpp
Examining data/lierolibre-0.5/src/gvl/io/bitstream.hpp
Examining data/lierolibre-0.5/src/gvl/io/bitstream_old.hpp
Examining data/lierolibre-0.5/src/gvl/io/bitstream_templ.hpp
Examining data/lierolibre-0.5/src/gvl/io/bitstream_templ_old.hpp
Examining data/lierolibre-0.5/src/gvl/io/brigade2.h
Examining data/lierolibre-0.5/src/gvl/io/brigade2.hpp
Examining data/lierolibre-0.5/src/gvl/io/common_bitstream.hpp
Examining data/lierolibre-0.5/src/gvl/io/convert.cpp
Examining data/lierolibre-0.5/src/gvl/io/convert.hpp
Examining data/lierolibre-0.5/src/gvl/io/deflate_filter.hpp
Examining data/lierolibre-0.5/src/gvl/io/device_buf.cpp
Examining data/lierolibre-0.5/src/gvl/io/device_buf.hpp
Examining data/lierolibre-0.5/src/gvl/io/devnull.hpp
Examining data/lierolibre-0.5/src/gvl/io/encoding.cpp
Examining data/lierolibre-0.5/src/gvl/io/encoding_compat.hpp
Examining data/lierolibre-0.5/src/gvl/io/fstream.hpp
Examining data/lierolibre-0.5/src/gvl/io/iostream.hpp
Examining data/lierolibre-0.5/src/gvl/io/range_coder.hpp
Examining data/lierolibre-0.5/src/gvl/io/stream.cpp
Examining data/lierolibre-0.5/src/gvl/io/stream.hpp
Examining data/lierolibre-0.5/src/gvl/io/tests/bitstream.cpp
Examining data/lierolibre-0.5/src/gvl/io/tests/stream.cpp
Examining data/lierolibre-0.5/src/gvl/io/unicode.hpp
Examining data/lierolibre-0.5/src/gvl/io/encoding.hpp
Examining data/lierolibre-0.5/src/gvl/linked_hash_set.hpp
Examining data/lierolibre-0.5/src/gvl/list.hpp
Examining data/lierolibre-0.5/src/gvl/math/cmwc.hpp
Examining data/lierolibre-0.5/src/gvl/math/float.hpp
Examining data/lierolibre-0.5/src/gvl/math/ieee.hpp
Examining data/lierolibre-0.5/src/gvl/math/math.hpp
Examining data/lierolibre-0.5/src/gvl/math/matrix.hpp
Examining data/lierolibre-0.5/src/gvl/math/normal_distribution.hpp
Examining data/lierolibre-0.5/src/gvl/math/random.hpp
Examining data/lierolibre-0.5/src/gvl/math/rect.hpp
Examining data/lierolibre-0.5/src/gvl/math/tests/reproducible_floats.cpp
Examining data/lierolibre-0.5/src/gvl/math/tt800.cpp
Examining data/lierolibre-0.5/src/gvl/math/tt800.hpp
Examining data/lierolibre-0.5/src/gvl/math/vec.hpp
Examining data/lierolibre-0.5/src/gvl/math/ieee.cpp
Examining data/lierolibre-0.5/src/gvl/meta/as_unsigned.hpp
Examining data/lierolibre-0.5/src/gvl/meta/is_ptr_convertible.hpp
Examining data/lierolibre-0.5/src/gvl/meta/meta.hpp
Examining data/lierolibre-0.5/src/gvl/meta/static_log2.hpp
Examining data/lierolibre-0.5/src/gvl/resman/allocator.hpp
Examining data/lierolibre-0.5/src/gvl/resman/linked_object.hpp
Examining data/lierolibre-0.5/src/gvl/resman/scoped_array.hpp
Examining data/lierolibre-0.5/src/gvl/resman/shared.cpp
Examining data/lierolibre-0.5/src/gvl/resman/shared.h
Examining data/lierolibre-0.5/src/gvl/resman/shared.hpp
Examining data/lierolibre-0.5/src/gvl/resman/shared_count.hpp
Examining data/lierolibre-0.5/src/gvl/resman/shared_list.hpp
Examining data/lierolibre-0.5/src/gvl/resman/shared_ptr.hpp
Examining data/lierolibre-0.5/src/gvl/serialization/archive.hpp
Examining data/lierolibre-0.5/src/gvl/serialization/context.hpp
Examining data/lierolibre-0.5/src/gvl/serialization/except.hpp
Examining data/lierolibre-0.5/src/gvl/sockets/fd_set.cpp
Examining data/lierolibre-0.5/src/gvl/sockets/fd_set.hpp
Examining data/lierolibre-0.5/src/gvl/sockets/socket_listener.cpp
Examining data/lierolibre-0.5/src/gvl/sockets/socket_listener.hpp
Examining data/lierolibre-0.5/src/gvl/sockets/sockets.cpp
Examining data/lierolibre-0.5/src/gvl/sockets/sockets.hpp
Examining data/lierolibre-0.5/src/gvl/sockets/sockets_sys_impl.hpp
Examining data/lierolibre-0.5/src/gvl/sockets/socketstream.cpp
Examining data/lierolibre-0.5/src/gvl/sockets/socketstream.hpp
Examining data/lierolibre-0.5/src/gvl/support.hpp
Examining data/lierolibre-0.5/src/gvl/support/algorithm.hpp
Examining data/lierolibre-0.5/src/gvl/support/align.hpp
Examining data/lierolibre-0.5/src/gvl/support/bits.c
Examining data/lierolibre-0.5/src/gvl/support/bits.hpp
Examining data/lierolibre-0.5/src/gvl/support/borrow.hpp
Examining data/lierolibre-0.5/src/gvl/support/cheap_flags.hpp
Examining data/lierolibre-0.5/src/gvl/support/config.h
Examining data/lierolibre-0.5/src/gvl/support/cstdint.hpp
Examining data/lierolibre-0.5/src/gvl/support/debug.cpp
Examining data/lierolibre-0.5/src/gvl/support/debug.hpp
Examining data/lierolibre-0.5/src/gvl/support/disjoint_set.hpp
Examining data/lierolibre-0.5/src/gvl/support/flags.hpp
Examining data/lierolibre-0.5/src/gvl/support/foreach.hpp
Examining data/lierolibre-0.5/src/gvl/support/functional.hpp
Examining data/lierolibre-0.5/src/gvl/support/hash.cpp
Examining data/lierolibre-0.5/src/gvl/support/hash.hpp
Examining data/lierolibre-0.5/src/gvl/support/log.cpp
Examining data/lierolibre-0.5/src/gvl/support/log.hpp
Examining data/lierolibre-0.5/src/gvl/support/macros.hpp
Examining data/lierolibre-0.5/src/gvl/support/move.hpp
Examining data/lierolibre-0.5/src/gvl/support/object_model.h
Examining data/lierolibre-0.5/src/gvl/support/opt.hpp
Examining data/lierolibre-0.5/src/gvl/support/platform.cpp
Examining data/lierolibre-0.5/src/gvl/support/platform.hpp
Examining data/lierolibre-0.5/src/gvl/support/profile.cpp
Examining data/lierolibre-0.5/src/gvl/support/profile.hpp
Examining data/lierolibre-0.5/src/gvl/support/string_pool.cpp
Examining data/lierolibre-0.5/src/gvl/support/string_pool.hpp
Examining data/lierolibre-0.5/src/gvl/support/tests/bits.cpp
Examining data/lierolibre-0.5/src/gvl/support/type_info.hpp
Examining data/lierolibre-0.5/src/gvl/support/platform.h
Examining data/lierolibre-0.5/src/gvl/system/memory.hpp
Examining data/lierolibre-0.5/src/gvl/system/mutex.c
Examining data/lierolibre-0.5/src/gvl/system/mutex.hpp
Examining data/lierolibre-0.5/src/gvl/system/system.c
Examining data/lierolibre-0.5/src/gvl/system/system.hpp
Examining data/lierolibre-0.5/src/gvl/system/windows.hpp
Examining data/lierolibre-0.5/src/gvl/test/gvl_tests.cpp
Examining data/lierolibre-0.5/src/gvl/test/gvl_tests.hpp
Examining data/lierolibre-0.5/src/gvl/test/test.hpp
Examining data/lierolibre-0.5/src/gvl/text/utf8.hpp
Examining data/lierolibre-0.5/src/gvl/text/util.cpp
Examining data/lierolibre-0.5/src/gvl/text/util.hpp
Examining data/lierolibre-0.5/src/gvl/trees/node_base.hpp
Examining data/lierolibre-0.5/src/gvl/tut/quickcheck/context.cpp
Examining data/lierolibre-0.5/src/gvl/tut/quickcheck/context.hpp
Examining data/lierolibre-0.5/src/gvl/tut/quickcheck/generator.hpp
Examining data/lierolibre-0.5/src/gvl/tut/quickcheck/property.hpp
Examining data/lierolibre-0.5/src/gvl/tut/quickcheck/quickcheck.hpp
Examining data/lierolibre-0.5/src/keys.cpp
Examining data/lierolibre-0.5/src/keys.hpp
Examining data/lierolibre-0.5/src/level.cpp
Examining data/lierolibre-0.5/src/level.hpp
Examining data/lierolibre-0.5/src/lfs.hpp
Examining data/lierolibre-0.5/src/main.cpp
Examining data/lierolibre-0.5/src/math.cpp
Examining data/lierolibre-0.5/src/math.hpp
Examining data/lierolibre-0.5/src/menu/arrayEnumBehavior.hpp
Examining data/lierolibre-0.5/src/menu/booleanSwitchBehavior.cpp
Examining data/lierolibre-0.5/src/menu/booleanSwitchBehavior.hpp
Examining data/lierolibre-0.5/src/menu/enumBehavior.cpp
Examining data/lierolibre-0.5/src/menu/enumBehavior.hpp
Examining data/lierolibre-0.5/src/menu/hiddenMenu.cpp
Examining data/lierolibre-0.5/src/menu/hiddenMenu.hpp
Examining data/lierolibre-0.5/src/menu/integerBehavior.cpp
Examining data/lierolibre-0.5/src/menu/integerBehavior.hpp
Examining data/lierolibre-0.5/src/menu/itemBehavior.cpp
Examining data/lierolibre-0.5/src/menu/itemBehavior.hpp
Examining data/lierolibre-0.5/src/menu/menu.cpp
Examining data/lierolibre-0.5/src/menu/menu.hpp
Examining data/lierolibre-0.5/src/menu/menuItem.cpp
Examining data/lierolibre-0.5/src/menu/menuItem.hpp
Examining data/lierolibre-0.5/src/menu/timeBehavior.cpp
Examining data/lierolibre-0.5/src/menu/timeBehavior.hpp
Examining data/lierolibre-0.5/src/ninjarope.cpp
Examining data/lierolibre-0.5/src/nobject.cpp
Examining data/lierolibre-0.5/src/nobject.hpp
Examining data/lierolibre-0.5/src/objectList.hpp
Examining data/lierolibre-0.5/src/rand.cpp
Examining data/lierolibre-0.5/src/rand.hpp
Examining data/lierolibre-0.5/src/reader.cpp
Examining data/lierolibre-0.5/src/reader.hpp
Examining data/lierolibre-0.5/src/rect.hpp
Examining data/lierolibre-0.5/src/replay.cpp
Examining data/lierolibre-0.5/src/replay.hpp
Examining data/lierolibre-0.5/src/sdlmain.cpp
Examining data/lierolibre-0.5/src/settings.cpp
Examining data/lierolibre-0.5/src/settings.hpp
Examining data/lierolibre-0.5/src/sfx.cpp
Examining data/lierolibre-0.5/src/sfx.hpp
Examining data/lierolibre-0.5/src/sobject.cpp
Examining data/lierolibre-0.5/src/sobject.hpp
Examining data/lierolibre-0.5/src/sys.cpp
Examining data/lierolibre-0.5/src/sys.hpp
Examining data/lierolibre-0.5/src/text.cpp
Examining data/lierolibre-0.5/src/text.hpp
Examining data/lierolibre-0.5/src/to_string.cpp
Examining data/lierolibre-0.5/src/to_string.hpp
Examining data/lierolibre-0.5/src/version.hpp
Examining data/lierolibre-0.5/src/viewport.cpp
Examining data/lierolibre-0.5/src/viewport.hpp
Examining data/lierolibre-0.5/src/weapon.cpp
Examining data/lierolibre-0.5/src/weapon.hpp
Examining data/lierolibre-0.5/src/weapsel.cpp
Examining data/lierolibre-0.5/src/weapsel.hpp
Examining data/lierolibre-0.5/src/worm.cpp
Examining data/lierolibre-0.5/src/worm.hpp
Examining data/lierolibre-0.5/src/common.cpp
Examining data/lierolibre-0.5/src/configCompat.cpp
Examining data/lierolibre-0.5/src/configHelper.cpp
Examining data/lierolibre-0.5/src/constants.cpp

FINAL RESULTS:

data/lierolibre-0.5/src/boostTesting.cpp:89:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(c_temp_homedir, template_string.c_str());
data/lierolibre-0.5/src/boostTesting.cpp:90:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(c_temp_readonlydir, template_string.c_str());
data/lierolibre-0.5/src/filesystem.cpp:186:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tmpFileName, path.c_str());
data/lierolibre-0.5/src/gvl/system/memory.hpp:60:55:  [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.
#         warning Memory barriers not defined on this system or system unknown
data/lierolibre-0.5/src/gvl/system/memory.hpp:60:65:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#         warning Memory barriers not defined on this system or system unknown
data/lierolibre-0.5/src/gvl/system/memory.hpp:66:57:  [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.
#         error Memory barriers are not defined on this system. You can still compile by defining ALLOW_SMP_DANGERS, but SMP safety will not be guaranteed.
data/lierolibre-0.5/src/gvl/system/memory.hpp:87:52:  [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.
#      warning Memory barriers not defined on this system or system unknown
data/lierolibre-0.5/src/gvl/system/memory.hpp:87:62:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#      warning Memory barriers not defined on this system or system unknown
data/lierolibre-0.5/src/gvl/system/memory.hpp:93:54:  [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.
#      error Memory barriers are not defined on this system. You can still compile by defining ALLOW_SMP_DANGERS, but SMP safety will not be guaranteed.
data/lierolibre-0.5/src/main.cpp:91:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(sdlvd, s.c_str());
data/lierolibre-0.5/src/boostTesting.cpp:95:19:  [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.
		original_home = getenv("HOME");
data/lierolibre-0.5/src/common.cpp:223:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	cfgHelp.put(texts, "random", random);
data/lierolibre-0.5/src/common.hpp:101:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	std::string random;
data/lierolibre-0.5/src/dataPath.cpp:69: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.
	configdotdir = string(getenv("HOME")) + '/' + ".lierolibre";
data/lierolibre-0.5/src/gfx.cpp:1343: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.
	levelMenu.addItem(MenuItem(48, 7, common->texts.random));
data/lierolibre-0.5/src/binReader.cpp:48: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 txt[256];
data/lierolibre-0.5/src/binReader.cpp:55: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 txt[256];
data/lierolibre-0.5/src/binReader.cpp:76: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 txt[256];
data/lierolibre-0.5/src/binReader.cpp:83:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char temp[1];
data/lierolibre-0.5/src/binReader.cpp:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[1];
data/lierolibre-0.5/src/binReader.cpp:102:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char temp[2];
data/lierolibre-0.5/src/binReader.cpp:115:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char temp[2];
data/lierolibre-0.5/src/binReader.cpp:122:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char temp[4];
data/lierolibre-0.5/src/binReader.cpp:129:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char temp[4];
data/lierolibre-0.5/src/boostTesting.cpp:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char c_temp_homedir[FILENAME_MAX];
data/lierolibre-0.5/src/boostTesting.cpp:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char c_temp_readonlydir[FILENAME_MAX];
data/lierolibre-0.5/src/boostTesting.cpp:129: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).
			file.open(filepath.c_str(), ios::out);
data/lierolibre-0.5/src/boostTesting.cpp:159:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file.open(filepath.c_str(), ios::out);
data/lierolibre-0.5/src/boostTesting.cpp:204: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).
	configfile.open(configfile_path.c_str(), ios::out);
data/lierolibre-0.5/src/boostTesting.cpp:215: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).
	configfile.open(configfile_path.c_str(), ios::out);
data/lierolibre-0.5/src/boostTesting.cpp:243: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).
	lieroexe_wrong.open(lieroexe_wrong_path.c_str(), ios::out|ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:270:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_ro.open(path_ro.c_str(), ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:285:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_rw.open(path_rw.c_str(), ios::out|ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:310: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).
		f.open(path.c_str(), ios::out|ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:330:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_ro.open(path_ro.c_str(), ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:343:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_rw.open(path_rw.c_str(), ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:357:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_ro.open(path_ro.c_str(), ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:369:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f_rw.open(path_rw.c_str(), ios::in);
data/lierolibre-0.5/src/boostTesting.cpp:403: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).
	meepdat.open(meepdat_path.c_str(), ios::out);
data/lierolibre-0.5/src/common.cpp:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	random = (char const*)texts["random"];
data/lierolibre-0.5/src/common.cpp:151: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.
	random2 = (char const*)texts["random2"];
data/lierolibre-0.5/src/common.cpp:152: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.
	regenLevel = (char const*)texts["regenLevel"];
data/lierolibre-0.5/src/common.cpp:153: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.
	reloadLevel = (char const*)texts["reloadLevel"];
data/lierolibre-0.5/src/common.cpp:155: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.
	copyright1 = (char const*)texts["copyright1"];
data/lierolibre-0.5/src/common.cpp:156: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.
	copyright2 = (char const*)texts["copyright2"];
data/lierolibre-0.5/src/common.cpp:157: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.
	saveoptions = (char const*)texts["saveoptions"];
data/lierolibre-0.5/src/common.cpp:158: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.
	loadoptions = (char const*)texts["loadoptions"];
data/lierolibre-0.5/src/common.cpp:159: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.
	curOptNoFile = (char const*)texts["curOptNoFile"];
data/lierolibre-0.5/src/common.cpp:160:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	curOpt = (char const*)texts["curOpt"];
data/lierolibre-0.5/src/common.cpp:165:19:  [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.
		gameModes[i] = (char const*)sgmodes[("gameModes" + to_string(i)).c_str()];
data/lierolibre-0.5/src/common.cpp:169: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.
	gameModeSpec[0] = (char const*)sgmspec["gameModeSpec0"];
data/lierolibre-0.5/src/common.cpp:170: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.
	gameModeSpec[1] = (char const*)sgmspec["gameModeSpec1"];
data/lierolibre-0.5/src/common.cpp:171: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.
	gameModeSpec[2] = (char const*)sgmspec["gameModeSpec2"];
data/lierolibre-0.5/src/common.cpp:174:14:  [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.
	onoff[0] = (char const*)sonoff["onoff0"];
data/lierolibre-0.5/src/common.cpp:175:14:  [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.
	onoff[1] = (char const*)sonoff["onoff1"];
data/lierolibre-0.5/src/common.cpp:178: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.
	controllers[0] = (char const*)scontrollers["controllers0"];
data/lierolibre-0.5/src/common.cpp:179: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.
	controllers[1] = (char const*)scontrollers["controllers1"];
data/lierolibre-0.5/src/common.cpp:184: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.
		 weapStates[i] = (char const*)swstates[("weapStates" + to_string(i)).c_str()];
data/lierolibre-0.5/src/common.cpp:190: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.
		keyNames[i] = (char const*)sknames[("keyNames" + to_string(i)).c_str()];
data/lierolibre-0.5/src/common.cpp:193: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.
	selWeap = (char const*)texts["selWeap"];
data/lierolibre-0.5/src/common.cpp:194: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.
	levelRandom = (char const*)texts["levelRandom"];
data/lierolibre-0.5/src/common.cpp:195:14:  [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.
	levelIs1 = (char const*)texts["levelIs1"];
data/lierolibre-0.5/src/common.cpp:196:14:  [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.
	levelIs2 = (char const*)texts["levelIs2"];
data/lierolibre-0.5/src/common.cpp:197: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.
	randomize = (char const*)texts["randomize"];
data/lierolibre-0.5/src/common.cpp:198:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	done = (char const*)texts["done"];
data/lierolibre-0.5/src/common.cpp:200: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.
	reloading = (char const*)texts["reloading"];
data/lierolibre-0.5/src/common.cpp:201: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.
	pressFire = (char const*)texts["pressFire"];
data/lierolibre-0.5/src/common.cpp:203: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.
	kills = (char const*)texts["kills"];
data/lierolibre-0.5/src/common.cpp:204: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.
	lives = (char const*)texts["lives"];
data/lierolibre-0.5/src/common.cpp:206:14:  [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.
	selLevel = (char const*)texts["selLevel"];
data/lierolibre-0.5/src/common.cpp:208:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	weapon = (char const*)texts["weapon"];
data/lierolibre-0.5/src/common.cpp:209: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.
	availability = (char const*)texts["availability"];
data/lierolibre-0.5/src/common.cpp:210: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.
	noWeaps = (char const*)texts["noWeaps"];
data/lierolibre-0.5/src/common.cpp:354:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char bits[32];
data/lierolibre-0.5/src/configCompat.cpp:169:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		S[i]= (char const*)sconstants[stringConstantsNamesCFGVer0[i].c_str()];
data/lierolibre-0.5/src/constants.cpp:532:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		S[i]= (char const*)sconstants[stringConstantsNames[i].c_str()];
data/lierolibre-0.5/src/controller/localController.cpp:229: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[512];
data/lierolibre-0.5/src/dataPath.cpp:104: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_writable.open(filepath_writable.c_str(),
data/lierolibre-0.5/src/dataPath.cpp:111: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).
			file_readonly.open(filepath_readonly.c_str(),
data/lierolibre-0.5/src/dataPath.cpp:116:19:  [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_writable.open( filepath_writable.c_str(),
data/lierolibre-0.5/src/dataPath.cpp:137: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_readonly.open(filepath_readonly.c_str());
data/lierolibre-0.5/src/filesystem.cpp:127:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = std::fopen(name.c_str(), mode);
data/lierolibre-0.5/src/filesystem.cpp:133:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = std::fopen(ch.c_str(), mode);
data/lierolibre-0.5/src/filesystem.cpp:138:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = std::fopen(ch.c_str(), mode);
data/lierolibre-0.5/src/filesystem.cpp:144:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = std::fopen(ch.c_str(), mode);
data/lierolibre-0.5/src/filesystem.cpp:167:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(path.c_str(), "rb");
data/lierolibre-0.5/src/filesystem.cpp:185: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 tmpFileName[FILENAME_MAX];
data/lierolibre-0.5/src/filesystem.cpp:187:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(tmpFileName, "_backup_XXXXXX");
data/lierolibre-0.5/src/filesystem.cpp:195:6:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if (mkstemp(tmpFileName) == -1)
data/lierolibre-0.5/src/filesystem.cpp:200: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).
	in.open(path.c_str(), std::ios::binary);
data/lierolibre-0.5/src/filesystem.cpp:202:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out.open(tmpFileName, std::ios::binary | std::ios::out);
data/lierolibre-0.5/src/gfx.cpp:846:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					std::memcpy(destLine, line, 320);
data/lierolibre-0.5/src/gfx.cpp:1390:8:  [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(gfx.screenPixels, &frozenScreen[0], frozenScreen.size());
data/lierolibre-0.5/src/gfx.cpp:1486:8:  [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(gfx.screenPixels, &frozenScreen[0], frozenScreen.size());
data/lierolibre-0.5/src/gfx.cpp:1574:8:  [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(gfx.screenPixels, &frozenScreen[0], frozenScreen.size());
data/lierolibre-0.5/src/gfx.cpp:1610:50:  [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).
				gvl::stream_ptr replay(new gvl::fstream(std::fopen(fullPath.c_str(), "rb")));
data/lierolibre-0.5/src/gfx.cpp:1677:8:  [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(gfx.screenPixels, &frozenScreen[0], frozenScreen.size());
data/lierolibre-0.5/src/gfx.cpp:1858:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		dest = std::atoi(str.c_str());
data/lierolibre-0.5/src/gfx.cpp:2053:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(path.c_str(), "rb");
data/lierolibre-0.5/src/gfx.cpp:2060:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/lierolibre-0.5/src/gfx.cpp:2074:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(path.c_str(), "wb");
data/lierolibre-0.5/src/gfx.cpp:2089:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(screen->pixels, &frozenScreen[0], frozenScreen.size());
data/lierolibre-0.5/src/gfx.cpp:2156:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(&frozenScreen[0], screen->pixels, frozenScreen.size());
data/lierolibre-0.5/src/gfx/blit.cpp:76:8:  [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(scrptr, mem, width);
data/lierolibre-0.5/src/gfx/font.hpp:38:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char data[8*7];
data/lierolibre-0.5/src/gfx/palette.cpp:109:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char rgb[3];
data/lierolibre-0.5/src/gvl/containers/bucket.hpp:107:8:  [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(ret->data, b, s);
data/lierolibre-0.5/src/gvl/containers/bucket.hpp:114:8:  [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(n->data, data, size_new);
data/lierolibre-0.5/src/gvl/containers/bucket.hpp:141:8:  [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[size_], p, len);
data/lierolibre-0.5/src/gvl/containers/bucket.hpp:148:8:  [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(new_data->data, data, size_);
data/lierolibre-0.5/src/gvl/containers/buffer.cpp:47:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(base, p, s);
data/lierolibre-0.5/src/gvl/containers/buffer.cpp:89: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.
			std::memcpy(base, old_base, old_size);
data/lierolibre-0.5/src/gvl/containers/buffer.cpp:148:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(insert_uninitialized(s), p, s);
data/lierolibre-0.5/src/gvl/containers/critbit.cpp:109:8:  [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(x->data, u, ulen);
data/lierolibre-0.5/src/gvl/containers/critbit.cpp:159:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(x->data, u, ulen);
data/lierolibre-0.5/src/gvl/containers/linked_vector.hpp:71:8:  [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_, p, s * sizeof(T));
data/lierolibre-0.5/src/gvl/containers/linked_vector.hpp:279:8:  [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(new_data, begin_, new_size * sizeof(T));
data/lierolibre-0.5/src/gvl/containers/pod_vector.hpp:65:8:  [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_, p, s * sizeof(T));
data/lierolibre-0.5/src/gvl/containers/pod_vector.hpp:137:8:  [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(new_data, data_, new_size * sizeof(T));
data/lierolibre-0.5/src/gvl/containers/string.hpp:281:8:  [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(next_(), b, len);
data/lierolibre-0.5/src/gvl/containers/string.hpp:301: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.
			std::memcpy(data_init->data, this->d.inline_data, cur_size);
data/lierolibre-0.5/src/gvl/containers/string.hpp:466: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.
			std::memcpy(this->d.inline_data, b, size_init);
data/lierolibre-0.5/src/gvl/containers/string.hpp:484: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.
			std::memcpy(this->d.inline_data, data_init->data, size_init); // TODO: memcpy isn't very fast for very small strings
data/lierolibre-0.5/src/gvl/containers/string.hpp:500: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.
			std::memcpy(this->d.inline_data, data_init->data, size_init);
data/lierolibre-0.5/src/gvl/gvl_test/io/formatter.cpp:172:8:  [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(buf, hello, 6);
data/lierolibre-0.5/src/gvl/gvl_test/math/deterministic_float.cpp:103:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char scaleup[10], scaledown[10];
data/lierolibre-0.5/src/gvl/gvl_test/math/deterministic_float.cpp:118:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char test[10];
data/lierolibre-0.5/src/gvl/io/encoding.cpp:245:8:  [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(cur_, p, left);
data/lierolibre-0.5/src/gvl/io/encoding.cpp:259:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(cur_, p, len);
data/lierolibre-0.5/src/gvl/io/encoding.hpp:102:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, cur_, piece);
data/lierolibre-0.5/src/gvl/io/encoding.hpp:393: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.
			std::memcpy(cur_, p, len);
data/lierolibre-0.5/src/gvl/io/fstream.hpp:41:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE* f_init = std::fopen(path, mode);
data/lierolibre-0.5/src/gvl/io/fstream.hpp:70:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[4096];
data/lierolibre-0.5/src/gvl/io/fstream.hpp:78:8:  [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(mem->data, buf, read_bytes);
data/lierolibre-0.5/src/gvl/io/stream.cpp:37:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(data_init->data, ptr, len);
data/lierolibre-0.5/src/gvl/math/ieee.cpp:45: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.
extern unsigned char const scaleup[10] = {0,0,0,0,0,0,0,128,255,123};
data/lierolibre-0.5/src/gvl/math/ieee.cpp:48: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.
extern unsigned char const scaledown[10] = {0,0,0,0,0,0,0,128,255,3};
data/lierolibre-0.5/src/gvl/math/ieee.hpp:92: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.
extern unsigned char const scaleup[10];
data/lierolibre-0.5/src/gvl/math/ieee.hpp:93: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.
extern unsigned char const scaledown[10];
data/lierolibre-0.5/src/gvl/meta/meta.hpp:35:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char padding[8];
data/lierolibre-0.5/src/gvl/sockets/sockets.cpp:137:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(s, p, len);
data/lierolibre-0.5/src/gvl/sockets/sockets.cpp:172:8:  [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(n[i], p[i], len);
data/lierolibre-0.5/src/gvl/sockets/sockets.hpp:90: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 _ss_pad1[SS_PAD1SIZE];  // 6 byte pad, this is to make
data/lierolibre-0.5/src/gvl/sockets/sockets.hpp:95: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 _ss_pad2[SS_PAD2SIZE];  // 112 byte pad to achieve desired size;
data/lierolibre-0.5/src/gvl/sockets/socketstream.cpp:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/lierolibre-0.5/src/gvl/support/debug.hpp:60:41:  [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.
#define GVL_STATIC_ASSERT(cond) typedef char static_assert_[(cond) ? 1 : 0]
data/lierolibre-0.5/src/level.cpp:267:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[10];
data/lierolibre-0.5/src/menu/menu.cpp:277: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 temp[256];
data/lierolibre-0.5/src/settings.cpp:111:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char defControls[2][7] =
data/lierolibre-0.5/src/settings.cpp:117:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char defRGB[2][3] =
data/lierolibre-0.5/src/settings.cpp:154:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char defControlsEx[2][8] =
data/lierolibre-0.5/src/settings.cpp:188:14:  [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* opt = fopen(path.c_str(), "wb");
data/lierolibre-0.5/src/settings.cpp:198:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(data_path->file("NAMES.DAT").c_str(), "rb");
data/lierolibre-0.5/src/text.cpp:31: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 ret[6];
data/lierolibre-0.5/src/text.cpp:45: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 ret[9];
data/lierolibre-0.5/src/text.hpp:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/lierolibre-0.5/src/text.hpp:35:7:  [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.
	std::sprintf(buf, "%d", v);
data/lierolibre-0.5/src/weapsel.cpp:129:8:  [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(&gfx.frozenScreen[0], gfx.screen->pixels, gfx.frozenScreen.size());
data/lierolibre-0.5/src/weapsel.cpp:133:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(gfx.screen->pixels, &gfx.frozenScreen[0], gfx.frozenScreen.size());
data/lierolibre-0.5/src/common.cpp:296:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	exepal.read(exe);
data/lierolibre-0.5/src/common.cpp:987:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	largeSprites.read(gfx, 16, 16, 110);
data/lierolibre-0.5/src/common.cpp:990:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	smallSprites.read(gfx, 7, 7, 130);
data/lierolibre-0.5/src/common.cpp:993:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	textSprites.read(gfx, 4, 4, 26);
data/lierolibre-0.5/src/console.cpp:166:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ReadConsoleInput(stdIn, input, 1, &read);
data/lierolibre-0.5/src/constants.cpp:505:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int b = std::fgetc(exe);
data/lierolibre-0.5/src/filesystem.cpp:193: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).
	if (_mktemp_s(tmpFileName, strlen(tmpFileName) + 1) != 0)
data/lierolibre-0.5/src/gfx/palette.cpp:105:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Palette::read(FILE* f)
data/lierolibre-0.5/src/gfx/palette.hpp:48:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(FILE* f);
data/lierolibre-0.5/src/gfx/sprite.cpp:34:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void SpriteSet::read(FILE* f, int width, int height, int count)
data/lierolibre-0.5/src/gfx/sprite.hpp:42:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(FILE* f, int width, int height, int count);
data/lierolibre-0.5/src/gvl/containers/string.hpp:143:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		init_from_(b, std::strlen(b_));
data/lierolibre-0.5/src/gvl/containers/string.hpp:287:52:  [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).
		append(reinterpret_cast<uint8_t const*>(b), std::strlen(b));
data/lierolibre-0.5/src/gvl/gvl_test/containers/string.cpp:105:61:  [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).
		QC_ASSERT("c_str terminates correctly", a->size() == std::strlen(a->c_str()));
data/lierolibre-0.5/src/gvl/gvl_test/test.cpp:54:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	std::getchar();
data/lierolibre-0.5/src/gvl/io/bitstream_templ.hpp:251:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		v = buf >> read;
data/lierolibre-0.5/src/gvl/io/bitstream_templ.hpp:256:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		v = gvl::shr_1_32(buf, read);
data/lierolibre-0.5/src/gvl/io/bitstream_templ.hpp:259:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		uint32_t written = in_buf_bits - read; // Bits written to v
data/lierolibre-0.5/src/gvl/io/brigade2.h:51:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gvl_bucket*      (*read)   (void*, size_t hint_amount);
data/lierolibre-0.5/src/gvl/io/brigade2.h:358:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read());
data/lierolibre-0.5/src/gvl/io/brigade2.h:380:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.h:399:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.h:414:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.h:426:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return get_source()->read(amount);
data/lierolibre-0.5/src/gvl/io/brigade2.h:576:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_result read(size_type amount = 0, bucket* dest = 0)
data/lierolibre-0.5/src/gvl/io/brigade2.h:583:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_result r(i->read(amount, 0));
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:111:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual read_result read(size_type amount = 0, bucket* dest = 0) = 0;
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:293:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_result read(size_type amount = 0, bucket* dest = 0);
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:440:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read());
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:462:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:481:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:496:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bucket::read_result r(get_source()->read(amount));
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:508:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return get_source()->read(amount);
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:658:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_result read(size_type amount = 0, bucket* dest = 0)
data/lierolibre-0.5/src/gvl/io/brigade2.hpp:665:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_result r(i->read(amount, 0));
data/lierolibre-0.5/src/gvl/io/deflate_filter.hpp:102:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						read_result res = source->read(amount);
data/lierolibre-0.5/src/gvl/io/device_buf.cpp:196:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		std::size_t amount_read = read(&in_buf[old_size], add);
data/lierolibre-0.5/src/gvl/io/device_buf.hpp:129:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual std::size_t read(byte* p, std::size_t size) = 0;
data/lierolibre-0.5/src/gvl/io/devnull.hpp:36:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_result read(size_type amount = 0, bucket* dest = 0)
data/lierolibre-0.5/src/gvl/io/encoding.cpp:109:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream::read_result r(source_->read(amount));
data/lierolibre-0.5/src/gvl/io/encoding.cpp:134:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream::read_result r(source_->read(amount));
data/lierolibre-0.5/src/gvl/io/encoding.hpp:288:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return source_->read(amount);
data/lierolibre-0.5/src/gvl/io/encoding.hpp:554:55:  [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).
	self.put(reinterpret_cast<uint8_t const*>(str), std::strlen(str));
data/lierolibre-0.5/src/gvl/io/stream.hpp:206:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_result read(size_type amount = 0)
data/lierolibre-0.5/src/gvl/io/stream.hpp:560:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read_result res = source->read(amount);
data/lierolibre-0.5/src/gvl/io/stream.hpp:571:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_result res = source->read(amount);
data/lierolibre-0.5/src/gvl/serialization/archive.hpp:142:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(context.read(v, id, creator))
data/lierolibre-0.5/src/gvl/serialization/context.hpp:144:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(T*& v, uint32_t id)
data/lierolibre-0.5/src/gvl/serialization/context.hpp:146:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read(v, id, new_creator<T>());
data/lierolibre-0.5/src/gvl/serialization/context.hpp:150:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(T*& v, uint32_t id, Creator creator)
data/lierolibre-0.5/src/gvl/sockets/sockets.cpp:135:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = std::strlen(p) + 1;
data/lierolibre-0.5/src/level.cpp:274:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal.read(f);
data/lierolibre-0.5/src/replay.cpp:375:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void read(gvl::octet_stream_reader& reader, GameSerializationContext& context, T& x)
data/lierolibre-0.5/src/replay.cpp:456:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(reader, context, *game);
data/lierolibre-0.5/src/replay.cpp:460:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(reader, context, expectedH);
data/lierolibre-0.5/src/replay.cpp:517:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(reader, context, *game.settings);
data/lierolibre-0.5/src/replay.cpp:526:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read(reader, context, *i->second->settings);

ANALYSIS SUMMARY:

Hits = 216
Lines analyzed = 55733 in approximately 1.33 seconds (41921 lines/second)
Physical Source Lines of Code (SLOC) = 36685
Hits@level = [0]  22 [1]  57 [2] 144 [3]   5 [4]  10 [5]   0
Hits@level+ = [0+] 238 [1+] 216 [2+] 159 [3+]  15 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 6.48767 [1+] 5.88797 [2+] 4.3342 [3+] 0.408886 [4+] 0.272591 [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.