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/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_source.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_common.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blip/Blip_Buffer.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_config.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/file.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/git.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/input.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/vsu.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/vip.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/vsu.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/timer.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/vb.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/input.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/vip.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/timer.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/timesoftfloat.c
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/softfloat.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/softfloat.c
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/milieu.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_do_am.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpu.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpu.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_opt.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher-driver.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/settings-driver.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/settings.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen-endian.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen-endian.c
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen-types.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/video/surface.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/video/surface.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/msvc_compat.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/sound/Blip_Buffer.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/settings.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen-driver.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/masmem.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/file.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/driver.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/general.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/general.c
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/settings-common.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/math_ops.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/msvc.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/getopt.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/msvc/stdint.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/apple_compat.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/posix_string.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/strl.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/intrinsics.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/strcasestr.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/ifaddrs.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/fnmatch.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_miscellaneous.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/libco.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/memmap.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_common.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/boolean.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_common_api.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_inline.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_stat.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/msvc/msvc-2003-xbox1/stdint.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/boolean.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro.cpp
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/libretro.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/scrc32.h
Examining data/libretro-beetle-vb-0.9.36.1+git20160623/scrc32.c

FINAL RESULTS:

data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/msvc.h:36:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   #define snprintf c99_snprintf
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/msvc.h:37:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   #define vsnprintf c99_vsnprintf
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/fpu-new/timesoftfloat.c:51:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf( stderr, message, varArgs );
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:269:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(&buf[strlen(buf)],"%s    [%s]", optable[opcode].opname, pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:271:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(&buf[strlen(buf)],"%s    %s, %s", optable[opcode].opname, pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:279:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(&buf[strlen(buf)],"%s    %s, %s", optable[opcode].opname, pretty_preg_names[arg1], pretty_sreg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:281:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(&buf[strlen(buf)],"%s     %s, %s", optable[opcode].opname, pretty_sreg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:283:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(&buf[strlen(buf)],"%s    %d, %s", optable[opcode].opname, sign_5(arg2), pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:285:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf(&buf[strlen(buf)],"%s    %d, %s", optable[opcode].opname, arg2, pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:292:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s", optable[opcode].opname);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:294:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    %08x", optable[opcode].opname, tPC + sign_9(arg1));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:300:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(&buf[strlen(buf)],"%s    %08x", optable[opcode].opname, tPC + sign_26(arg1));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:313:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(&buf[strlen(buf)],"%s    0x%X, %s, %s", optable[opcode].opname, arg3, pretty_preg_names[arg2], pretty_preg_names[arg1] );
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:322:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    [%s], %s", optable[opcode].opname, pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:324:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    0x%04x[%s], %s", optable[opcode].opname, sign_16(arg3), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:326:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    %d[%s], %s", optable[opcode].opname, sign_16(arg3), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:336:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    %s, [%s]", optable[opcode].opname, pretty_preg_names[arg1], pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:338:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    %s, 0x%04x[%s]", optable[opcode].opname, pretty_preg_names[arg1], sign_16(arg3), pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:340:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(&buf[strlen(buf)],"%s    %s, %d[%s]", optable[opcode].opname, pretty_preg_names[arg1], sign_16(arg3), pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:353:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(&buf[strlen(buf)],"%s", optable[opcode].opname);   
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:363:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(&buf[strlen(buf)], "%s", bssuboptable[arg2].opname);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:375:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(&buf[strlen(buf)],"%s  %s, %s", (vbmode ? fpsuboptable_vb[arg3].opname : fpsuboptable[arg3].opname), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:50:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
 vsnprintf(msg, 4096, format,ap);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:211:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   vsnprintf(temp, 4096, format_temp, ap);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:228:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
 vsnprintf(temp, 4096, format, ap);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:244:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
 vsnprintf(temp, 4096, format, ap);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:622:4:  [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(next->name,name);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/msvc_compat.h:35:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/msvc_compat.h:35:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/getopt.h:39:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#define getopt_long(argc, argv, optstring, longopts, longindex) __getopt_long_retro(argc, argv, optstring, longopts, longindex)
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/compat/getopt.h:56:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int argc, char *argv[],
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro.cpp:488: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 game_title[256];
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro.cpp:1951: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(GPROM + i, GET_FDATA_PTR(fp), GET_FSIZE_PTR(fp));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/file.cpp:77:15:  [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).
   if (!(fp = fopen(path, "rb")))
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/file.cpp:110: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((uint8*)ptr, f_data + location, nmemb);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/file.cpp:167:15:  [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 *fp = fopen(filename, "wb");
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/git.h:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *RotateName[3];	// 90, 180, 270
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:210: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 *pretty_preg_names[32] =
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:218: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 *pretty_sreg_names[32] =
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:253: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(&buf[strlen(buf)], "0x%04x", hw0);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:344: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(&buf[strlen(buf)],"0x%2x 0x%2x 0x%2x 0x%2x", lowB, highB, lowB2, highB2);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:348: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(&buf[strlen(buf)],"0x%2x 0x%2x 0x%2x 0x%2x", lowB, highB, lowB2, highB2);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:360:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(&buf[strlen(buf)],"BError");
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:373:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(&buf[strlen(buf)],"(Invalid FPU: 0x%02x)", arg3);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:381: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(&buf[strlen(buf)],"0x%04x", hw0);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:68: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.
	return  ((unsigned char const*) p) [1] * 0x100u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:69: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.
			((unsigned char const*) p) [0];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:72: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.
	return  ((unsigned char const*) p) [0] * 0x100u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:73: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.
			((unsigned char const*) p) [1];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:76: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.
	return  ((unsigned char const*) p) [3] * 0x01000000u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:77: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.
			((unsigned char const*) p) [2] * 0x00010000u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:78: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.
			((unsigned char const*) p) [1] * 0x00000100u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:79: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.
			((unsigned char const*) p) [0];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:82: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.
	return  ((unsigned char const*) p) [0] * 0x01000000u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:83: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.
			((unsigned char const*) p) [1] * 0x00010000u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:84: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.
			((unsigned char const*) p) [2] * 0x00000100u +
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blargg_endian.h:85: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.
			((unsigned char const*) p) [3];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.h:24:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define gzopen(a, b) fopen(a, b)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:266: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 address[64];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:267: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 operation[64];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:268: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 value[64];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:446:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 const char lut[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:459: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 str[10];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:510: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 lets[16]={'A','P','Z','L','G','I','T','Y','E','O','X','U','K','S','V','N'};
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:35:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 memcpy(buffer, st->data + st->loc, len);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:52:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 memcpy(st->data + st->loc, buffer, len);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:141: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 nameo[1 + 256];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:413: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.
         char sname[32];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:490:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(header, header_magic, 8);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:391:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return(VB_V810->GetPR(atoi(thestring + 2)));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:407:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int which_one = atoi(thestring + 2);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:412: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.
         char buf[256];
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:438:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      VB_V810->SetPR(atoi(thestring + 2), value);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:452:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      VB_V810->SetSR(atoi(thestring + 2), value);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/vb/debug.cpp:640: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 tmpname[128], tmpinfo[128];
data/libretro-beetle-vb-0.9.36.1+git20160623/libretro-common/include/retro_miscellaneous.h:101:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
   usleep(1000 * msec);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:253: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).
            sprintf(&buf[strlen(buf)], "0x%04x", hw0);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:269: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).
                sprintf(&buf[strlen(buf)],"%s    [%s]", optable[opcode].opname, pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:271: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).
                sprintf(&buf[strlen(buf)],"%s    %s, %s", optable[opcode].opname, pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:279:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sprintf(&buf[strlen(buf)],"%s    %s, %s", optable[opcode].opname, pretty_preg_names[arg1], pretty_sreg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:281:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sprintf(&buf[strlen(buf)],"%s     %s, %s", optable[opcode].opname, pretty_sreg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:283:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sprintf(&buf[strlen(buf)],"%s    %d, %s", optable[opcode].opname, sign_5(arg2), pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:285:46:  [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).
                                sprintf(&buf[strlen(buf)],"%s    %d, %s", optable[opcode].opname, arg2, pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:292:27:  [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).
             sprintf(&buf[strlen(buf)],"%s", optable[opcode].opname);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:294:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    %08x", optable[opcode].opname, tPC + sign_9(arg1));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:300: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).
            sprintf(&buf[strlen(buf)],"%s    %08x", optable[opcode].opname, tPC + sign_26(arg1));
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:313: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).
            sprintf(&buf[strlen(buf)],"%s    0x%X, %s, %s", optable[opcode].opname, arg3, pretty_preg_names[arg2], pretty_preg_names[arg1] );
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:322:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    [%s], %s", optable[opcode].opname, pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:324:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    0x%04x[%s], %s", optable[opcode].opname, sign_16(arg3), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:326:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    %d[%s], %s", optable[opcode].opname, sign_16(arg3), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:336:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    %s, [%s]", optable[opcode].opname, pretty_preg_names[arg1], pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:338:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    %s, 0x%04x[%s]", optable[opcode].opname, pretty_preg_names[arg1], sign_16(arg3), pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:340:27:  [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).
             sprintf(&buf[strlen(buf)],"%s    %s, %d[%s]", optable[opcode].opname, pretty_preg_names[arg1], sign_16(arg3), pretty_preg_names[arg2]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:344: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).
            sprintf(&buf[strlen(buf)],"0x%2x 0x%2x 0x%2x 0x%2x", lowB, highB, lowB2, highB2);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:348: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).
            sprintf(&buf[strlen(buf)],"0x%2x 0x%2x 0x%2x 0x%2x", lowB, highB, lowB2, highB2);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:353: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).
            sprintf(&buf[strlen(buf)],"%s", optable[opcode].opname);   
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:360: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).
                sprintf(&buf[strlen(buf)],"BError");
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:363: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).
		sprintf(&buf[strlen(buf)], "%s", bssuboptable[arg2].opname);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:373: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).
                sprintf(&buf[strlen(buf)],"(Invalid FPU: 0x%02x)", arg3);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:375: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).
                sprintf(&buf[strlen(buf)],"%s  %s, %s", (vbmode ? fpsuboptable_vb[arg3].opname : fpsuboptable[arg3].opname), pretty_preg_names[arg2], pretty_preg_names[arg1]);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/hw_cpu/v810/v810_cpuD.cpp:381: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).
            sprintf(&buf[strlen(buf)],"0x%04x", hw0);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/include/blip/Blip_Buffer.h:307:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	blip_long read() const          { return accum >> (blip_sample_bits - 16); }
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:119:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for(x=0;x<strlen((char *)MDFNGameInfo->name);x++)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:180:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for(newlen=x=0;x<strlen(format);x++)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.cpp:196:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for(newlen=x=0;x<strlen(format);x++)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mednafen.h:27:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define gzgetc(a) fgetc(a)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:274:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
 while(sscanf(string, "%u %c %63s %63s %63s", &bytelen, &endian, address, operation, value) == 5 && passed)
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:471: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).
 len = strlen(str);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:530:4:  [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).
 s=strlen(str);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:589:5:  [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(str)!=8) return(0);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/mempatcher.cpp:619:36:  [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((t=(char *)realloc(next->name,strlen(name+1))))
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/msvc_compat.h:44:9:  [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).
#define strlen _tcslen
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/msvc_compat.h:44:16:  [1] (buffer) _tcslen:
  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).
#define strlen _tcslen
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:212:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy((char *)sname_tmp, sname, 32);
data/libretro-beetle-vb-0.9.36.1+git20160623/mednafen/state.cpp:214:5:  [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(sname) > 32)

ANALYSIS SUMMARY:

Hits = 115
Lines analyzed = 21319 in approximately 0.54 seconds (39460 lines/second)
Physical Source Lines of Code (SLOC) = 14810
Hits@level = [0]  42 [1]  40 [2]  44 [3]   2 [4]  29 [5]   0
Hits@level+ = [0+] 157 [1+] 115 [2+]  75 [3+]  31 [4+]  29 [5+]   0
Hits/KSLOC@level+ = [0+] 10.6009 [1+] 7.76502 [2+] 5.06415 [3+] 2.09318 [4+] 1.95814 [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.