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-pce-fast-0.9.38.7+git20160609/scrc32.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/libco.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/posix_string.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/strl.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/fnmatch.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/ifaddrs.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/strcasestr.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/apple_compat.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc/stdint.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/getopt.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/rthreads/rthreads.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/rthreads/async_job.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/rthreads/rsemaphore.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/string/stdstring.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/memmap.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/boolean.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/retro_common_api.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/streams/file_stream.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/retro_common.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/queues/task_queue.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/retro_inline.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/retro_miscellaneous.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/retro_stat.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/gx_pthread.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/async_job.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/xenon_sdl_threads.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/psp_pthread.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/rsemaphore.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/rthreads.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/streams/file_stream.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/queues/task_queue.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/file/retro_stat.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codec_internal.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/os_types.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ivorbisfile.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/mdct_lookup.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/os.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/window.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/window.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/asm_arm.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/res012.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ogg.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/config_types.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/mdct.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/mdct.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/misc.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/window_lookup.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/floor1.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/sharedbook.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/registry.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/registry.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/backends.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ivorbiscodec.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ivorbisfile_example.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/floor0.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/block.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/block.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/synthesis.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/mapping0.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/vorbisfile.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/bitwise.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/lsp_lookup.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/psg.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/huc.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/vdc.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/vdc.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/input.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/psg.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/input.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/huc6280.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pce.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/huc6280.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/okiadpcm-deltatable.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/FileStream.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/settings.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/settings.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blip/Blip_Buffer.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blargg_common.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blargg_config.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blargg_source.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blargg_endian.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/SimpleFIFO.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/recover-raw.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/galois.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader_opus.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/dvdisaster.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDUtility.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/crc32.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/SimpleFIFO.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/l-ec.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader_opus.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/galois-inlines.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDUtility.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/sound/Blip_Buffer.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/state.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mednafen-driver.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/general.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/settings-common.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/error.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/git.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/FileStream.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/settings-driver.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/error.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mednafen.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/okiadpcm.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/state.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/hw_misc/arcade_card/arcade_card.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/hw_misc/arcade_card/arcade_card.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher-driver.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mednafen-types.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/masmem.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mednafen-endian.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/video.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mednafen-endian.c
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/okiadpcm.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/msvc_compat.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/file.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/file.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/math_ops.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/general.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/driver.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/msvc/msvc-2003-xbox1/stdint.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/scrc32.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/thread/gx_pthread.h
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp
Examining data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.h

FINAL RESULTS:

