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/performous-1.1+git20181118/game/dancegraph.cc
Examining data/performous-1.1+git20181118/game/webcam.cc
Examining data/performous-1.1+git20181118/game/songparser-mid.cc
Examining data/performous-1.1+git20181118/game/log.cc
Examining data/performous-1.1+git20181118/game/fs.cc
Examining data/performous-1.1+git20181118/game/texture.cc
Examining data/performous-1.1+git20181118/game/progressbar.cc
Examining data/performous-1.1+git20181118/game/controllers-joystick.cc
Examining data/performous-1.1+git20181118/game/notegraph.cc
Examining data/performous-1.1+git20181118/game/execname.cc
Examining data/performous-1.1+git20181118/game/theme.cc
Examining data/performous-1.1+git20181118/game/screen_players.cc
Examining data/performous-1.1+git20181118/game/engine.cc
Examining data/performous-1.1+git20181118/game/pitch.cc
Examining data/performous-1.1+git20181118/game/controllers.cc
Examining data/performous-1.1+git20181118/game/ffmpeg.cc
Examining data/performous-1.1+git20181118/game/screen_songs.cc
Examining data/performous-1.1+git20181118/game/video.cc
Examining data/performous-1.1+git20181118/game/configuration.cc
Examining data/performous-1.1+git20181118/game/player.cc
Examining data/performous-1.1+git20181118/game/screen_sing.cc
Examining data/performous-1.1+git20181118/game/cache.cc
Examining data/performous-1.1+git20181118/game/hiscore.cc
Examining data/performous-1.1+git20181118/game/screen_playlist.cc
Examining data/performous-1.1+git20181118/game/song.cc
Examining data/performous-1.1+git20181118/game/backgrounds.cc
Examining data/performous-1.1+git20181118/game/glutil.cc
Examining data/performous-1.1+git20181118/game/midifile.cc
Examining data/performous-1.1+git20181118/game/dialog.cc
Examining data/performous-1.1+git20181118/game/musicalscale.cc
Examining data/performous-1.1+git20181118/game/unicode.cc
Examining data/performous-1.1+git20181118/game/guitargraph.cc
Examining data/performous-1.1+git20181118/game/songparser-ini.cc
Examining data/performous-1.1+git20181118/game/songparser-txt.cc
Examining data/performous-1.1+git20181118/game/menu.cc
Examining data/performous-1.1+git20181118/game/svg.cc
Examining data/performous-1.1+git20181118/game/platform.cc
Examining data/performous-1.1+git20181118/game/database.cc
Examining data/performous-1.1+git20181118/game/screen_paths.cc
Examining data/performous-1.1+git20181118/game/instrumentgraph.cc
Examining data/performous-1.1+git20181118/game/songparser.cc
Examining data/performous-1.1+git20181118/game/video_driver.cc
Examining data/performous-1.1+git20181118/game/playlist.cc
Examining data/performous-1.1+git20181118/game/opengl_text.cc
Examining data/performous-1.1+git20181118/game/controllers-midi.cc
Examining data/performous-1.1+git20181118/game/screen_intro.cc
Examining data/performous-1.1+git20181118/game/image.cc
Examining data/performous-1.1+git20181118/game/screen_practice.cc
Examining data/performous-1.1+git20181118/game/game.cc
Examining data/performous-1.1+git20181118/game/controllers-keyboard.cc
Examining data/performous-1.1+git20181118/game/screen_audiodevices.cc
Examining data/performous-1.1+git20181118/game/requesthandler.cc
Examining data/performous-1.1+git20181118/game/songs.cc
Examining data/performous-1.1+git20181118/game/players.cc
Examining data/performous-1.1+git20181118/game/glshader.cc
Examining data/performous-1.1+git20181118/game/songparser-xml.cc
Examining data/performous-1.1+git20181118/game/main.cc
Examining data/performous-1.1+git20181118/game/songparser-sm.cc
Examining data/performous-1.1+git20181118/game/songitems.cc
Examining data/performous-1.1+git20181118/game/util.cc
Examining data/performous-1.1+git20181118/game/webserver.cc
Examining data/performous-1.1+git20181118/game/notes.cc
Examining data/performous-1.1+git20181118/game/color.cc
Examining data/performous-1.1+git20181118/game/audio.cc
Examining data/performous-1.1+git20181118/game/layout_singer.cc
Examining data/performous-1.1+git20181118/game/libda/portaudio.hpp
Examining data/performous-1.1+git20181118/game/libda/fft.hpp
Examining data/performous-1.1+git20181118/game/libda/mixer.hpp
Examining data/performous-1.1+git20181118/game/libda/sample.hpp
Examining data/performous-1.1+git20181118/game/3dobject.cc
Examining data/performous-1.1+git20181118/common/image.cc
Examining data/performous-1.1+git20181118/boost_predef/detail/os_detected.h
Examining data/performous-1.1+git20181118/boost_predef/detail/test.h
Examining data/performous-1.1+git20181118/boost_predef/os/qnxnto.h
Examining data/performous-1.1+git20181118/boost_predef/os/irix.h
Examining data/performous-1.1+git20181118/boost_predef/os/haiku.h
Examining data/performous-1.1+git20181118/boost_predef/os/solaris.h
Examining data/performous-1.1+git20181118/boost_predef/os/android.h
Examining data/performous-1.1+git20181118/boost_predef/os/os400.h
Examining data/performous-1.1+git20181118/boost_predef/os/macos.h
Examining data/performous-1.1+git20181118/boost_predef/os/cygwin.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd.h
Examining data/performous-1.1+git20181118/boost_predef/os/aix.h
Examining data/performous-1.1+git20181118/boost_predef/os/ios.h
Examining data/performous-1.1+git20181118/boost_predef/os/windows.h
Examining data/performous-1.1+git20181118/boost_predef/os/linux.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd/free.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd/net.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd/bsdi.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd/open.h
Examining data/performous-1.1+git20181118/boost_predef/os/bsd/dragonfly.h
Examining data/performous-1.1+git20181118/boost_predef/os/hpux.h
Examining data/performous-1.1+git20181118/boost_predef/os/vms.h
Examining data/performous-1.1+git20181118/boost_predef/os/unix.h
Examining data/performous-1.1+git20181118/boost_predef/os/amigaos.h
Examining data/performous-1.1+git20181118/boost_predef/os/beos.h
Examining data/performous-1.1+git20181118/boost_predef/make.h
Examining data/performous-1.1+git20181118/boost_predef/os.h
Examining data/performous-1.1+git20181118/boost_predef/version_number.h
Examining data/performous-1.1+git20181118/tools/pak.cc
Examining data/performous-1.1+git20181118/tools/adpcm_decode.cc
Examining data/performous-1.1+git20181118/tools/ipu_conv.cc
Examining data/performous-1.1+git20181118/tools/gh_xen_decrypt.cc
Examining data/performous-1.1+git20181118/tools/archive_extract.cc
Examining data/performous-1.1+git20181118/tools/adpcm.h
Examining data/performous-1.1+git20181118/tools/itg_pck.cc
Examining data/performous-1.1+git20181118/tools/adpcm_play.cc
Examining data/performous-1.1+git20181118/tools/pak_extract.cc
Examining data/performous-1.1+git20181118/tools/pak.h
Examining data/performous-1.1+git20181118/tools/bitfiles.h
Examining data/performous-1.1+git20181118/tools/ipuconvmain.cc
Examining data/performous-1.1+git20181118/tools/cover_conv.cc
Examining data/performous-1.1+git20181118/tools/gh_fsb/mywav.h
Examining data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c
Examining data/performous-1.1+git20181118/tools/gh_fsb/show_dump.h
Examining data/performous-1.1+git20181118/tools/gh_fsb/fsb.h
Examining data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h
Examining data/performous-1.1+git20181118/tools/ss_extract.cc
Examining data/performous-1.1+git20181118/tools/ss_cover.cc
Examining data/performous-1.1+git20181118/tools/ss_chc_decode.cc
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_hint_code.h
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_hint_code.cc
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_generated_tables.h
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.h
Examining data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_generated_tables2.h
Examining data/performous-1.1+git20181118/ced/util/languages/languages.cc
Examining data/performous-1.1+git20181118/ced/util/languages/languages.pb.h
Examining data/performous-1.1+git20181118/ced/util/languages/languages.h
Examining data/performous-1.1+git20181118/ced/util/port.h
Examining data/performous-1.1+git20181118/ced/util/basictypes.h
Examining data/performous-1.1+git20181118/ced/util/varsetter.h
Examining data/performous-1.1+git20181118/ced/util/case_insensitive_hash.h
Examining data/performous-1.1+git20181118/ced/util/string_util.h
Examining data/performous-1.1+git20181118/ced/util/logging.h
Examining data/performous-1.1+git20181118/ced/util/encodings/encodings.h
Examining data/performous-1.1+git20181118/ced/util/encodings/encodings.cc
Examining data/performous-1.1+git20181118/ced/util/encodings/encodings.pb.h
Examining data/performous-1.1+git20181118/ced/util/commandlineflags.h

FINAL RESULTS:

data/performous-1.1+git20181118/game/configuration.cc:276:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void writeConfig(bool system) {
data/performous-1.1+git20181118/game/configuration.cc:283:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (item.isDefault(system) && name != "audio/backend" && name != "graphic/stereo3d") continue; // No need to save settings with default values
data/performous-1.1+git20181118/game/configuration.cc:320:25:  [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.
	fs::path const& conf = system ? systemConfFile : userConfFile;
data/performous-1.1+git20181118/game/configuration.cc:335:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (!system) return;
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:389:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(name, NULLNAME, i);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:406:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(name, NULLNAME, i);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:544:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(name, NULLNAME, i);                         \
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1437:16:  [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).
    if(wavext) strcpy(wavext + 1, ext);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1472:33:  [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).
        if(strlen(wavext) <= 3) strcpy(oldext, wavext - 1);
data/performous-1.1+git20181118/tools/ss_extract.cc:183:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					if (std::system(cmd.c_str()) == 0) { // FIXME: std::system return value is not portable
data/performous-1.1+git20181118/tools/ss_extract.cc:192:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					if (std::system(cmd.c_str()) == 0) { // FIXME: std::system return value is not portable
data/performous-1.1+git20181118/tools/ss_extract.cc:219:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					if (std::system(cmd.c_str()) == 0) { // FIXME: std::system return value is not portable
data/performous-1.1+git20181118/game/main.cc:307:7:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	std::srand(std::time(nullptr));
data/performous-1.1+git20181118/game/screen_paths.cc:14: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.
	fs::path homedir(getenv("HOME"));
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:432: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 interesting_pairs[NUM_PAIR_SETS][kMaxPairs * 2];   // Two bytes per pair
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:445:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&destatep->debug_data[next].detail_enc_prob,
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:458:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&destatep->debug_data[next].detail_enc_prob,
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:470:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&destatep->debug_data[next].detail_enc_prob,
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:482:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&destatep->debug_data[next].detail_enc_prob,
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:773: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.
static const char kTestPrintableAsciiTildePlus[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:789: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.
static const char kTestPrintableAscii[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:802: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.
static const char kIsPrintableAscii[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:815: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.
static const signed char kBase64Value[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:855: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.
static const char kMiniUTF8State[8][16] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:868: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.
static const char kMiniUTF8Count[8][16] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1068: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.
static const char kMiniUTF8UTF8State[8][16] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1084: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.
static const char kMiniUTF8UTF8Count[8][16] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1100: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.
static const char kMiniUTF8UTF8Odd[8][16] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1992: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(tld_hint, tld_start + 1, tld_len);
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:2019: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 tld_hint[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:2193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(destatep->hint_prob, destatep->enc_prob, sizeof(destatep->enc_prob));
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:2413: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 buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3045: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.
          char buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3057: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.
          char buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3099: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.
          char buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3113: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.
          char buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3399: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.
static const char kMapToFiveBits[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3700:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tri_string[4];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3800: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 buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:3991:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[16];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:4007: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 buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:4181: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 buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:4280:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:4740:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:4952:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:5042: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 buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:5061: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 buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:5403:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:5426:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[32];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_generated_tables.h:168: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 key_prob[20];
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_hint_code.cc:26: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.
static const char kCharsetToLowerTbl[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_hint_code.cc:49: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.
static const char kIsAlpha[256] = {
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det_hint_code.cc:61: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.
static const char kIsDigit[256] = {
data/performous-1.1+git20181118/game/dancegraph.cc:277:74:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (ev.nav == input::NAV_CANCEL || ev.nav == input::NAV_START) m_menu.open();
data/performous-1.1+git20181118/game/ffmpeg.cc:89:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void FFmpeg::open() {
data/performous-1.1+git20181118/game/ffmpeg.cc:145: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).
	try { open(); } catch (std::exception const& e) { std::clog << "ffmpeg/error: Failed to open " << m_filename << ": " << e.what() << std::endl; return; }
data/performous-1.1+git20181118/game/ffmpeg.cc:201: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 message[AV_ERROR_MAX_STRING_SIZE];
data/performous-1.1+git20181118/game/glshader.cc:33: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 infoLog[maxLength];
data/performous-1.1+git20181118/game/guitargraph.cc:354:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			m_menu.open();
data/performous-1.1+git20181118/game/guitargraph.cc:359:52:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (ev.button == input::GENERIC_START) { m_menu.open(); continue; }
data/performous-1.1+git20181118/game/instrumentgraph.cc:75:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (forcestate == 1) { m_menu.open(); return; }
data/performous-1.1+git20181118/game/log.cc:169: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(name);
data/performous-1.1+git20181118/game/log.cc:172: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).
		sb.open(vsm);
data/performous-1.1+git20181118/game/screen_playlist.cc:40:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	songlist_menu.open();
data/performous-1.1+git20181118/game/screen_playlist.cc:80: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).
			overlay_menu.open();
data/performous-1.1+git20181118/game/screen_playlist.cc:337: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).
			overlay_menu.open();
data/performous-1.1+git20181118/game/screen_playlist.cc:346:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		overlay_menu.open();
data/performous-1.1+git20181118/game/screen_sing.cc:109: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).
		m_menu.open();
data/performous-1.1+git20181118/game/screen_sing.cc:327: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).
		m_menu.open();
data/performous-1.1+git20181118/game/screen_songs.cc:127:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				m_menu.open();
data/performous-1.1+git20181118/game/webserver.cc:30: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).
		m_server->open().wait();
data/performous-1.1+git20181118/tools/adpcm_decode.cc:53:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (out != "-") outf.open(out.c_str(), std::ios::binary);
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:26: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        id[4];      /* 'FSB1' */
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        id[4];      /* 'FSB2' */
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:46: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        id[4];      /* 'FSB3' */
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:55: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        id[4];      /* 'FSB4' */
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:61: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        zero[8];    /* ??? */
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:69: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        name[32];
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:89: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        name[FSOUND_FSB_NAMELEN];
data/performous-1.1+git20181118/tools/gh_fsb/fsb.h:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        name[FSOUND_FSB_NAMELEN];
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:55:21:  [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.
#define MODEZ(x)    sprintf(name, "%.*s", (int)sizeof(x.name), x.name); \
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:248: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).
        fdreb = fopen(rebfile, "rb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:257:21:  [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).
            fdreb = fopen(rebfile, "wb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:263:18:  [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).
        fdlist = fopen(listfile, "wb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:269: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).
        fd = fopen(fname, "rb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:280: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).
        fd = fopen(fname, "rb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:288: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).
        fd = fopen(fname, "wb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:376:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(name, "%.*s", (int)sizeof(fs1.name), fs1.name);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:548:29:  [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(name, y->name, sizeof(y->name));             \
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1334: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.
    static char m[300];
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1337:37:  [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.
    if(mode & FSOUND_LOOP_OFF)      strcat(m, "noloop,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1338:37:  [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.
    if(mode & FSOUND_LOOP_NORMAL)   strcat(m, "loop,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1339:37:  [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.
    if(mode & FSOUND_LOOP_BIDI)     strcat(m, "biloop,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1340:37:  [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.
    if(mode & FSOUND_8BITS)         strcat(m, "8,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1341:37:  [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.
    if(mode & FSOUND_16BITS)        strcat(m, "16,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1342:37:  [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.
    if(mode & FSOUND_MONO)          strcat(m, "mono,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1343:37:  [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.
    if(mode & FSOUND_STEREO)        strcat(m, "stereo,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1344:37:  [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.
    if(mode & FSOUND_UNSIGNED)      strcat(m, "unsign,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1345:37:  [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.
    if(mode & FSOUND_SIGNED)        strcat(m, "sign,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1346:37:  [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.
    if(mode & FSOUND_DELTA)         strcat(m, "delta,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1347:37:  [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.
    if(mode & FSOUND_IT214)         strcat(m, "IT_2.14,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1348:37:  [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.
    if(mode & FSOUND_IT215)         strcat(m, "IT_2.15,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1349:37:  [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.
    if(mode & FSOUND_HW3D)          strcat(m, "hw3d,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1350:37:  [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.
    if(mode & FSOUND_2D)            strcat(m, "2d,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1351:37:  [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.
    if(mode & FSOUND_STREAMABLE)    strcat(m, "stream,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1352:37:  [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.
    if(mode & FSOUND_LOADMEMORY)    strcat(m, "memory,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1353:37:  [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.
    if(mode & FSOUND_LOADRAW)       strcat(m, "raw,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1354:37:  [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.
    if(mode & FSOUND_MPEGACCURATE)  strcat(m, "acc_mpeg,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1355:37:  [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.
    if(mode & FSOUND_FORCEMONO)     strcat(m, "force_mono,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1356:37:  [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.
    if(mode & FSOUND_HW2D)          strcat(m, "hw2d,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1357:37:  [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.
    if(mode & FSOUND_ENABLEFX)      strcat(m, "effects,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1358:37:  [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.
    if(mode & FSOUND_MPEGHALFRATE)  strcat(m, "half_mpeg,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1359:37:  [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.
    if(mode & FSOUND_IMAADPCM)      strcat(m, "ima_adpcm,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1360:37:  [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.
    if(mode & FSOUND_VAG)           strcat(m, "vag,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1362:37:  [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.
    if(mode & FSOUND_XMA)           strcat(m, "xma,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1363:37:  [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.
    if(mode & FSOUND_GCADPCM)       strcat(m, "GC_adpcm,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1364:37:  [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.
    if(mode & FSOUND_MULTICHANNEL)  strcat(m, "multichan,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1365:37:  [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.
    if(mode & FSOUND_USECORE0)      strcat(m, "00-23,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1366:37:  [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.
    if(mode & FSOUND_USECORE1)      strcat(m, "24-47,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1367:37:  [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.
    if(mode & FSOUND_LOADMEMORYIOP) strcat(m, "memory,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1368:37:  [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.
    if(mode & FSOUND_IGNORETAGS)    strcat(m, "notags,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1369:37:  [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.
    if(mode & FSOUND_STREAM_NET)    strcat(m, "netstream,");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1411:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if(!strncmp(p, "..", 2)) memcpy(p, "__", 2);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1484:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
         if(ext_wav) strcpy(oldext, ".wav");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1485:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(ext_wma) strcpy(oldext, ".wma");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1486:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(ext_xma) strcpy(oldext, ".xma");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1487:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(ext_vag) strcpy(oldext, ".vag");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1488:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(ext_mp3) strcpy(oldext, ".mp3");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1489:22:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(ext_ogg) strcpy(oldext, ".ogg");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1490:39:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if(!oldext[0] || !wavext[0]) strcpy(oldext, ".wav");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1504:13:  [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.
    if(add) sprintf(end, "_%u", add);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1514:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(oldext_buff, "%.*s", (u32)sizeof(oldext_buff), oldext);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1525:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(end, "_%u", i);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1542: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).
    fdi = fopen(fname, "rb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1579: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).
    fdo = fopen(fname, "wb");
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1678:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fdo  = tmpfile();
data/performous-1.1+git20181118/tools/gh_fsb/mywav.h:221:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "RIFF", 4);
data/performous-1.1+git20181118/tools/gh_fsb/mywav.h:233:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "fmt ", 4);
data/performous-1.1+git20181118/tools/gh_fsb/mywav.h:239:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "data", 4);
data/performous-1.1+git20181118/tools/gh_fsb/show_dump.h:37: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.
    static unsigned char    buff[67];   /* HEX  CHAR\n */
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:195:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "RIFF", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "fmt ", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:211:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "seek", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:217:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "data", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:259:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "RIFF", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:269:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "fmt ", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:275:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "seek", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:281:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "data", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:321:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "RIFF", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:331:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "XMA2", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:337:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "seek", 4);
data/performous-1.1+git20181118/tools/gh_fsb/xma_header.h:343:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk.id, "data", 4);
data/performous-1.1+git20181118/tools/gh_xen_decrypt.cc:27: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 cpKey[KEY_LEN] = "5atu6w4zaw";
data/performous-1.1+git20181118/tools/pak.cc:45: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 magic[8];
data/performous-1.1+git20181118/tools/pak.cc:71:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char magic[4];
data/performous-1.1+git20181118/tools/pak.cc: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 tmp[4];
data/performous-1.1+git20181118/tools/pak.cc:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char tmp[256];
data/performous-1.1+git20181118/tools/pak.cc:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char toto[2];
data/performous-1.1+git20181118/tools/ss_chc_decode.cc:16:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	chc_file.open(argv[1], std::ios_base::binary );
data/performous-1.1+git20181118/tools/ss_cover.cc:51:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst,src,0x100);
data/performous-1.1+git20181118/tools/ss_cover.cc:61:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 uPen = ((unsigned char *) src_image)[block_location + column_location + byte_num];
data/performous-1.1+git20181118/tools/ss_cover.cc:66: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 *) dst_image)[y*width+x] = o|l|m;
data/performous-1.1+git20181118/tools/ss_cover.cc:70:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst_palette_header,src_palette_header,0x100);
data/performous-1.1+git20181118/tools/ss_cover.cc:72:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst_palette,src_palette,0x400);
data/performous-1.1+git20181118/tools/ss_extract.cc:97: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).
	txtfile.open(file_path.string().c_str());
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1950:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy(tld_hint, "~", tld_hint_len);
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:1955:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int url_len = (url_hint != NULL) ? strlen(url_hint) : 0;
data/performous-1.1+git20181118/ced/compact_enc_det/compact_enc_det.cc:2000:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tld_hint, url_hint, tld_hint_len);
data/performous-1.1+git20181118/common/image.cc:20:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		static_cast<std::istream*>(png_get_io_ptr(pngPtr))->read((char*)data, length);
data/performous-1.1+git20181118/common/image.cc:102:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		f.read(reinterpret_cast<char*>(ret.data()), ret.size());
data/performous-1.1+git20181118/game/glshader.cc:20:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!f.read(&data[0], size)) throw std::runtime_error(std::string("Unexpected I/O error in ") + filepath.string());
data/performous-1.1+git20181118/game/glshader.cc:40:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (std::equal(infoLog, infoLog + infoLogLength, "Vertex shader(s) linked, fragment shader(s) linked, geometry shader(s) linked.")) return;
data/performous-1.1+git20181118/game/image.cc:20:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		static_cast<std::istream*>(png_get_io_ptr(pngPtr))->read((char*)data, length);
data/performous-1.1+git20181118/game/image.cc:102:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		f.read(reinterpret_cast<char*>(ret.data()), ret.size());
data/performous-1.1+git20181118/game/log.cc:65:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			for (char ch; read(fdpipe, &ch, 1) == 1;) {
data/performous-1.1+git20181118/game/midifile.cc:53:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		template <typename T> T read(T& value) {
data/performous-1.1+git20181118/game/midifile.cc:136:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (riff.read(format) > 1) throw std::runtime_error("Unsupported MIDI format (only 0 and 1 are supported)");
data/performous-1.1+git20181118/game/midifile.cc:139:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	riff.read(division);
data/performous-1.1+git20181118/game/pitch.cc:59:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_passthrough.read(pcm, pcm + in + 4);
data/performous-1.1+git20181118/game/pitch.cc:111:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!m_buf.read(pcm, pcm + FFT_N)) return false;
data/performous-1.1+git20181118/game/songparser-ini.cc:16:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return std::equal(header.begin(), header.end(), data.begin());
data/performous-1.1+git20181118/game/songparser-txt.cc:87:74:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		auto finalNote = std::unique(finalDuet.begin(), finalDuet.end(), Note::equal);
data/performous-1.1+git20181118/game/songparser-xml.cc:16:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return std::equal(header.begin(), header.end(), data.begin());
data/performous-1.1+git20181118/game/unicode.cc:21:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        text, strlen(text),
data/performous-1.1+git20181118/tools/adpcm_decode.cc:59:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (infile.read(&data[0], adpcm.chunkBytes()) && infile.seekg(adpcm.chunkBytes(), std::ios::cur)) {
data/performous-1.1+git20181118/tools/archive_extract.cc:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		arch.read(&buf[0], buf.size());
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:217: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).
        if(((argv[i][0] != '-') && (argv[i][0] != '/')) || (strlen(argv[i]) != 2)) {
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:692:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t1 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:693:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t2 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:704:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t1 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:705:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t2 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:718:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t1 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:719:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t2 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:720:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t3 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:721:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t4 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:734:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t1 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:735:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t2 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:736:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t3 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:737:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    t4 = fgetc(fd);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1371:16:  [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(m[0]) m[strlen(m) - 1] = 0;
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1424:31:  [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(!wavext || (wavext && (strlen(wavext + 1) > 3))) {
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1425:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove(fname + strlen(fname), ext, strlen(ext) + 1);   // don't touch memmove!
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1425:45:  [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).
        memmove(fname + strlen(fname), ext, strlen(ext) + 1);   // don't touch memmove!
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1426: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).
    } else if(wavext && (strlen(wavext + 1) < 3)) {
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1427: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).
        memmove(wavext, ext, strlen(ext) + 1);                  // don't touch memmove!
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1443:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int     equal;
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1445:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(str1) > strlen(str2)) return(0);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1445:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(str1) > strlen(str2)) return(0);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1451:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return(equal);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1472:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(wavext) <= 3) strcpy(oldext, wavext - 1);
data/performous-1.1+git20181118/tools/gh_fsb/fsbext.c:1502:19:  [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).
    end = fname + strlen(fname);
data/performous-1.1+git20181118/tools/gh_xen_decrypt.cc:46:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inputFile.read(pBuffer, fileSize);
data/performous-1.1+git20181118/tools/ipuconvmain.cc:18:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	infile.read(&indata[0], indata.size());
data/performous-1.1+git20181118/tools/itg_pck.cc:10:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!std::equal(text.begin(), text.end(), it)) throw std::runtime_error("PCKF header missing");
data/performous-1.1+git20181118/tools/itg_pck.cc:13:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
template <typename It> std::string read(It it, unsigned chars) {
data/performous-1.1+git20181118/tools/itg_pck.cc:45:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		archive.read(&buffer[0], buffer.size());
data/performous-1.1+git20181118/tools/itg_pck.cc:90:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	std::string title = read(it, 0x73);
data/performous-1.1+git20181118/tools/itg_pck.cc:109:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.name = fs::path(title) / read(it, namelen);
data/performous-1.1+git20181118/tools/pak.cc:46:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		f.read(magic, sizeof(magic));
data/performous-1.1+git20181118/tools/pak.cc:72:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					f.read(magic, sizeof(magic));
data/performous-1.1+git20181118/tools/pak.cc:91:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				f.read(tmp,4);
data/performous-1.1+git20181118/tools/pak.cc:107:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				f.read(tmp, string_length - 1);
data/performous-1.1+git20181118/tools/pak.h:25:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		f.read(&buf[0], s);
data/performous-1.1+git20181118/tools/ss_chc_decode.cc:26:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	chc_file.read(&buffer[0], fileSize);

ANALYSIS SUMMARY:

Hits = 224
Lines analyzed = 37775 in approximately 1.89 seconds (20012 lines/second)
Physical Source Lines of Code (SLOC) = 28731
Hits@level = [0] 146 [1]  59 [2] 151 [3]   2 [4]  12 [5]   0
Hits@level+ = [0+] 370 [1+] 224 [2+] 165 [3+]  14 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 12.8781 [1+] 7.79646 [2+] 5.74293 [3+] 0.487279 [4+] 0.417667 [5+]   0
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.