data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc.h:35: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.
   #ifndef snprintf
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc.h:36:15:  [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_retro__
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc.h:46: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.
   #ifndef vsnprintf
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/include/compat/msvc.h:47:15:  [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_retro__
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/queues/task_queue.c:61: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(buf, sizeof(buf), fmt, ap);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:117: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(outat, inprev);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1141: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-pce-fast-0.9.38.7+git20160609/libretro.cpp:1159: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-pce-fast-0.9.38.7+git20160609/libretro.cpp:1175: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-pce-fast-0.9.38.7+git20160609/libretro.cpp:2022: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(str, 4096, format,ap);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/error.cpp:37: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(error_message, 4096, format, ap);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:624: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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:62:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fulltag, tag);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:81:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fulltag,tag);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/libretro-common/queues/task_queue.c:57: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 buf[1024];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/psp_pthread.h:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_buffer[256];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/psp_pthread.h:68:4:  [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_buffer, "0x%08X", (uint32_t) thread);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/rthreads/psp_pthread.h:83:4:  [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_buffer, "0x%08X", (uint32_t) mutex);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/streams/file_stream.c:201:20:  [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).
      stream->fp = fopen(path, mode_str);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/streams/file_stream.c:208:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      stream->fd = open(path, flags);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/streams/file_stream.c:371:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(s, &stream->mapped[stream->mappos], len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:110:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(outat, inprev, inat-inprev);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:112:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(outat, replacement, replacement_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:650: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(HuCROM, data, (m_len < len) ? m_len : len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:656: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(ROMSpace + 0x00 * 8192, HuCROM, 0x20 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:657: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(ROMSpace + 0x20 * 8192, HuCROM, 0x20 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:658: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(ROMSpace + 0x40 * 8192, HuCROM + 0x20 * 8192, 0x10 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:659: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(ROMSpace + 0x50 * 8192, HuCROM + 0x20 * 8192, 0x10 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:660: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(ROMSpace + 0x60 * 8192, HuCROM + 0x20 * 8192, 0x10 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:661: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(ROMSpace + 0x70 * 8192, HuCROM + 0x20 * 8192, 0x10 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:665: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(ROMSpace + 0x00 * 8192, HuCROM, 0x40 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:666: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(ROMSpace + 0x40 * 8192, HuCROM + 0x20 * 8192, 0x20 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:667: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(ROMSpace + 0x60 * 8192, HuCROM + 0x20 * 8192, 0x20 * 8192);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:671: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(ROMSpace + 0x00 * 8192, HuCROM, (m_len < 1024 * 1024) ? m_len : 1024 * 1024);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:701: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(SaveRAM, BRAM_Init_String, 8);    // So users don't have to manually intialize the file cabinet
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:756: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(ROMSpace, GET_FDATA(fp) + (GET_FSIZE(fp) & 512), ((GET_FSIZE(fp) & ~512) > 262144) ? 262144 : (GET_FSIZE(fp) &~ 512) );
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:797: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(SaveRAM, BRAM_Init_String, 8);	// So users don't have to manually intialize the file cabinet
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:894: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 linebuf[2048];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:895: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(path.c_str(), "rb");
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1386:34:  [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).
      setting_initial_scanline = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1393:31:  [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).
      setting_last_scanline = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1402:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      setting_pce_fast_cddavolume = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1410:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      setting_pce_fast_adpcmvolume = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1418:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      setting_pce_fast_cdpsgvolume = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1426:34:  [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).
      setting_pce_fast_cdspeed = atoi(var.value);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.cpp:60: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(data_buffer, zs.data_buffer, data_buffer_size);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:110: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 img_extsd[4] = { 'i', 'm', 'g', 0 };
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:111: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 sub_extsd[4] = { 's', 'u', 'b', 0 };
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:117: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.
  signed char extupt[3] = { -1, -1, -1 };
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:208: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 tmpbuf[64];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:85: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 *DI_CDRDAO_Strings[7] = 
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:96: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 *DI_CUE_Strings[7] = 
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:420:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&Tracks[active_track], &TmpTrack, sizeof(TmpTrack));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:587:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&Tracks[active_track], &TmpTrack, sizeof(TmpTrack));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:629:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&Tracks[active_track], &TmpTrack, sizeof(TmpTrack));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:637:21:  [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).
     active_track = atoi(args[0].c_str());
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:754: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(&Tracks[active_track], &TmpTrack, sizeof(TmpTrack));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:999: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(dummy_buf + 16, buf + 16, 2048); 
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:405: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(SectorBuffers[SBWritePos].data, tmpbuf, 2352 + 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:544: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(buf, SectorBuffers[i].data, 2352 + 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:604: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(pBuf, &tmpbuf[12 + 4], 2048);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:608: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(pBuf, &tmpbuf[12 + 4 + 8], 2048);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:816: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((uint8*)data + (rp - position), buf + (rp & 2047), std::min<uint64>(2048 - (rp & 2047), count - (rp - position)));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/l-ec.cpp:347: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(lambda, t, (NROOTS+1)*sizeof(t[0]));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/l-ec.cpp:362: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(reg+1, lambda+1, NROOTS*sizeof(reg[0]));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:637: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).
  if ((fd_in = open(infile, O_RDONLY)) < 0) {
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:642:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd_out = open(outfile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) {
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:655:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer2 + 16, buffer1 + 16, 2048);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:663: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(buffer2 + 16, buffer1 + 16, 2324 + 8);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:668: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(buffer2 + 16, buffer1 + 16, 2048 + 8);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/recover-raw.cpp:84:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char byte_state[2352];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/recover-raw.cpp:85:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char p_vector[P_VECTOR_SIZE];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/recover-raw.cpp:86:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char q_vector[Q_VECTOR_SIZE];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/recover-raw.cpp:87:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char p_state[P_VECTOR_SIZE];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/error.h:69: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 local_strerror[256];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/file.cpp:83: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-pce-fast-0.9.38.7+git20160609/mednafen/file.cpp:116: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-pce-fast-0.9.38.7+git20160609/mednafen/git.h:72: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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/mednafen/mednafen.h:25: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:269: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:270: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:271: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:447: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:460: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:511: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-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp:265: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(cd.SubQBuf_Last, SubQBuf, 0xC);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp:270: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(cd.SubQBuf[adr], SubQBuf, 0xC);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp:933:6:  [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(cd.SubPWBuf, tmpbuf + 2352, 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp:1013:6:  [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(cd.SubPWBuf, tmp_read_buf + 2352, 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/pcecd_drive.cpp:1104: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.
       char log_buffer[1024];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/pce_fast/psg.cpp:593: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 tmpstr[5] = "SCHx";
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/mednafen/state.cpp:411: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-pce-fast-0.9.38.7+git20160609/mednafen/state.cpp:488: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-pce-fast-0.9.38.7+git20160609/mednafen/tremor/floor0.c:120:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char MLOOP_1[64]={
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/floor0.c:127:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char MLOOP_2[64]={
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/floor0.c:134:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char MLOOP_3[8]={0,1,2,2,3,3,3,3};
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:316: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(os->body_data+os->body_fill, iov[i].iov_base, iov[i].iov_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:406: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(os->header,"OggS",4);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:667: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 chksum[4];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:670: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(chksum,page+22,4);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:685:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(page+22,chksum,4);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:855: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(os->body_data+os->body_fill,body,bodysize);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1105: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(temp,og->header,og->header_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1109: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(temp,og->body,og->body_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1529:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(next,og.header,byteskipcount-byteskip);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1536:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(next,og.body,byteskipcount-byteskip);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1813: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(ogg_sync_buffer(&oy,og[i].header_len),og[i].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1816: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(ogg_sync_buffer(&oy,og[i].body_len),og[i].body,og[i].body_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1862: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(ogg_sync_buffer(&oy,og[i].header_len),og[i].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1865: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(ogg_sync_buffer(&oy,og[i].body_len),og[i].body,og[i].body_len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1915:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1921:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+3,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1927:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+23,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1934:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+28,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1939:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,1000);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1943:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body+1000,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1957:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1961:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1965:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1971:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+20,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1974:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1989:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1993:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:1997:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2001:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2008:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header+20,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2011:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].body_len),og[2].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2025:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2029:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[1].body_len),og[1].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2033:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2037:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2043:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[2].body_len),og[2].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2047:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[3].header_len),og[3].header,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/framing.c:2051:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ogg_sync_buffer(&oy,og[3].body_len),og[3].body,
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:308:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[6];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:344: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 buffer[6];
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ivorbisfile_example.c:32:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 pcmout[4096]; /* take 4k out of the data segment, not the stack */
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/mdct.c:249:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char bitrev[16]={0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15};
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/ogg.h:69:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char    header[282];      /* working space for header encode */
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/vorbisfile.c:899: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(buffer,initial,ibytes);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/vorbisfile.c:925: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(vf->serialnos+2,serialno_list,serialno_list_size*sizeof(*vf->serialnos));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/vorbisfile.c:1014:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(path,"rb");
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/file/retro_stat.c:87: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).
   size_t len = strlen(tmp);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/libretro-common/streams/file_stream.c:378:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         return read(stream->fd, s, len);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:91:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   pattern_len     = strlen(pattern);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:92:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   replacement_len = strlen(replacement);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:102:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   outlen          = strlen(in) - pattern_len*numhits + replacement_len*numhits;
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:131:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(s);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro-common/string/stdstring.c:150:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(s);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:330:57:  [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(!strncmp("PC-FX:Hu_CD-ROM", (char*)sector_buffer, strlen("PC-FX:Hu_CD-ROM")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:680:42:  [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(!memcmp(HuCROM + 0x1F26, "POPULOUS", strlen("POPULOUS")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:942:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(devicename && strlen(devicename) > 4 && !strcasecmp(devicename + strlen(devicename) - 4, ".m3u"))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:942:71:  [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(devicename && strlen(devicename) > 4 && !strcasecmp(devicename + strlen(devicename) - 4, ".m3u"))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1024: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(name) > 4 && (!strcasecmp(name + strlen(name) - 4, ".cue") || !strcasecmp(name + strlen(name) - 4, ".ccd") || !strcasecmp(name + strlen(name) - 4, ".toc") || !strcasecmp(name + strlen(name) - 4, ".m3u")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1024: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).
	if(strlen(name) > 4 && (!strcasecmp(name + strlen(name) - 4, ".cue") || !strcasecmp(name + strlen(name) - 4, ".ccd") || !strcasecmp(name + strlen(name) - 4, ".toc") || !strcasecmp(name + strlen(name) - 4, ".m3u")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1024:93:  [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(name) > 4 && (!strcasecmp(name + strlen(name) - 4, ".cue") || !strcasecmp(name + strlen(name) - 4, ".ccd") || !strcasecmp(name + strlen(name) - 4, ".toc") || !strcasecmp(name + strlen(name) - 4, ".m3u")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1024:141:  [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(name) > 4 && (!strcasecmp(name + strlen(name) - 4, ".cue") || !strcasecmp(name + strlen(name) - 4, ".ccd") || !strcasecmp(name + strlen(name) - 4, ".toc") || !strcasecmp(name + strlen(name) - 4, ".m3u")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1024:189:  [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(name) > 4 && (!strcasecmp(name + strlen(name) - 4, ".cue") || !strcasecmp(name + strlen(name) - 4, ".ccd") || !strcasecmp(name + strlen(name) - 4, ".toc") || !strcasecmp(name + strlen(name) - 4, ".m3u")))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/libretro.cpp:1077: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-pce-fast-0.9.38.7+git20160609/libretro.cpp:1110: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-pce-fast-0.9.38.7+git20160609/libretro.cpp:1126: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-pce-fast-0.9.38.7+git20160609/mednafen/FileStream.cpp:67:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint64_t FileStream::read(void *data, uint64_t count, bool error_on_eos)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/FileStream.h:36:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      virtual uint64_t read(void *data, uint64_t count, bool error_on_eos = true);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.cpp:47:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   stream->read(data_buffer, data_buffer_size);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.cpp:124:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint64 MemoryStream::read(void *data, uint64 count, bool error_on_eos)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/MemoryStream.h:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 virtual uint64 read(void *data, uint64 count, bool error_on_eos = true);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.cpp:39:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 while(read(&c, sizeof(c), false) > 0)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.h:32:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 virtual uint64 read(void *data, uint64 count, bool error_on_eos = true) = 0;
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.h:53:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(&ret, sizeof(ret));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.h:69:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(&ret, sizeof(ret));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/Stream.h:87:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(tmp, sizeof(tmp));
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess.cpp:45: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(path) >= 4 && !strcasecmp(path + strlen(path) - 4, ".ccd"))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess.cpp:45: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).
 if(strlen(path) >= 4 && !strcasecmp(path + strlen(path) - 4, ".ccd"))
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:422:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  sub_stream->read(buf.full, 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:496:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 img_stream->read(buf, 2352);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_CCD.cpp:499:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 sub_stream->read(sub_buf, 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:363:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if(fp.read(bom_tmp, 3, false) == 3 && bom_tmp[0] == 0xEF && bom_tmp[1] == 0xBB && bom_tmp[2] == 0xBF)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:944:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf, 2352);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:951:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf + 12 + 3 + 1, 2048);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:957:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf, 2352);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:961:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf + 16, 2336);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:969:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf + 24, 2048);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:974:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ct->fp->read(buf + 24, 2324);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/CDAccess_Image.cpp:981:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       ct->fp->read(buf + 2352, 96);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader.cpp:109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fw->read(ptr, size * nmemb, false) / size;
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader.cpp:282:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  sf_count_t ret = fw->read(ptr, count, false);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/audioreader_opus.cpp:39:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fw->read(ptr, size * nmemb, false) / size;
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:751:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 virtual uint64 read(void *data, uint64 count, bool error_on_eos = true);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/cdromif.cpp:791:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint64 CDIF_Stream_Thing::read(void *data, uint64 count, bool error_on_eos)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/cdrom/lec.cpp:650:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd_in, buffer1, 2352) != 2352)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/error.cpp:124:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(local_strerror, strerror(the_errno), 255);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/include/blip/Blip_Buffer.h:304: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-pce-fast-0.9.38.7+git20160609/mednafen/mednafen.h:28: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:277: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:472: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:531: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:591: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-pce-fast-0.9.38.7+git20160609/mednafen/mempatcher.cpp:621: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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/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-pce-fast-0.9.38.7+git20160609/mednafen/state.cpp:211: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-pce-fast-0.9.38.7+git20160609/mednafen/state.cpp:213: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)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.c:186:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  lok = oggpack_look(b, read);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.c:188:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(lok<0 && read>1)
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.c:189:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    lok = oggpack_look(b, --read);
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/codebook.c:207:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(book->dec_codelengths[lo]<=read){
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:59: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).
  int taglen = strlen(tag)+1; /* +1 for the = we append */
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:63:3:  [1] (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 character.
  strcat(fulltag, "=");
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:79: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).
  int taglen = strlen(tag)+1; /* +1 for the = we append */
data/libretro-beetle-pce-fast-0.9.38.7+git20160609/mednafen/tremor/info.c:82:3:  [1] (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 character.
  strcat(fulltag, "=");

ANALYSIS SUMMARY:

Hits = 230
Lines analyzed = 40739 in approximately 1.27 seconds (32060 lines/second)
Physical Source Lines of Code (SLOC) = 27940
Hits@level = [0] 176 [1]  69 [2] 143 [3]   2 [4]  16 [5]   0
Hits@level+ = [0+] 406 [1+] 230 [2+] 161 [3+]  18 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 14.5311 [1+] 8.23193 [2+] 5.76235 [3+] 0.644238 [4+] 0.572656 [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.