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/blastem-0.6.3.3/68kinst.c
Examining data/blastem-0.6.3.3/68kinst.h
Examining data/blastem-0.6.3.3/arena.c
Examining data/blastem-0.6.3.3/arena.h
Examining data/blastem-0.6.3.3/backend.c
Examining data/blastem-0.6.3.3/backend.h
Examining data/blastem-0.6.3.3/backend_x86.c
Examining data/blastem-0.6.3.3/bindings.c
Examining data/blastem-0.6.3.3/bindings.h
Examining data/blastem-0.6.3.3/blastcpm.c
Examining data/blastem-0.6.3.3/blastem.c
Examining data/blastem-0.6.3.3/blastem.h
Examining data/blastem-0.6.3.3/config.c
Examining data/blastem-0.6.3.3/config.h
Examining data/blastem-0.6.3.3/controller_info.c
Examining data/blastem-0.6.3.3/controller_info.h
Examining data/blastem-0.6.3.3/debug.c
Examining data/blastem-0.6.3.3/debug.h
Examining data/blastem-0.6.3.3/dis.c
Examining data/blastem-0.6.3.3/gdb_remote.c
Examining data/blastem-0.6.3.3/gdb_remote.h
Examining data/blastem-0.6.3.3/gen.c
Examining data/blastem-0.6.3.3/gen.h
Examining data/blastem-0.6.3.3/gen_arm.c
Examining data/blastem-0.6.3.3/gen_arm.h
Examining data/blastem-0.6.3.3/gen_x86.c
Examining data/blastem-0.6.3.3/genesis.c
Examining data/blastem-0.6.3.3/genesis.h
Examining data/blastem-0.6.3.3/gst.c
Examining data/blastem-0.6.3.3/gst.h
Examining data/blastem-0.6.3.3/hash.c
Examining data/blastem-0.6.3.3/hash.h
Examining data/blastem-0.6.3.3/i2c.c
Examining data/blastem-0.6.3.3/i2c.h
Examining data/blastem-0.6.3.3/io.c
Examining data/blastem-0.6.3.3/io.h
Examining data/blastem-0.6.3.3/jag_video.c
Examining data/blastem-0.6.3.3/jag_video.h
Examining data/blastem-0.6.3.3/jagcpu.c
Examining data/blastem-0.6.3.3/jagcpu.h
Examining data/blastem-0.6.3.3/jagcpu_x86.c
Examining data/blastem-0.6.3.3/jagdis.c
Examining data/blastem-0.6.3.3/jaguar.c
Examining data/blastem-0.6.3.3/jaguar.h
Examining data/blastem-0.6.3.3/jcart.c
Examining data/blastem-0.6.3.3/jcart.h
Examining data/blastem-0.6.3.3/libblastem.c
Examining data/blastem-0.6.3.3/libretro.h
Examining data/blastem-0.6.3.3/m68k_core.c
Examining data/blastem-0.6.3.3/m68k_core.h
Examining data/blastem-0.6.3.3/m68k_core_x86.c
Examining data/blastem-0.6.3.3/m68k_internal.h
Examining data/blastem-0.6.3.3/megawifi.c
Examining data/blastem-0.6.3.3/megawifi.h
Examining data/blastem-0.6.3.3/mem.c
Examining data/blastem-0.6.3.3/mem.h
Examining data/blastem-0.6.3.3/mem_win.c
Examining data/blastem-0.6.3.3/memmap.h
Examining data/blastem-0.6.3.3/menu.c
Examining data/blastem-0.6.3.3/menu.h
Examining data/blastem-0.6.3.3/multi_game.c
Examining data/blastem-0.6.3.3/multi_game.h
Examining data/blastem-0.6.3.3/mw_commands.c
Examining data/blastem-0.6.3.3/net.c
Examining data/blastem-0.6.3.3/net.h
Examining data/blastem-0.6.3.3/net_win.c
Examining data/blastem-0.6.3.3/nor.c
Examining data/blastem-0.6.3.3/nor.h
Examining data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c
Examining data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.h
Examining data/blastem-0.6.3.3/nuklear_ui/font.c
Examining data/blastem-0.6.3.3/nuklear_ui/font.h
Examining data/blastem-0.6.3.3/nuklear_ui/font_android.c
Examining data/blastem-0.6.3.3/nuklear_ui/font_win.c
Examining data/blastem-0.6.3.3/nuklear_ui/nuklear.h
Examining data/blastem-0.6.3.3/nuklear_ui/nuklear_rawfb.h
Examining data/blastem-0.6.3.3/nuklear_ui/nuklear_sdl_gles2.h
Examining data/blastem-0.6.3.3/nuklear_ui/sfnt.c
Examining data/blastem-0.6.3.3/nuklear_ui/sfnt.h
Examining data/blastem-0.6.3.3/paths.c
Examining data/blastem-0.6.3.3/paths.h
Examining data/blastem-0.6.3.3/png.c
Examining data/blastem-0.6.3.3/png.h
Examining data/blastem-0.6.3.3/ppm.c
Examining data/blastem-0.6.3.3/ppm.h
Examining data/blastem-0.6.3.3/psg.c
Examining data/blastem-0.6.3.3/psg.h
Examining data/blastem-0.6.3.3/realtec.c
Examining data/blastem-0.6.3.3/realtec.h
Examining data/blastem-0.6.3.3/render.h
Examining data/blastem-0.6.3.3/render_audio.c
Examining data/blastem-0.6.3.3/render_audio.h
Examining data/blastem-0.6.3.3/render_fbdev.c
Examining data/blastem-0.6.3.3/render_sdl.c
Examining data/blastem-0.6.3.3/render_sdl.h
Examining data/blastem-0.6.3.3/romdb.c
Examining data/blastem-0.6.3.3/romdb.h
Examining data/blastem-0.6.3.3/saves.c
Examining data/blastem-0.6.3.3/saves.h
Examining data/blastem-0.6.3.3/sega_mapper.c
Examining data/blastem-0.6.3.3/sega_mapper.h
Examining data/blastem-0.6.3.3/serialize.c
Examining data/blastem-0.6.3.3/serialize.h
Examining data/blastem-0.6.3.3/sms.c
Examining data/blastem-0.6.3.3/sms.h
Examining data/blastem-0.6.3.3/special_keys_evdev.h
Examining data/blastem-0.6.3.3/stateview.c
Examining data/blastem-0.6.3.3/svp_util.c
Examining data/blastem-0.6.3.3/system.c
Examining data/blastem-0.6.3.3/system.h
Examining data/blastem-0.6.3.3/termhelper.c
Examining data/blastem-0.6.3.3/terminal.c
Examining data/blastem-0.6.3.3/terminal.h
Examining data/blastem-0.6.3.3/terminal_win.c
Examining data/blastem-0.6.3.3/tern.c
Examining data/blastem-0.6.3.3/tern.h
Examining data/blastem-0.6.3.3/test_arm.c
Examining data/blastem-0.6.3.3/test_int_timing.c
Examining data/blastem-0.6.3.3/test_x86.c
Examining data/blastem-0.6.3.3/testgst.c
Examining data/blastem-0.6.3.3/testtern.c
Examining data/blastem-0.6.3.3/trans.c
Examining data/blastem-0.6.3.3/util.c
Examining data/blastem-0.6.3.3/util.h
Examining data/blastem-0.6.3.3/vdp.c
Examining data/blastem-0.6.3.3/vgm.h
Examining data/blastem-0.6.3.3/vgmplay.c
Examining data/blastem-0.6.3.3/vgmsplit.c
Examining data/blastem-0.6.3.3/vos_prog_info.c
Examining data/blastem-0.6.3.3/vos_program_module.c
Examining data/blastem-0.6.3.3/vos_program_module.h
Examining data/blastem-0.6.3.3/wave.c
Examining data/blastem-0.6.3.3/wave.h
Examining data/blastem-0.6.3.3/xband.c
Examining data/blastem-0.6.3.3/xband.h
Examining data/blastem-0.6.3.3/ym2612.c
Examining data/blastem-0.6.3.3/ym2612.h
Examining data/blastem-0.6.3.3/z80_to_x86.c
Examining data/blastem-0.6.3.3/z80_to_x86.h
Examining data/blastem-0.6.3.3/z80_util.c
Examining data/blastem-0.6.3.3/z80inst.c
Examining data/blastem-0.6.3.3/z80inst.h
Examining data/blastem-0.6.3.3/zdis.c
Examining data/blastem-0.6.3.3/zip.c
Examining data/blastem-0.6.3.3/zip.h
Examining data/blastem-0.6.3.3/zlib/adler32.c
Examining data/blastem-0.6.3.3/zlib/compress.c
Examining data/blastem-0.6.3.3/zlib/crc32.c
Examining data/blastem-0.6.3.3/zlib/crc32.h
Examining data/blastem-0.6.3.3/zlib/deflate.c
Examining data/blastem-0.6.3.3/zlib/deflate.h
Examining data/blastem-0.6.3.3/zlib/gzclose.c
Examining data/blastem-0.6.3.3/zlib/gzguts.h
Examining data/blastem-0.6.3.3/zlib/gzlib.c
Examining data/blastem-0.6.3.3/zlib/gzread.c
Examining data/blastem-0.6.3.3/zlib/gzwrite.c
Examining data/blastem-0.6.3.3/zlib/infback.c
Examining data/blastem-0.6.3.3/zlib/inffast.c
Examining data/blastem-0.6.3.3/zlib/inffast.h
Examining data/blastem-0.6.3.3/zlib/inffixed.h
Examining data/blastem-0.6.3.3/zlib/inflate.c
Examining data/blastem-0.6.3.3/zlib/inflate.h
Examining data/blastem-0.6.3.3/zlib/inftrees.c
Examining data/blastem-0.6.3.3/zlib/inftrees.h
Examining data/blastem-0.6.3.3/zlib/trees.c
Examining data/blastem-0.6.3.3/zlib/trees.h
Examining data/blastem-0.6.3.3/zlib/uncompr.c
Examining data/blastem-0.6.3.3/zlib/zconf.h
Examining data/blastem-0.6.3.3/zlib/zlib.h
Examining data/blastem-0.6.3.3/zlib/zutil.c
Examining data/blastem-0.6.3.3/zlib/zutil.h
Examining data/blastem-0.6.3.3/ztestgen.c
Examining data/blastem-0.6.3.3/ztestrun.c
Examining data/blastem-0.6.3.3/vdp.h
Examining data/blastem-0.6.3.3/gen_x86.h
Examining data/blastem-0.6.3.3/test.c

FINAL RESULTS:

data/blastem-0.6.3.3/util.c:702:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		linksize = readlink(path, linktext, cursize-1);
data/blastem-0.6.3.3/68kinst.c:1847:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s d%d", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1850:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s a%d", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1853:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s (a%d)", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1856:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s (a%d)+", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1859:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s -(a%d)", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1862:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s (%d, a%d)", c, decoded->params.regs.displacement, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1868:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d, a%d, %c%d.%c*%d)", c, decoded->params.regs.displacement, decoded->params.regs.pri, (decoded->params.regs.sec & 0x10) ? 'a': 'd', (decoded->params.regs.sec >> 1) & 0x7, (decoded->params.regs.sec & 1) ? 'l': 'w', 1 << decoded->params.regs.scale);
data/blastem-0.6.3.3/68kinst.c:1871:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d, a%d, %c%d.%c)", c, decoded->params.regs.displacement, decoded->params.regs.pri, (decoded->params.regs.sec & 0x10) ? 'a': 'd', (decoded->params.regs.sec >> 1) & 0x7, (decoded->params.regs.sec & 1) ? 'l': 'w');
data/blastem-0.6.3.3/68kinst.c:1880:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, a%d, %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1885:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (a%d, %c%d.%c*%d)", c, decoded->params.regs.pri,
data/blastem-0.6.3.3/68kinst.c:1895:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d, %c%d.%c*%d])", c, decoded->params.regs.pri,
data/blastem-0.6.3.3/68kinst.c:1902:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d, %c%d.%c*%d])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1910:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d, %c%d.%c*%d], %d.%c)", c, decoded->params.regs.pri,
data/blastem-0.6.3.3/68kinst.c:1920:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d, %c%d.%c*%d], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1933:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d], %c%d.%c*%d)", c, decoded->params.regs.pri,
data/blastem-0.6.3.3/68kinst.c:1940:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d], %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1948:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d], %c%d.%c*%d, %d.%c)", c, decoded->params.regs.pri,
data/blastem-0.6.3.3/68kinst.c:1958:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d], %c%d.%c*%d, %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1971:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d])", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:1976:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1982:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([a%d], %d.%c)", c, decoded->params.regs.pri, decoded->params.regs.outer_disp,
data/blastem-0.6.3.3/68kinst.c:1990:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, a%d], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:1999:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, a%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2004:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (a%d)", c, decoded->params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:2010:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2015:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2025:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%c%d.%c*%d])", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2032:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, %c%d.%c*%d])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2040:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%c%d.%c*%d], %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2050:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, %c%d.%c*%d], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2063:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([], %c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2070:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c], %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2078:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([], %c%d.%c*%d, %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2088:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c], %c%d.%c*%d, %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2101:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([])", c);
data/blastem-0.6.3.3/68kinst.c:2106:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2112:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([], %d.%c)", c, decoded->params.regs.outer_disp,
data/blastem-0.6.3.3/68kinst.c:2120:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2129:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2132:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ()", c);
data/blastem-0.6.3.3/68kinst.c:2138:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		ret = sprintf(dst, (decoded->params.immed <= 128 ? "%s #%d" : "%s #$%X"), c, decoded->params.immed);
data/blastem-0.6.3.3/68kinst.c:2142:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ", c);
data/blastem-0.6.3.3/68kinst.c:2147:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s $%X.w", c, decoded->params.immed);
data/blastem-0.6.3.3/68kinst.c:2152:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ", c);
data/blastem-0.6.3.3/68kinst.c:2157:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s $%X", c, decoded->params.immed);
data/blastem-0.6.3.3/68kinst.c:2162:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ", c);
data/blastem-0.6.3.3/68kinst.c:2167:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d, pc)", c, decoded->params.regs.displacement);
data/blastem-0.6.3.3/68kinst.c:2174:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d, pc, %c%d.%c*%d)", c, decoded->params.regs.displacement, (decoded->params.regs.sec & 0x10) ? 'a': 'd', (decoded->params.regs.sec >> 1) & 0x7, (decoded->params.regs.sec & 1) ? 'l': 'w', 1 << decoded->params.regs.scale);
data/blastem-0.6.3.3/68kinst.c:2177:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d, pc, %c%d.%c)", c, decoded->params.regs.displacement, (decoded->params.regs.sec & 0x10) ? 'a': 'd', (decoded->params.regs.sec >> 1) & 0x7, (decoded->params.regs.sec & 1) ? 'l': 'w');
data/blastem-0.6.3.3/68kinst.c:2186:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, pc, %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2191:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (pc, %c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2201:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc, %c%d.%c*%d])", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2208:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc, %c%d.%c*%d])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2216:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc, %c%d.%c*%d], %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2226:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc, %c%d.%c*%d], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2239:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc], %c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2246:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc], %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2254:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc], %c%d.%c*%d, %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2264:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc], %c%d.%c*%d, %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2277:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc])", c);
data/blastem-0.6.3.3/68kinst.c:2282:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2288:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([pc], %d.%c)", c, decoded->params.regs.outer_disp,
data/blastem-0.6.3.3/68kinst.c:2296:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, pc], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2305:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, pc)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2308:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (pc)", c);
data/blastem-0.6.3.3/68kinst.c:2314:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, zpc, %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2319:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (zpc, %c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2329:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc, %c%d.%c*%d])", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2336:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc, %c%d.%c*%d])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2344:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc, %c%d.%c*%d], %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2354:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc, %c%d.%c*%d], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2367:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc], %c%d.%c*%d)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2374:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc], %c%d.%c*%d)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2382:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc], %c%d.%c*%d, %d.%c)", c, (decoded->params.regs.sec & 0x10) ? 'a': 'd',
data/blastem-0.6.3.3/68kinst.c:2392:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc], %c%d.%c*%d, %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2405:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc])", c);
data/blastem-0.6.3.3/68kinst.c:2410:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc])", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2416:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([zpc], %d.%c)", c, decoded->params.regs.outer_disp,
data/blastem-0.6.3.3/68kinst.c:2424:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s ([%d.%c, zpc], %d.%c)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2433:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (%d.%c, zpc)", c, decoded->params.regs.displacement,
data/blastem-0.6.3.3/68kinst.c:2436:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "%s (zpc)", c);
data/blastem-0.6.3.3/68kinst.c:2496:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						oplen += sprintf(dst + oplen, "-%s%d/%s%d",last_rtype, last, rtype, regnum);
data/blastem-0.6.3.3/68kinst.c:2498:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						oplen += sprintf(dst + oplen, "/%s%d", rtype, regnum);
data/blastem-0.6.3.3/68kinst.c:2504:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					oplen += sprintf(dst + oplen, "%s%d", rtype, regnum);
data/blastem-0.6.3.3/68kinst.c:2512:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			oplen += sprintf(dst + oplen, "-%s%d", last_rtype, last);
data/blastem-0.6.3.3/68kinst.c:2538: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(dst+ret, cond_mnem[decoded->extra.cond]);
data/blastem-0.6.3.3/68kinst.c:2561:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "bsr%s ", decoded->variant == VAR_BYTE ? ".s" : "");
data/blastem-0.6.3.3/68kinst.c:2564:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(dst, "bsr%s #%d <%X>", decoded->variant == VAR_BYTE ? ".s" : "", decoded->src.params.immed, decoded->address + 2 + decoded->src.params.immed);
data/blastem-0.6.3.3/68kinst.c:2568:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s", mnemonics[decoded->op]);
data/blastem-0.6.3.3/68kinst.c:2581:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s", mnemonics[decoded->op]);
data/blastem-0.6.3.3/68kinst.c:2583:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret += sprintf(dst + ret, ", %s", special_op);
data/blastem-0.6.3.3/68kinst.c:2586:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s", mnemonics[decoded->op]);
data/blastem-0.6.3.3/68kinst.c:2600:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s ", mnemonics[decoded->op]);
data/blastem-0.6.3.3/68kinst.c:2602:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret += sprintf(dst + ret, "%s, ", cr_mnem[decoded->src.params.immed]);
data/blastem-0.6.3.3/68kinst.c:2606:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret += sprintf(dst + ret, ", %s", cr_mnem[decoded->dst.params.immed]);
data/blastem-0.6.3.3/68kinst.c:2615:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		ret = sprintf(dst, "%s%s%s",
data/blastem-0.6.3.3/backend_x86.c:93:32:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	call_args_abi(code, (code_ptr)printf, 3, RDI, RSI, RDX);
data/blastem-0.6.3.3/debug.c:152:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		genesis_context *gen = context->system;
data/blastem-0.6.3.3/debug.c:174:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(format, param, value);
data/blastem-0.6.3.3/debug.c:184:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *system = context->system;
data/blastem-0.6.3.3/debug.c:370:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(format, param, value);
data/blastem-0.6.3.3/debug.c:380:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *system = context->system;
data/blastem-0.6.3.3/debug.c:410: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(last_cmd, input_buf);
data/blastem-0.6.3.3/debug.c:412: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(input_buf, last_cmd);
data/blastem-0.6.3.3/debug.c:592:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *system = context->system;
data/blastem-0.6.3.3/debug.c:877:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			genesis_context * gen = context->system;
data/blastem-0.6.3.3/debug.c:891:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			genesis_context * gen = context->system;
data/blastem-0.6.3.3/debug.c:913:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			genesis_context * gen = context->system;
data/blastem-0.6.3.3/debug.c:964:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/debug.c:1052: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(last_cmd, input_buf);
data/blastem-0.6.3.3/debug.c:1054: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(input_buf, last_cmd);
data/blastem-0.6.3.3/dis.c:23:2:  [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, format, args);
data/blastem-0.6.3.3/dis.c:122:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s", names->labels[0]);
data/blastem-0.6.3.3/gdb_remote.c:39:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dfprintf fprintf
data/blastem-0.6.3.3/gdb_remote.c:138:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/gdb_remote.c:155:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/gdb_remote.c:172:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		genesis_context * gen = context->system;
data/blastem-0.6.3.3/gdb_remote.c:203:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		genesis_context *gen = context->system;
data/blastem-0.6.3.3/gdb_remote.c:427:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:217:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static uint16_t get_open_bus_value(system_header *system)
data/blastem-0.6.3.3/genesis.c:219:48:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *genesis = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:226:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:290:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dprintf printf
data/blastem-0.6.3.3/genesis.c:299:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = z_context->system;
data/blastem-0.6.3.3/genesis.c:363:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:497:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:596:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:636:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:657:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:689:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:723:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:868:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:960:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:974:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:989:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/genesis.c:997:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:1028:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:1055:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/genesis.c:1058:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	update_z80_bank_pointer(context->system);
data/blastem-0.6.3.3/genesis.c:1063:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void set_speed_percent(system_header * system, uint32_t percent)
data/blastem-0.6.3.3/genesis.c:1065:48:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *context = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1101:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static uint8_t load_state(system_header *system, uint8_t slot)
data/blastem-0.6.3.3/genesis.c:1103:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1104:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	char *statepath = get_slot_name(system, slot, "state");
data/blastem-0.6.3.3/genesis.c:1164:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void start_genesis(system_header *system, char *statefile)
data/blastem-0.6.3.3/genesis.c:1166:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1201:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void resume_genesis(system_header *system)
data/blastem-0.6.3.3/genesis.c:1203:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1215:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void inc_debug_mode(system_header *system)
data/blastem-0.6.3.3/genesis.c:1217:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1221:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void request_exit(system_header *system)
data/blastem-0.6.3.3/genesis.c:1223:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1228:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void persist_save(system_header *system)
data/blastem-0.6.3.3/genesis.c:1230:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1250:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void load_save(system_header *system)
data/blastem-0.6.3.3/genesis.c:1252:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1266:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void soft_reset(system_header *system)
data/blastem-0.6.3.3/genesis.c:1268:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1278:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void free_genesis(system_header *system)
data/blastem-0.6.3.3/genesis.c:1280:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1298:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void gamepad_down(system_header *system, uint8_t gamepad_num, uint8_t button)
data/blastem-0.6.3.3/genesis.c:1300:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1307:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void gamepad_up(system_header *system, uint8_t gamepad_num, uint8_t button)
data/blastem-0.6.3.3/genesis.c:1309:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1316:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_down(system_header *system, uint8_t mouse_num, uint8_t button)
data/blastem-0.6.3.3/genesis.c:1318:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1322:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_up(system_header *system, uint8_t mouse_num, uint8_t button)
data/blastem-0.6.3.3/genesis.c:1324:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1328:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_motion_absolute(system_header *system, uint8_t mouse_num, uint16_t x, uint16_t y)
data/blastem-0.6.3.3/genesis.c:1330:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1334:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_motion_relative(system_header *system, uint8_t mouse_num, int32_t x, int32_t y)
data/blastem-0.6.3.3/genesis.c:1336:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1340:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void keyboard_down(system_header *system, uint8_t scancode)
data/blastem-0.6.3.3/genesis.c:1342:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1346:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void keyboard_up(system_header *system, uint8_t scancode)
data/blastem-0.6.3.3/genesis.c:1348:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/genesis.c:1364:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void config_updated(system_header *system)
data/blastem-0.6.3.3/genesis.c:1366:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = (genesis_context *)system;
data/blastem-0.6.3.3/i2c.c:184:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = ((m68k_context *)context)->system;
data/blastem-0.6.3.3/i2c.c:200:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = ((m68k_context *)context)->system;
data/blastem-0.6.3.3/i2c.c:225:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = ((m68k_context *)context)->system;
data/blastem-0.6.3.3/i2c.c:239:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = ((m68k_context *)context)->system;
data/blastem-0.6.3.3/jag_video.c:223:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			uint64_t val = jag_read_phrase(context->system, address, &context->op.cycles);
data/blastem-0.6.3.3/jag_video.c:296:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			uint64_t val = jag_read_phrase(context->system, address, &context->op.cycles);
data/blastem-0.6.3.3/jag_video.c:410:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			uint64_t val = jag_read_phrase(context->system, address, &context->op.cycles);
data/blastem-0.6.3.3/jag_video.c:425:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				context->op.prefetch = jag_read_phrase(context->system, context->op.cur_address, &proc_cycles);
data/blastem-0.6.3.3/jag_video.c:506:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			context->op.cycles += jag_write_phrase(context->system, context->op.obj_start, val);
data/blastem-0.6.3.3/jag_video.c:511:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			context->op.cycles += jag_write_phrase(context->system, context->op.obj_start+16, val);
data/blastem-0.6.3.3/jag_video.h:84:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void             *system;
data/blastem-0.6.3.3/jagcpu.c:252:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s $%X, r%d", mnemonics[opcode], immed, jag_reg2(inst));
data/blastem-0.6.3.3/jagcpu.c:255:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		return sprintf(dst,
data/blastem-0.6.3.3/jagcpu.c:260:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s %s, (r%d)", mnemonics[opcode], jag_cc(inst), jag_reg1(inst));
data/blastem-0.6.3.3/jagcpu.c:263:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s (r%d+%d), r%d",  
data/blastem-0.6.3.3/jagcpu.c:272:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s r%d, (r%d+%d)",  
data/blastem-0.6.3.3/jagcpu.c:281:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s (r%d+r%d), r%d",  
data/blastem-0.6.3.3/jagcpu.c:290:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		return sprintf(dst, "%s r%d, (r%d+r%d)",  
data/blastem-0.6.3.3/jagcpu.c:299:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			return sprintf(dst, "%s %d, r%d", mnemonics[opcode], jag_quick(inst), jag_reg2(inst));
data/blastem-0.6.3.3/jagcpu.c:301:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			return sprintf(dst, "%s %d, r%d", mnemonics[opcode], jag_reg1(inst), jag_reg2(inst));
data/blastem-0.6.3.3/jagcpu.c:303:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			return sprintf(dst, "%s (r%d), r%d", mnemonics[opcode], jag_reg1(inst), jag_reg2(inst));
data/blastem-0.6.3.3/jagcpu.c:305:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			return sprintf(dst, "%s r%d, (r%d)", mnemonics[opcode], jag_reg2(inst), jag_reg1(inst));
data/blastem-0.6.3.3/jagcpu.c:307:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			return sprintf(dst, "%s r%d, r%d", mnemonics[opcode], jag_reg1(inst), jag_reg2(inst));
data/blastem-0.6.3.3/jagdis.c:22:2:  [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, format, args);
data/blastem-0.6.3.3/jaguar.c:62:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void jag_update_m68k_int(jaguar_context *system)
data/blastem-0.6.3.3/jaguar.c:95:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void rom0_write_16(uint32_t address, jaguar_context *system, uint16_t value)
data/blastem-0.6.3.3/jaguar.c:151:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					jag_update_m68k_int(system);
data/blastem-0.6.3.3/jaguar.c:160:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					jag_update_m68k_int(system);
data/blastem-0.6.3.3/jaguar.c:246:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint16_t rom0_read_16(uint32_t address, jaguar_context *system)
data/blastem-0.6.3.3/jaguar.c:332:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint64_t rom0_read_64(uint32_t address, jaguar_context *system)
data/blastem-0.6.3.3/jaguar.c:335:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint64_t high = rom0_read_16(address, system);
data/blastem-0.6.3.3/jaguar.c:336:45:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint64_t highmid = rom0_read_16(address+2, system);
data/blastem-0.6.3.3/jaguar.c:337:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint64_t lowmid = rom0_read_16(address+4, system);
data/blastem-0.6.3.3/jaguar.c:338:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint64_t low = rom0_read_16(address+6, system);
data/blastem-0.6.3.3/jaguar.c:342:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void rom0_write_64(uint32_t address, jaguar_context *system, uint64_t val)
data/blastem-0.6.3.3/jaguar.c:345:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address, system, val >> 48);
data/blastem-0.6.3.3/jaguar.c:346:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address+2, system, val >> 32);
data/blastem-0.6.3.3/jaguar.c:347:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address+4, system, val >> 16);
data/blastem-0.6.3.3/jaguar.c:348:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address+6, system, val);
data/blastem-0.6.3.3/jaguar.c:351:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint64_t jag_read_phrase(jaguar_context *system, uint32_t address, uint32_t *cycles)
data/blastem-0.6.3.3/jaguar.c:359:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		return rom0_read_64(address, system);
data/blastem-0.6.3.3/jaguar.c:373:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			return rom0_read_64(address, system);
data/blastem-0.6.3.3/jaguar.c:385:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		return rom0_read_64(address, system);
data/blastem-0.6.3.3/jaguar.c:394:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint32_t jag_write_phrase(jaguar_context *system, uint32_t address, uint64_t val)
data/blastem-0.6.3.3/jaguar.c:401:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		rom0_write_64(address, system, val);
data/blastem-0.6.3.3/jaguar.c:416:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			rom0_write_64(address, system, val);
data/blastem-0.6.3.3/jaguar.c:428:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		rom0_write_64(address, system, val);
data/blastem-0.6.3.3/jaguar.c:440:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	jaguar_context *system = context->system;
data/blastem-0.6.3.3/jaguar.c:442:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	jag_update_m68k_int(system);
data/blastem-0.6.3.3/jaguar.c:452:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	jag_update_m68k_int(system);
data/blastem-0.6.3.3/jaguar.c:460:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address, ((m68k_context *)context)->system, value);
data/blastem-0.6.3.3/jaguar.c:467:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return rom0_read_16(address, ((m68k_context *)context)->system);
data/blastem-0.6.3.3/jaguar.c:476:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rom0_write_16(address, ((m68k_context *)context)->system, value16);
data/blastem-0.6.3.3/jaguar.c:483:68:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint16_t value = rom0_read_16(address, ((m68k_context *)context)->system);
data/blastem-0.6.3.3/jaguar.c:525:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system->m68k->system = system;
data/blastem-0.6.3.3/jaguar.c:527:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system->video->system = system;
data/blastem-0.6.3.3/jaguar.c:528:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return system;
data/blastem-0.6.3.3/jaguar.h:34:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint64_t jag_read_phrase(jaguar_context *system, uint32_t address, uint32_t *cycles);
data/blastem-0.6.3.3/jaguar.h:35:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint32_t jag_write_phrase(jaguar_context *system, uint32_t address, uint64_t value);
data/blastem-0.6.3.3/jcart.c:6:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/m68k_core.h:93:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void            *system;
data/blastem-0.6.3.3/megawifi.c:76:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/menu.c:29:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		menu_context *menu = get_menu(context->system);
data/blastem-0.6.3.3/menu.c:130:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/multi_game.c:6:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = context->system;
data/blastem-0.6.3.3/nor.c:60:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/nor.c:133:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:876:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(pad_key + sizeof(base_path), key);
data/blastem-0.6.3.3/nuklear_ui/font.c:9:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	FILE *fc_pipe = popen("fc-match -f '%{file}'", "r");
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:4320:37:  [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 NK_VSNPRINTF(s,n,f,a) vsnprintf(s,n,f,a)
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:4322:35:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    #define NK_VSNPRINTF(s,n,f,a) vsprintf(s,f,a)
data/blastem-0.6.3.3/realtec.c:37:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/render_sdl.c:1478:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(fps_caption, "%s - %.1f fps", caption, ((float)frame_counter) / (((float)(last_frame-start)) / 1000.0));
data/blastem-0.6.3.3/saves.c:14:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
char *get_slot_name(system_header *system, uint32_t slot_index, char *ext)
data/blastem-0.6.3.3/saves.c:35:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
save_slot_info *get_slot_info(system_header *system, uint32_t *num_out)
data/blastem-0.6.3.3/saves.c:43:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		char * fname = get_slot_name(system, i, "state");
data/blastem-0.6.3.3/saves.c:47:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			fname = get_slot_name(system, i, "gst");
data/blastem-0.6.3.3/saves.h:16:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
char *get_slot_name(system_header *system, uint32_t slot_index, char *ext);
data/blastem-0.6.3.3/saves.h:17:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
save_slot_info *get_slot_info(system_header *system, uint32_t *num_out);
data/blastem-0.6.3.3/sega_mapper.c:5:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/sega_mapper.c:21:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/sega_mapper.c:45:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/sega_mapper.c:67:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/sega_mapper.c:92:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context * gen = context->system;
data/blastem-0.6.3.3/sms.c:24:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:50:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:63:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:84:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:99:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:114:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:159:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:170:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = z80->system;
data/blastem-0.6.3.3/sms.c:180:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
uint8_t debug_commands(system_header *system, char *input_buf)
data/blastem-0.6.3.3/sms.c:182:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:205:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void set_speed_percent(system_header * system, uint32_t percent)
data/blastem-0.6.3.3/sms.c:207:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *context = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:355:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static uint8_t load_state(system_header *system, uint8_t slot)
data/blastem-0.6.3.3/sms.c:357:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:358:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	char *statepath = get_slot_name(system, slot, "state");
data/blastem-0.6.3.3/sms.c:376:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void run_sms(system_header *system)
data/blastem-0.6.3.3/sms.c:378:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:385:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			load_state(system, system->delayed_load_slot - 1);
data/blastem-0.6.3.3/sms.c:439:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void resume_sms(system_header *system)
data/blastem-0.6.3.3/sms.c:441:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:447:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	run_sms(system);
data/blastem-0.6.3.3/sms.c:450:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void start_sms(system_header *system, char *statefile)
data/blastem-0.6.3.3/sms.c:452:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:466:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	run_sms(system);
data/blastem-0.6.3.3/sms.c:469:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void soft_reset(system_header *system)
data/blastem-0.6.3.3/sms.c:471:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:478:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void free_sms(system_header *system)
data/blastem-0.6.3.3/sms.c:480:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:488:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static uint16_t get_open_bus_value(system_header *system)
data/blastem-0.6.3.3/sms.c:493:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void request_exit(system_header *system)
data/blastem-0.6.3.3/sms.c:495:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:502:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void inc_debug_mode(system_header *system)
data/blastem-0.6.3.3/sms.c:504:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:508:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void load_save(system_header *system)
data/blastem-0.6.3.3/sms.c:513:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void persist_save(system_header *system)
data/blastem-0.6.3.3/sms.c:518:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void gamepad_down(system_header *system, uint8_t gamepad_num, uint8_t button)
data/blastem-0.6.3.3/sms.c:520:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:530:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void gamepad_up(system_header *system, uint8_t gamepad_num, uint8_t button)
data/blastem-0.6.3.3/sms.c:532:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:536:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_down(system_header *system, uint8_t mouse_num, uint8_t button)
data/blastem-0.6.3.3/sms.c:538:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:542:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_up(system_header *system, uint8_t mouse_num, uint8_t button)
data/blastem-0.6.3.3/sms.c:544:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:548:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_motion_absolute(system_header *system, uint8_t mouse_num, uint16_t x, uint16_t y)
data/blastem-0.6.3.3/sms.c:550:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:554:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void mouse_motion_relative(system_header *system, uint8_t mouse_num, int32_t x, int32_t y)
data/blastem-0.6.3.3/sms.c:556:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:560:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void keyboard_down(system_header *system, uint8_t scancode)
data/blastem-0.6.3.3/sms.c:562:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:566:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void keyboard_up(system_header *system, uint8_t scancode)
data/blastem-0.6.3.3/sms.c:568:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/sms.c:579:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static void config_updated(system_header *system)
data/blastem-0.6.3.3/sms.c:581:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	sms_context *sms = (sms_context *)system;
data/blastem-0.6.3.3/terminal.c:33:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			char *term = system("which x-terminal-emulator > /dev/null") ? "xterm" : "x-terminal-emulator";
data/blastem-0.6.3.3/terminal.c:54:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execlp("open", "open", "./termhelper", NULL);
data/blastem-0.6.3.3/terminal.c:56:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execlp(term, term, "-title", "BlastEm Debugger", "-e", "./termhelper", NULL);
data/blastem-0.6.3.3/util.c:27:32:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info_printf(msg, args) vprintf(msg, args)
data/blastem-0.6.3.3/util.c:28:35:  [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.
#define warning_printf(msg, args) vfprintf(stderr, msg, args)
data/blastem-0.6.3.3/util.c:29:33:  [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.
#define fatal_printf(msg, args) vfprintf(stderr, msg, args)
data/blastem-0.6.3.3/util.c:55:3:  [4] (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).
		strcat(ret, parts[i]);
data/blastem-0.6.3.3/util.c:132: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(curout, positions[i].value);
data/blastem-0.6.3.3/util.c:138: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(curout, base+cur);
data/blastem-0.6.3.3/util.c:420:20:  [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.
		int32_t actual = vsnprintf(buf, size, format, args);
data/blastem-0.6.3.3/util.c:433: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, actual, format, args);
data/blastem-0.6.3.3/util.c:456:20:  [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.
		int32_t actual = vsnprintf(buf, size, format, args);
data/blastem-0.6.3.3/util.c:469: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, actual, format, args);
data/blastem-0.6.3.3/util.c:494:20:  [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.
		int32_t actual = vsnprintf(buf, size, format, args);
data/blastem-0.6.3.3/util.c:507: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, actual, format, args);
data/blastem-0.6.3.3/vdp.c:3566:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	uint16_t value = context->system->get_open_bus_value(context->system) & 0xFC00;
data/blastem-0.6.3.3/vdp.h:163:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system_header  *system;
data/blastem-0.6.3.3/vgmsplit.c:257:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(fname, i < PSG_BASE ? "ym_%d.vgm" : "psg_%d.vgm", i < PSG_BASE ? i : i - PSG_BASE);
data/blastem-0.6.3.3/xband.c:77:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dprintf printf
data/blastem-0.6.3.3/xband.c:149:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/xband.c:175:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/xband.c:198:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/xband.c:223:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/xband.c:271:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/xband.c:301:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	genesis_context *gen = m68k->system;
data/blastem-0.6.3.3/ym2612.c:17:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dfprintf fprintf
data/blastem-0.6.3.3/z80_to_x86.c:24:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dprintf printf
data/blastem-0.6.3.3/z80_to_x86.h:75:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	void *            system;
data/blastem-0.6.3.3/z80inst.c:1409:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	int len = sprintf(dst, "%s", z80_mnemonics[decoded->op]);
data/blastem-0.6.3.3/z80inst.c:1416:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len,  " %s", z80_regs[decoded->ea_reg]);
data/blastem-0.6.3.3/z80inst.c:1419:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len,  " (%s)", z80_regs[decoded->ea_reg]);
data/blastem-0.6.3.3/z80inst.c:1442:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len, "%s %d", needcomma ? "," : "", decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1446:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len,  "%s %s", needcomma ? "," : "", z80_conditions[decoded->reg & 0x1F]);
data/blastem-0.6.3.3/z80inst.c:1448:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len,  "%s %s", needcomma ? "," : "", z80_regs[decoded->reg & 0x1F]);
data/blastem-0.6.3.3/z80inst.c:1459:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len,  " %s", z80_conditions[decoded->reg & 0x1F]);
data/blastem-0.6.3.3/z80inst.c:1461:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len,  " %s", z80_regs[decoded->reg & 0x1F]);
data/blastem-0.6.3.3/z80inst.c:1468:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len,  "%s %s", needcomma ? "," : "" , z80_regs[decoded->ea_reg]);
data/blastem-0.6.3.3/z80inst.c:1471:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len,  "%s (%s)", needcomma ? "," : "" , z80_regs[decoded->ea_reg]);
data/blastem-0.6.3.3/z80inst.c:1476:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					len += sprintf(dst+len, "%s %X", needcomma ? "," : "" , address);
data/blastem-0.6.3.3/z80inst.c:1479:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len, "%s $%X", needcomma ? "," : "" , decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1481:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				len += sprintf(dst+len, "%s %d", needcomma ? "," : "" , decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1485:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len, "%s ($%X)", needcomma ? "," : "" , decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1488:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len, "%s (ix+%d)", needcomma ? "," : "" , decoded->ea_reg & 0x80 ? decoded->ea_reg - 256 : decoded->ea_reg);
data/blastem-0.6.3.3/z80inst.c:1491:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			len += sprintf(dst+len, "%s (iy+%d)", needcomma ? "," : "" , decoded->ea_reg & 0x80 ? decoded->ea_reg - 256 : decoded->ea_reg);
data/blastem-0.6.3.3/zdis.c:18:2:  [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, format, args);
data/blastem-0.6.3.3/zlib/gzguts.h:86:18:  [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.
#    if !defined(vsnprintf) && !defined(NO_vsnprintf)
data/blastem-0.6.3.3/zlib/gzguts.h:88:18:  [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 _vsnprintf
data/blastem-0.6.3.3/zlib/gzguts.h:110:11:  [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/blastem-0.6.3.3/zlib/gzguts.h:110:20:  [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/blastem-0.6.3.3/zlib/gzlib.c:216:9:  [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(state->path, path);
data/blastem-0.6.3.3/zlib/gzlib.c:614:5:  [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(state->msg, state->path);
data/blastem-0.6.3.3/zlib/gzlib.c:616:5:  [4] (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).
    strcat(state->msg, msg);
data/blastem-0.6.3.3/zlib/gzwrite.c:417:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)vsprintf(next, format, va);
data/blastem-0.6.3.3/zlib/gzwrite.c:421:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = vsprintf(next, format, va);
data/blastem-0.6.3.3/zlib/gzwrite.c:425:11:  [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.
    (void)vsnprintf(next, state->size, format, va);
data/blastem-0.6.3.3/zlib/gzwrite.c:428:11:  [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.
    len = vsnprintf(next, state->size, format, va);
data/blastem-0.6.3.3/zlib/gzwrite.c:511:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(next, format, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12,
data/blastem-0.6.3.3/zlib/gzwrite.c:517:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = sprintf(next, format, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11,
data/blastem-0.6.3.3/zlib/gzwrite.c:522:5:  [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.
    snprintf(next, state->size, format, a1, a2, a3, a4, a5, a6, a7, a8, a9,
data/blastem-0.6.3.3/zlib/gzwrite.c:526:11:  [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.
    len = snprintf(next, state->size, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/blastem-0.6.3.3/zlib/zutil.h:242:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Trace(x) {if (z_verbose>=0) fprintf x ;}
data/blastem-0.6.3.3/zlib/zutil.h:243:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracev(x) {if (z_verbose>0) fprintf x ;}
data/blastem-0.6.3.3/zlib/zutil.h:244:40:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracevv(x) {if (z_verbose>1) fprintf x ;}
data/blastem-0.6.3.3/zlib/zutil.h:245:48:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
data/blastem-0.6.3.3/zlib/zutil.h:246:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
data/blastem-0.6.3.3/ztestgen.c:306:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pathbuf, "ztests/%s", z80_mnemonics[inst->op]);
data/blastem-0.6.3.3/ztestgen.c:459:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pathbuf + strlen(pathbuf), "/%s.bin", disbuf);
data/blastem-0.6.3.3/ztestrun.c:24:2:  [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, format, args);
data/blastem-0.6.3.3/genesis.c:1271:49:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		gen->reset_cycle = gen->m68k->current_cycle + random * MCLKS_LINE * (gen->version_reg & HZ50 ? LINES_PAL : LINES_NTSC);
data/blastem-0.6.3.3/genesis.c:1447:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(time(NULL));
data/blastem-0.6.3.3/util.c:114:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			positions[i].value = getenv(varname);
data/blastem-0.6.3.3/util.c:686:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv("HOME");
data/blastem-0.6.3.3/ztestgen.c:534:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/blastem-0.6.3.3/68kinst.c:2144:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(dst+ret, ".w");
data/blastem-0.6.3.3/68kinst.c:2154:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(dst+ret, ".l");
data/blastem-0.6.3.3/68kinst.c:2164:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(dst+ret, "(pc)");
data/blastem-0.6.3.3/68kinst.c:2449: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.
			return ret + sprintf(dst+ret, " {$%X:%d}", decoded->bitfield >> 6 & 0x1F, decoded->bitfield & 0x1F ? decoded->bitfield & 0x1F : 32);
data/blastem-0.6.3.3/68kinst.c:2451: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.
			return ret + sprintf(dst+ret, " {$%X:d%d}", decoded->bitfield >> 6 & 0x1F, decoded->bitfield & 0x7);
data/blastem-0.6.3.3/68kinst.c:2453: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.
			return ret + sprintf(dst+ret, " {d%d:%d}", decoded->bitfield >> 6 & 0x7, decoded->bitfield & 0x1F ? decoded->bitfield & 0x1F : 32);
data/blastem-0.6.3.3/68kinst.c:2455: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.
			return ret + sprintf(dst+ret, " {d%d:d%d}", decoded->bitfield >> 6 & 0x7, decoded->bitfield & 0x7);
data/blastem-0.6.3.3/68kinst.c:2476:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(dst, ", ");
data/blastem-0.6.3.3/68kinst.c:2522:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	return sprintf(dst, "ADR_%X", address);
data/blastem-0.6.3.3/68kinst.c:2536:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, mnemonics[decoded->op], ret);
data/blastem-0.6.3.3/68kinst.c:2543: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.
					ret += sprintf(dst+ret, " d%d, ", decoded->dst.params.regs.pri);
data/blastem-0.6.3.3/68kinst.c:2551: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.
					ret += sprintf(dst+ret, " d%d, #%d <%X>", decoded->dst.params.regs.pri, decoded->src.params.immed, decoded->address + 2 + decoded->src.params.immed);
data/blastem-0.6.3.3/68kinst.c:2553: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.
					ret += sprintf(dst+ret, " #%d <%X>", decoded->src.params.immed, decoded->address + 2 + decoded->src.params.immed);
data/blastem-0.6.3.3/68kinst.c:2569:10:  [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.
		ret += sprintf(dst + ret, " SR");
data/blastem-0.6.3.3/68kinst.c:2589:11:  [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.
			ret += sprintf(dst + ret, ", USP");
data/blastem-0.6.3.3/68kinst.c:2591:11:  [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.
			ret += sprintf(dst + ret, "USP, ");
data/blastem-0.6.3.3/68kinst.c:2596:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		ret = sprintf(dst, "dc.w $%X", decoded->src.params.immed);
data/blastem-0.6.3.3/bindings.c:372: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 fname_part[256];
data/blastem-0.6.3.3/bindings.c:618:17:  [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).
			*subtype_b = atoi(target + 3 + strlen("set_speed."));
data/blastem-0.6.3.3/bindings.c:665: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 onec[2];
data/blastem-0.6.3.3/bindings.c:669: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(curstr, prefix, len);
data/blastem-0.6.3.3/bindings.c:705: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 onec[2];
data/blastem-0.6.3.3/bindings.c:709: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(curstr, prefix, len);
data/blastem-0.6.3.3/bindings.c:730:26:  [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).
			speeds[speed_index] = atoi(cur->straight.value.ptrval);
data/blastem-0.6.3.3/bindings.c:753:18:  [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 buttonnum = atoi(buttonstr);
data/blastem-0.6.3.3/bindings.c:781:17:  [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 mouseidx = atoi(mousenum);
data/blastem-0.6.3.3/bindings.c:938: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 numstr[11];
data/blastem-0.6.3.3/bindings.c:939:2:  [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(numstr, "%d", padnum);
data/blastem-0.6.3.3/bindings.c:968: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 numstr[2] = {dpad + '0', 0};
data/blastem-0.6.3.3/blastcpm.c:93:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("fake_cpm.bin", "rb");
data/blastem-0.6.3.3/blastcpm.c:102:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(argv[1], "rb");
data/blastem-0.6.3.3/blastem.c:61:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define romopen fopen
data/blastem-0.6.3.3/blastem.c:160:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy(tmp, *dst + offset + SMD_HEADER_SIZE, SMD_BLOCK_SIZE);
data/blastem-0.6.3.3/blastem.c:205: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(buf, header, readsize);
data/blastem-0.6.3.3/blastem.c:457:18:  [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).
				exit_after = atoi(argv[i]);
data/blastem-0.6.3.3/blastem.c:573:12:  [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).
			width = atoi(argv[i]);
data/blastem-0.6.3.3/blastem.c:575:13:  [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).
			height = atoi(argv[i]);
data/blastem-0.6.3.3/blastem.c:582:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		def_width = atoi(config_width);
data/blastem-0.6.3.3/blastem.c:589:16:  [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).
		def_height = atoi(config_height);
data/blastem-0.6.3.3/config.c:126: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(state->buf + state->size, key, keylen);
data/blastem-0.6.3.3/config.c:130: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(state->buf + state->size, val.ptrval, vallen);
data/blastem-0.6.3.3/config.c:169:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE * config_file = fopen(config_path, "rb");
data/blastem-0.6.3.3/config.c:193:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "w");
data/blastem-0.6.3.3/config.c:323:30:  [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 lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : DEFAULT_LOWPASS_CUTOFF;
data/blastem-0.6.3.3/controller_info.c:80: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 guid_string[33];
data/blastem-0.6.3.3/controller_info.c:196: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 guid_string[33];
data/blastem-0.6.3.3/controller_info.c:210: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 guid_string[33];
data/blastem-0.6.3.3/debug.c: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 format[8];
data/blastem-0.6.3.3/debug.c:112:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(format, "%s: %d\n");
data/blastem-0.6.3.3/debug.c:182: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 format[8];
data/blastem-0.6.3.3/debug.c:183:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(format, "%s: %d\n");
data/blastem-0.6.3.3/debug.c:375: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 last_cmd[1024];
data/blastem-0.6.3.3/debug.c:376: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 input_buf[1024];
data/blastem-0.6.3.3/debug.c:415: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 format[8];
data/blastem-0.6.3.3/debug.c:473:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						value = atoi(param);
data/blastem-0.6.3.3/debug.c:489: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).
						remove_display(&zdisplays, atoi(param));
data/blastem-0.6.3.3/debug.c:555:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					FILE * f = fopen(param, "wb");
data/blastem-0.6.3.3/debug.c:608:57:  [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).
				bp_def **target = find_breakpoint_idx(&breakpoints, atoi(param));
data/blastem-0.6.3.3/debug.c:613:70:  [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).
				printf("Enter commands for breakpoing %d, type end when done\n", atoi(param));
data/blastem-0.6.3.3/debug.c:614: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 cmd_buf[1024];
data/blastem-0.6.3.3/debug.c:714:13:  [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).
				value = atoi(param);
data/blastem-0.6.3.3/debug.c:897:20:  [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 channel = atoi(input_buf+3)-1;
data/blastem-0.6.3.3/debug.c:957: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 last_cmd[1024];
data/blastem-0.6.3.3/debug.c:958: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 input_buf[1024];
data/blastem-0.6.3.3/dis.c:62: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 key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/dis.c:118: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 key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/dis.c:148: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 disbuf[1024];
data/blastem-0.6.3.3/dis.c:191:19:  [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).
				address_log = fopen(argv[opt], "r");
data/blastem-0.6.3.3/dis.c:221: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(argv[1], "rb");
data/blastem-0.6.3.3/dis.c:226: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 int_key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/dis.c:364: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 key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/dis.c:384: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 keybuf[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/gdb_remote.c:105: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 end[3];
data/blastem-0.6.3.3/gdb_remote.c:184: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 send_buf[512];
data/blastem-0.6.3.3/gdb_remote.c:325: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 tmp[3];
data/blastem-0.6.3.3/gdb_remote.c:379: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(send_buf, "PacketSize=%X", (int)bufsize);
data/blastem-0.6.3.3/genesis.c:814: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 fname[20];
data/blastem-0.6.3.3/genesis.c:815:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						sprintf(fname, "zram-%d", zram_counter++);
data/blastem-0.6.3.3/genesis.c:816:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
						FILE * f = fopen(fname, "wb");
data/blastem-0.6.3.3/genesis.c:1113:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1125:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1234: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(save_filename, "wb");
data/blastem-0.6.3.3/genesis.c:1253: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(save_filename, "rb");
data/blastem-0.6.3.3/genesis.c:1411:36:  [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).
	gen->max_cycles = config_cycles ? atoi(config_cycles) : DEFAULT_SYNC_INTERVAL;
data/blastem-0.6.3.3/genesis.c:1509:56:  [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).
	opts->address_log = (system_opts & OPT_ADDRESS_LOG) ? fopen("address.log", "w") : NULL;
data/blastem-0.6.3.3/genesis.c:1559:18:  [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).
	MCLKS_PER_68K = atoi(m68k_divider);
data/blastem-0.6.3.3/gst.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/blastem-0.6.3.3/gst.c:418:19:  [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 * gstfile = fopen(fname, "rb");
data/blastem-0.6.3.3/gst.c:423: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 ident[5];
data/blastem-0.6.3.3/gst.c:475:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/blastem-0.6.3.3/gst.c:476:19:  [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 * gstfile = fopen(fname, "wb");
data/blastem-0.6.3.3/io.c:348:40:  [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).
						ports[i].device.stream.data_fd = open(pipe_name, O_NONBLOCK | O_RDONLY);
data/blastem-0.6.3.3/io.c:371: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(saddr->sun_path, sock_name, pathlen+1);
data/blastem-0.6.3.3/jagcpu.c:73: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 *dsp_mnemonics[DSP_ADDQMOD+1] = {
data/blastem-0.6.3.3/jagdis.c:61: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 key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/jagdis.c:127: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 disbuf[1024];
data/blastem-0.6.3.3/jagdis.c:179:19:  [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).
				address_log = fopen(argv[opt], "r");
data/blastem-0.6.3.3/jagdis.c:214: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(argv[1], "rb");
data/blastem-0.6.3.3/jagdis.c:219: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 int_key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/jagdis.c:298: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 key[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/jagdis.c:317: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 keybuf[MAX_INT_KEY_SIZE];
data/blastem-0.6.3.3/jaguar.c:191:16:  [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("gpu.bin", "wb");
data/blastem-0.6.3.3/jaguar.c:534: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(filename, "rb");
data/blastem-0.6.3.3/libblastem.c:174: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, tmp, actual_size);
data/blastem-0.6.3.3/libblastem.c:203: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(media.buffer, game->data, game->size);
data/blastem-0.6.3.3/libblastem.c:439: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(ret, rom_db_data, *sizeret + 1);
data/blastem-0.6.3.3/libretro.h:1064:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	retro_vfs_open_t open;
data/blastem-0.6.3.3/m68k_core.c:18: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 disasm_buf[1024];
data/blastem-0.6.3.3/m68k_internal.h:107: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.
extern char disasm_buf[1024];
data/blastem-0.6.3.3/megawifi.c:111: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(mw->receive_buffer + mw->receive_bytes, src, count);
data/blastem-0.6.3.3/megawifi.c:121: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(mw->receive_buffer + mw->receive_bytes, s, len);
data/blastem-0.6.3.3/megawifi.c:220: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(mw->receive_buffer, mw->transmit_buffer, mw->transmit_bytes);
data/blastem-0.6.3.3/menu.c:169: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[4096];
data/blastem-0.6.3.3/menu.c:179: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[4096];
data/blastem-0.6.3.3/menu.c:220: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(cur, slots[i].desc, desc_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:509: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(old_path, "bindings\0keys\0", prefix_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:510: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(old_path + prefix_len, old, suffix_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:519: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(path, "bindings\0keys\0", prefix_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:520: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(path + prefix_len, name, suffix_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:566: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 *button_binds[SDL_CONTROLLER_BUTTON_MAX];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:567: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 *left_stick[NUM_AXIS_DIRS];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:568: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 *right_stick[NUM_AXIS_DIRS];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:569: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 *triggers[2];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:776: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(tmp, key, period-key);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:831: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(full_key, axes_key, axes_key_size);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:832: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(full_key + axes_key_size, prefix, prefix_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:834: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(full_key + axes_key_size + prefix_len + 1, suffix, suffix_len  +1);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:854: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 key_buf[12];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:875: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(pad_key, base_path, sizeof(base_path));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:880: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(dpad_key, pad_key, pad_key_size);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:881: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(dpad_key + pad_key_size, dpad_base, sizeof(dpad_base));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:885: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(button_key, pad_key, pad_key_size);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:886: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(button_key + pad_key_size, button_base, sizeof(button_base));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:908: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(final_key, base, base_key_len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:909: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(final_key + base_key_len, suffix, suffix_len + 1);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:928: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(axes_key, pad_key, pad_key_size);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:929: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(axes_key + pad_key_size, axes_base, sizeof(axes_base));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:938: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(final_key, axes_key, axes_key_size);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:939: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(final_key + axes_key_size, suffix, suffix_len + 1);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:974: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.
	free((char *)options[SIMILAR_CONTROLLERS].title);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1173: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(mapping_string + mapping_pos, name, namesz);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[512];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1336: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[512];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1512:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[12];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1520: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, curstr, len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1537: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, curstr, len);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1551:24:  [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 curval = curstr ? atoi(curstr) : def;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1556: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[12];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1557:3:  [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(buffer, "%d", val);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1571: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[64];
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1572:3:  [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(buffer, "%f", val);
data/blastem-0.6.3.3/nuklear_ui/font.c:37:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/nuklear_ui/font_android.c:25:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/system/etc/fonts.xml", "rb");
data/blastem-0.6.3.3/nuklear_ui/font_android.c:139:20:  [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).
					last_weight = atoi(last_value);
data/blastem-0.6.3.3/nuklear_ui/font_android.c:157:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/nuklear_ui/font_win.c:52: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(pref_prefix, pref_name, prefix_len);
data/blastem-0.6.3.3/nuklear_ui/font_win.c:56: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 windows[MAX_PATH];
data/blastem-0.6.3.3/nuklear_ui/font_win.c:78:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/nuklear_ui/font_win.c:120:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:304:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define NK_STATIC_ASSERT(exp) typedef char NK_UNIQUE_NAME(_dummy_array)[(exp)?1:-1]
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:459: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.
typedef char nk_glyph[NK_UTF_SIZE];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:2537: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.
    unsigned char padding[3];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:3122: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 string[1];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:3189: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 text[NK_INPUT_MAX];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:3964: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 buffer[NK_MAX_NUMBER_BUFFER];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:3978:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_string[NK_WINDOW_MAX_NAME];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:5237: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 number_buffer[NK_MAX_NUMBER_BUFFER];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:5630:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = fopen(path, "rb");
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:10918: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.
    unsigned char buffer[NK_TT_MAX_OVERSAMPLE];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:10982: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.
    unsigned char buffer[NK_TT_MAX_OVERSAMPLE];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:11765: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.
NK_GLOBAL const char nk_proggy_clean_ttf_compressed_data_base85[11980+1] =
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:11856: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.
NK_GLOBAL const char nk_custom_cursor_data[NK_CURSOR_DATA_W * NK_CURSOR_DATA_H + 1] =
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:16098: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 string[NK_MAX_NUMBER_BUFFER];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:16489: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.
NK_GLOBAL const char *nk_color_names[NK_COLOR_COUNT] = {
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:20496:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:20508:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:20519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:20530:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:20572: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 hex[16];
data/blastem-0.6.3.3/nuklear_ui/nuklear.h:21502: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 dummy_buffer[NK_MAX_NUMBER_BUFFER];
data/blastem-0.6.3.3/nuklear_ui/nuklear_rawfb.h:126: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((void *)ptr, c, sizeof(c));
data/blastem-0.6.3.3/nuklear_ui/nuklear_rawfb.h:751: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(rawfb->font_tex.pixels, tex, rawfb->font_tex.pitch * rawfb->font_tex.h);
data/blastem-0.6.3.3/nuklear_ui/nuklear_sdl_gles2.h:321:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str, text, (size_t)len);
data/blastem-0.6.3.3/nuklear_ui/nuklear_sdl_gles2.h:464: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(glyph, evt->text.text, NK_UTF_SIZE);
data/blastem-0.6.3.3/nuklear_ui/sfnt.c:204: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(ret, name_table + full_off, name_length);
data/blastem-0.6.3.3/nuklear_ui/sfnt.c:238: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(ret, start, size);
data/blastem-0.6.3.3/paths.c:11:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(pathfname, "wb");
data/blastem-0.6.3.3/paths.c:66: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(pathfname, "rb");
data/blastem-0.6.3.3/paths.c:122: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(ret, base, len);
data/blastem-0.6.3.3/png.c:353: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(idat_buf, tmp, idat_size);
data/blastem-0.6.3.3/png.c:355: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(idat_buf + idat_size, buffer + cur, chunk_size);
data/blastem-0.6.3.3/realtec.c:51: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(r->rom_space + cur, gen->cart + start/2, 512*1024-start);
data/blastem-0.6.3.3/realtec.c:53: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(r->rom_space + cur + 512*1024-start, gen->cart, size - (512*1024-start));
data/blastem-0.6.3.3/realtec.c:55: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(r->rom_space + cur, gen->cart + start/2, size);
data/blastem-0.6.3.3/realtec.c:89: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(r->rom_space + i, rom + 0x7E000, 8*1024);
data/blastem-0.6.3.3/realtec.c:114: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(info.name, name_start, name_end-name_start);
data/blastem-0.6.3.3/realtec.c:148: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(info.map + 2, base_map, base_chunks * sizeof(memmap_chunk));
data/blastem-0.6.3.3/render_fbdev.c:384: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(shader_path, "rb");
data/blastem-0.6.3.3/render_fbdev.c:922:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *vid_std_names[NUM_VID_STD] = {"ntsc", "pal"};
data/blastem-0.6.3.3/render_fbdev.c:955:30:  [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).
   	sample_rate = rate_str ? atoi(rate_str) : 0;
data/blastem-0.6.3.3/render_fbdev.c:964:36:  [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).
   	buffer_samples = samples_str ? atoi(samples_str) : 0;
data/blastem-0.6.3.3/render_fbdev.c:1269:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fbfd = open("/dev/fb0", O_RDWR);
data/blastem-0.6.3.3/render_fbdev.c:1296:24:  [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).
					overscan_top[i] = atoi(val);
data/blastem-0.6.3.3/render_fbdev.c:1300:24:  [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).
					overscan_bot[i] = atoi(val);
data/blastem-0.6.3.3/render_fbdev.c:1304:25:  [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).
					overscan_left[i] = atoi(val);
data/blastem-0.6.3.3/render_fbdev.c:1308:26:  [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).
					overscan_right[i] = atoi(val);
data/blastem-0.6.3.3/render_fbdev.c:1331:17:  [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).
	max_multiple = atoi(tern_find_path_default(config, "video\0fbdev\0max_multiple\0", def, TVAL_PTR).ptrval);
data/blastem-0.6.3.3/render_fbdev.c:1391:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int fd = open(filename, O_RDONLY);
data/blastem-0.6.3.3/render_fbdev.c:1435:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char name[1024];
data/blastem-0.6.3.3/render_fbdev.c:1488:20:  [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).
		windowed_width = atoi(config_width);
data/blastem-0.6.3.3/render_fbdev.c:1492: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).
		windowed_height = atoi(config_height);
data/blastem-0.6.3.3/render_fbdev.c:1620: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(dst, src, width * sizeof(uint32_t));
data/blastem-0.6.3.3/render_sdl.c:259:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(shader_path, "rb");
data/blastem-0.6.3.3/render_sdl.c:860:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *vid_std_names[NUM_VID_STD] = {"ntsc", "pal"};
data/blastem-0.6.3.3/render_sdl.c:872:27:  [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 rate = rate_str ? atoi(rate_str) : 0;
data/blastem-0.6.3.3/render_sdl.c:880:33:  [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 samples = samples_str ? atoi(samples_str) : 0;
data/blastem-0.6.3.3/render_sdl.c:936:24:  [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).
					overscan_top[i] = atoi(val);
data/blastem-0.6.3.3/render_sdl.c:940:24:  [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).
					overscan_bot[i] = atoi(val);
data/blastem-0.6.3.3/render_sdl.c:944:25:  [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).
					overscan_left[i] = atoi(val);
data/blastem-0.6.3.3/render_sdl.c:948:26:  [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).
					overscan_right[i] = atoi(val);
data/blastem-0.6.3.3/render_sdl.c:1126:20:  [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).
		windowed_width = atoi(config_width);
data/blastem-0.6.3.3/render_sdl.c:1130: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).
		windowed_height = atoi(config_height);
data/blastem-0.6.3.3/render_sdl.c:1368:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		screenshot_file = fopen(screenshot_path, "wb");
data/blastem-0.6.3.3/render_sdl.c:1414: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(cur_dst + dst_off, cur_saved, locked_pitch);
data/blastem-0.6.3.3/render_sdl.c:1416: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(cur_saved, cur_dst + src_off, locked_pitch);
data/blastem-0.6.3.3/romdb.c: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(info->map+9, base_map, sizeof(memmap_chunk) * base_chunks);
data/blastem-0.6.3.3/romdb.c:303: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(info->map+2, base_map, sizeof(memmap_chunk) * base_chunks);
data/blastem-0.6.3.3/romdb.c:317: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(info->save_buffer, rom, init_size);
data/blastem-0.6.3.3/romdb.c:345: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(info->map+2, base_map, sizeof(memmap_chunk) * base_chunks);
data/blastem-0.6.3.3/romdb.c:402: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(info->map+1, base_map, sizeof(memmap_chunk) * base_chunks);
data/blastem-0.6.3.3/romdb.c:440:12:  [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 bit = atoi(key);
data/blastem-0.6.3.3/romdb.c:460:12:  [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 bit = atoi(key);
data/blastem-0.6.3.3/romdb.c:489:28:  [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).
		state->info->save_size = atoi(size);
data/blastem-0.6.3.3/romdb.c:513:28:  [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).
		state->info->save_size = atoi(size);
data/blastem-0.6.3.3/romdb.c:540:28:  [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).
		state->info->save_size = atoi(size);
data/blastem-0.6.3.3/romdb.c:548: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).
		uint32_t save_page_size = atoi(page_size);
data/blastem-0.6.3.3/romdb.c:570: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(state->info->save_buffer, state->rom, init_size);
data/blastem-0.6.3.3/romdb.c:837: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(state->rom + state->rom_size, state->rom, state->rom_size);
data/blastem-0.6.3.3/romdb.c:966: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(info.map + state.index, base_map, sizeof(memmap_chunk) * base_chunks);
data/blastem-0.6.3.3/saves.c:59:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(cur, "EMPTY");
data/blastem-0.6.3.3/serialize.c:59: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(&buf->data[buf->size], val, len);
data/blastem-0.6.3.3/serialize.c:174: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(dst, buf->data + buf->cur_pos, len);
data/blastem-0.6.3.3/serialize.c:228:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "wb");
data/blastem-0.6.3.3/serialize.c:246:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/serialize.c:250: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 ident[sizeof(sz_ident)-1];
data/blastem-0.6.3.3/sms.c:606: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(sms->header.info.map, memory_map, sizeof(memmap_chunk) * sms->header.info.map_chunks);
data/blastem-0.6.3.3/stateview.c:90: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).
	FILE * state_file = fopen(argv[1], "rb");
data/blastem-0.6.3.3/stateview.c:99:11:  [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).
		width = atoi(argv[2]);
data/blastem-0.6.3.3/stateview.c:101:13:  [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).
			height = atoi(argv[3]);
data/blastem-0.6.3.3/stateview.c:107:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		def_width = atoi(config_width);
data/blastem-0.6.3.3/termhelper.c:8: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 buf[4096];
data/blastem-0.6.3.3/termhelper.c:26: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).
	int input_fd = open(INPUT_PATH, O_WRONLY);
data/blastem-0.6.3.3/termhelper.c:27:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int output_fd = open(OUTPUT_PATH, O_RDONLY);
data/blastem-0.6.3.3/terminal.c:60:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				open(INPUT_PATH, O_RDONLY);
data/blastem-0.6.3.3/terminal.c:61:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				open(OUTPUT_PATH, O_WRONLY);
data/blastem-0.6.3.3/tern.c:290: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 key[MAX_ITER_KEY+1];
data/blastem-0.6.3.3/trans.c:51: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 disbuf[1024];
data/blastem-0.6.3.3/trans.c:54: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(argv[1], "rb");
data/blastem-0.6.3.3/util.c:41: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(ret, first, flen);
data/blastem-0.6.3.3/util.c:42: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(ret+flen, second, slen+1);
data/blastem-0.6.3.3/util.c:110: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(varname, base + positions[i].start, positions[i].end-positions[i].start);
data/blastem-0.6.3.3/util.c:128: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(curout, base + cur, (positions[i].start-1) - cur);
data/blastem-0.6.3.3/util.c:331: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(barename, lastslash, lastdot-lastslash);
data/blastem-0.6.3.3/util.c:389: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(dir, path, lastslash-path);
data/blastem-0.6.3.3/util.c:540: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 path[MAX_PATH];
data/blastem-0.6.3.3/util.c:547: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 path[MAX_PATH];
data/blastem-0.6.3.3/util.c:743: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(exe_dir, exe_str, cur-exe_str);
data/blastem-0.6.3.3/util.c:821: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[80];
data/blastem-0.6.3.3/util.c:928:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(path, "rb");
data/blastem-0.6.3.3/util.c:961: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 path[MAX_PATH];
data/blastem-0.6.3.3/vgm.h:6: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     ident[4];
data/blastem-0.6.3.3/vgmplay.c:110:49:  [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).
	uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390;
data/blastem-0.6.3.3/vgmplay.c:118: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(argv[1], "rb");
data/blastem-0.6.3.3/vgmsplit.c:67: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(argv[1], "rb");
data/blastem-0.6.3.3/vgmsplit.c:214: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(out_pos[DAC_CHANNEL], start, cur-start);
data/blastem-0.6.3.3/vgmsplit.c:223: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(out_pos[DAC_CHANNEL], cur-1, 5);
data/blastem-0.6.3.3/vgmsplit.c:256: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 fname[11];
data/blastem-0.6.3.3/vgmsplit.c:258:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(fname, "wb");
data/blastem-0.6.3.3/vos_prog_info.c:7: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(argv[1], "rb");
data/blastem-0.6.3.3/vos_program_module.c:26: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(str, *src, storage);
data/blastem-0.6.3.3/vos_program_module.h:10: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     str[32];
data/blastem-0.6.3.3/vos_program_module.h:26: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     str[32];
data/blastem-0.6.3.3/vos_program_module.h:37: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     str[32];
data/blastem-0.6.3.3/vos_program_module.h:41: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     str[32];
data/blastem-0.6.3.3/vos_program_module.h:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     str[32];
data/blastem-0.6.3.3/vos_program_module.h:49: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     str[65];
data/blastem-0.6.3.3/vos_program_module.h:89: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     str[32];
data/blastem-0.6.3.3/vos_program_module.h:99: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     str[256];
data/blastem-0.6.3.3/vos_program_module.h:105: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     str[32];
data/blastem-0.6.3.3/wave.c:13: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.chunk.id, "RIFF", 4);
data/blastem-0.6.3.3/wave.c:14: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.chunk.format, "WAVE", 4);
data/blastem-0.6.3.3/wave.c:16: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.format_header.id, "fmt ", 4);
data/blastem-0.6.3.3/wave.c:24: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.data_header.id, "data", 4);
data/blastem-0.6.3.3/wave.h:15: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     id[4];
data/blastem-0.6.3.3/wave.h:17: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     format[4];
data/blastem-0.6.3.3/wave.h:21: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     id[4];
data/blastem-0.6.3.3/xband.c:353: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(x->cart_space + i/2, rom, rom_size);
data/blastem-0.6.3.3/xband.c:356: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(x->cart_space + 0x80, ((uint16_t *)lock_on) + 0x80, 0x100);
data/blastem-0.6.3.3/xband.c:423: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(info.map + 5, base_map, base_chunks * sizeof(memmap_chunk));
data/blastem-0.6.3.3/ym2612.c:18:38:  [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 dfopen(var, fname, mode) var=fopen(fname, mode)
data/blastem-0.6.3.3/ym2612.c:181: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 fname[64];
data/blastem-0.6.3.3/ym2612.c:182: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(fname, "ym_channel_%d.wav", i);
data/blastem-0.6.3.3/ym2612.c:183:46:  [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 = context->channels[i].logfile = fopen(fname, "wb");
data/blastem-0.6.3.3/z80_to_x86.c:2821: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 disbuf[80];
data/blastem-0.6.3.3/z80_to_x86.c:2823:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE * f = fopen("zram.bin", "wb");
data/blastem-0.6.3.3/z80_to_x86.c:3078: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 disbuf[80];
data/blastem-0.6.3.3/z80_to_x86.c:3144: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 disbuf[80];
data/blastem-0.6.3.3/z80inst.c:1271: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(decoded, base, offsetof(z80inst, opcode_bytes));
data/blastem-0.6.3.3/z80inst.c:1302: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 *z80_mnemonics[Z80_OTDR+1] = {
data/blastem-0.6.3.3/z80inst.c:1373: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 * z80_regs[Z80_USE_IMMED] = {
data/blastem-0.6.3.3/z80inst.c:1396: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 * z80_conditions[Z80_CC_M+1] = {
data/blastem-0.6.3.3/z80inst.c:1424:12:  [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.
				len += sprintf(dst+len, " $%X", decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1426:12:  [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.
				len += sprintf(dst+len, " %d", decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1430:11:  [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.
			len += sprintf(dst+len, " ($%X)", decoded->immed);
data/blastem-0.6.3.3/z80inst.c:1433:11:  [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.
			len += sprintf(dst+len, " (ix+%d)", decoded->ea_reg & 0x80 ? decoded->ea_reg - 256 : decoded->ea_reg);
data/blastem-0.6.3.3/z80inst.c:1436:11:  [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.
			len += sprintf(dst+len, " (iy+%d)", decoded->ea_reg & 0x80 ? decoded->ea_reg - 256 : decoded->ea_reg);
data/blastem-0.6.3.3/z80inst.c:1454:11:  [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.
			len += sprintf(dst+len, " %d", decoded->immed);
data/blastem-0.6.3.3/zdis.c: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 disbuf[1024];
data/blastem-0.6.3.3/zdis.c:72: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(argv[1], "rb");
data/blastem-0.6.3.3/zdis.c:101:19:  [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).
				address_log = fopen(argv[opt], "r");
data/blastem-0.6.3.3/zip.c:11: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 cdfd_magic[4] = {'P', 'K', 1, 2};
data/blastem-0.6.3.3/zip.c:12: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 eocd_magic[4] = {'P', 'K', 5, 6};
data/blastem-0.6.3.3/zip.c:24:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "rb");
data/blastem-0.6.3.3/zip.c:89: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(cur_entry->name, buf + off + MIN_CDFD_SIZE, name_length);
data/blastem-0.6.3.3/zlib/crc32.c:143: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).
        out = fopen("crc32.h", "w");
data/blastem-0.6.3.3/zlib/gzguts.h:47:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define open _open
data/blastem-0.6.3.3/zlib/gzlib.c:36:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024];
data/blastem-0.6.3.3/zlib/gzlib.c:65:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "unknown win32 error (%ld)", error);
data/blastem-0.6.3.3/zlib/gzlib.c:245:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open((const char *)path, oflag, 0666));
data/blastem-0.6.3.3/zlib/gzlib.c:298:5:  [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(path, "<fd:%d>", fd);   /* for debugging */
data/blastem-0.6.3.3/zlib/gzlib.c:615:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(state->msg, ": ");
data/blastem-0.6.3.3/zlib/gzread.c:161: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(state->x.next, strm->next_in, strm->avail_in);
data/blastem-0.6.3.3/zlib/gzread.c:325: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(buf, state->x.next, n);
data/blastem-0.6.3.3/zlib/gzread.c:451: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.
    unsigned char buf[1];
data/blastem-0.6.3.3/zlib/gzread.c:591: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(buf, state->x.next, n);
data/blastem-0.6.3.3/zlib/gzwrite.c:213: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(state->in + have, buf, copy);
data/blastem-0.6.3.3/zlib/gzwrite.c:309: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.
    unsigned char buf[1];
data/blastem-0.6.3.3/zlib/gzwrite.c:444: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(state->in, state->in + state->size, left);
data/blastem-0.6.3.3/zlib/gzwrite.c:543: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(state->in, state->in + state->size, left);
data/blastem-0.6.3.3/zlib/inflate.c:640: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.
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
data/blastem-0.6.3.3/zlib/inflate.c:1405: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.
    unsigned char buf[4];       /* to restore bit buffer to byte string */
data/blastem-0.6.3.3/zlib/trees.c:328: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).
    FILE *header = fopen("trees.h", "w");
data/blastem-0.6.3.3/zlib/zutil.c:13: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.
z_const char * const z_errmsg[10] = {
data/blastem-0.6.3.3/zlib/zutil.h:49:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
data/blastem-0.6.3.3/zlib/zutil.h:109:6:  [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).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/blastem-0.6.3.3/zlib/zutil.h:202:30:  [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 F_OPEN(name, mode) fopen((name), (mode))
data/blastem-0.6.3.3/zlib/zutil.h:226:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define zmemcpy memcpy
data/blastem-0.6.3.3/ztestgen.c:23: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.
extern char *z80_mnemonics[Z80_OTDR+1];
data/blastem-0.6.3.3/ztestgen.c:24: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.
extern char * z80_regs[Z80_USE_IMMED];
data/blastem-0.6.3.3/ztestgen.c:302: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 disbuf[80];
data/blastem-0.6.3.3/ztestgen.c:305: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 pathbuf[128];
data/blastem-0.6.3.3/ztestgen.c:356: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(cur, instbuf, 2);
data/blastem-0.6.3.3/ztestgen.c:359: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(cur, instbuf, instlen);
data/blastem-0.6.3.3/ztestgen.c:460: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).
	FILE * progfile = fopen(pathbuf, "wb");
data/blastem-0.6.3.3/ztestrun.c:85: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(fname, "rb");
data/blastem-0.6.3.3/68kinst.c:2479:4:  [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(dst, " ");
data/blastem-0.6.3.3/68kinst.c:2535: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).
		ret = strlen(mnemonics[decoded->op]) - 2;
data/blastem-0.6.3.3/68kinst.c:2539: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).
		ret = strlen(dst);
data/blastem-0.6.3.3/bindings.c:568:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int gpadslen = strlen("gamepads.");
data/blastem-0.6.3.3/bindings.c:569:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int mouselen = strlen("mouse.");
data/blastem-0.6.3.3/bindings.c:618:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			*subtype_b = atoi(target + 3 + strlen("set_speed."));
data/blastem-0.6.3.3/bindings.c:667: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).
		len = strlen(prefix);
data/blastem-0.6.3.3/bindings.c:707: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).
		len = strlen(prefix);
data/blastem-0.6.3.3/blastcpm.c:45:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return getchar();
data/blastem-0.6.3.3/blastem.c:64:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define romgetc fgetc
data/blastem-0.6.3.3/blastem.c:95:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read;
data/blastem-0.6.3.3/blastem.c:103:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read > 0) {
data/blastem-0.6.3.3/blastem.c:104:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			dst = process_smd_block(dst, block, read);
data/blastem-0.6.3.3/blastem.c:105:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			readsize += read;
data/blastem-0.6.3.3/blastem.c:107:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while(read > 0);
data/blastem-0.6.3.3/blastem.c:207:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read;
data/blastem-0.6.3.3/blastem.c:210:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read > 0) {
data/blastem-0.6.3.3/blastem.c:211:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			readsize += read;
data/blastem-0.6.3.3/blastem.c:223:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/blastem-0.6.3.3/config.c:50:13:  [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 len = strlen(curline);
data/blastem-0.6.3.3/config.c:118: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).
	uint32_t keylen = strlen(key);
data/blastem-0.6.3.3/config.c:121:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		vallen = strlen(val.ptrval);
data/blastem-0.6.3.3/debug.c:1002: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).
				commands += strlen(cmd) + 1;
data/blastem-0.6.3.3/dis.c:135:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	text = ret + strlen(ret) - 1;
data/blastem-0.6.3.3/gdb_remote.c:19:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define GDB_READ read
data/blastem-0.6.3.3/gdb_remote.c:107: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).
	write_or_die(GDB_OUT_FD, command, strlen(command));
data/blastem-0.6.3.3/gdb_remote.c:378:39:  [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("Supported", command+1, strlen("Supported"))) {
data/blastem-0.6.3.3/gdb_remote.c:381: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).
		} else if (!memcmp("Attached", command+1, strlen("Attached"))) {
data/blastem-0.6.3.3/gdb_remote.c:385:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!memcmp("Offsets", command+1, strlen("Offsets"))) {
data/blastem-0.6.3.3/gdb_remote.c:388:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!memcmp("Symbol", command+1, strlen("Symbol"))) {
data/blastem-0.6.3.3/gdb_remote.c:390:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!memcmp("TStatus", command+1, strlen("TStatus"))) {
data/blastem-0.6.3.3/gdb_remote.c:393:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!memcmp("TfV", command+1, strlen("TfV")) || !memcmp("TfP", command+1, strlen("TfP"))) {
data/blastem-0.6.3.3/gdb_remote.c:393:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!memcmp("TfV", command+1, strlen("TfV")) || !memcmp("TfP", command+1, strlen("TfP"))) {
data/blastem-0.6.3.3/gdb_remote.c:409:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!memcmp("Cont?", command+1, strlen("Cont?"))) {
data/blastem-0.6.3.3/gdb_remote.c:413: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).
		} else if (!memcmp("Cont;", command+1, strlen("Cont;"))) {
data/blastem-0.6.3.3/gdb_remote.c:414:28:  [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).
			switch (*(command + 1 + strlen("Cont;")))
data/blastem-0.6.3.3/genesis.c:1113:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1113:41:  [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).
			strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1125: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).
		strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1125:40:  [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).
		strcpy(statepath + strlen(statepath)-strlen("state"), "gst");
data/blastem-0.6.3.3/genesis.c:1257:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read > 0) {
data/blastem-0.6.3.3/io.c:221: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).
	const int gamepad_len = strlen("gamepad");
data/blastem-0.6.3.3/io.c:241:47:  [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).
			port->device.mouse.mouse_num = device_type[strlen("mouse")+1] - '0';
data/blastem-0.6.3.3/io.c:367: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).
				size_t pathlen = strlen(sock_name);
data/blastem-0.6.3.3/io.c:483:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int numRead = read(port->device.stream.data_fd, &value, sizeof(value));
data/blastem-0.6.3.3/jagdis.c:114:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	text = ret + strlen(ret) - 1;
data/blastem-0.6.3.3/libblastem.c:437:14:  [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).
		*sizeret = strlen(rom_db_data);
data/blastem-0.6.3.3/libretro.h:1069:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	retro_vfs_read_t read;
data/blastem-0.6.3.3/megawifi.c:117: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).
	uint32_t len = strlen(s);
data/blastem-0.6.3.3/menu.c:215:24:  [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 desc_len = strlen(slots[i].desc) + 1;//+1 for string terminator
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:504: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).
				uint32_t prefix_len = strlen("bindings") + strlen("keys") + 2;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:504:48:  [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).
				uint32_t prefix_len = strlen("bindings") + strlen("keys") + 2;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:507:28:  [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).
					uint32_t suffix_len = strlen(old) + 1;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:517: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).
				uint32_t suffix_len = strlen(name) + 1;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:728:73:  [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).
		float lb_width = font->width(font->userdata, font->height, labels[i], strlen(labels[i]));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:828:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t prefix_len = strlen(prefix), suffix_len = strlen(suffix);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:828:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t prefix_len = strlen(prefix), suffix_len = strlen(suffix);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:873:44:  [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 pad_key_size = sizeof(base_path) + strlen(key) + 1;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:906:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t suffix_len = strlen(suffix);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:936:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t suffix_len = strlen(suffix);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1017:79:  [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 MIN_BIND_BOX_WIDTH = font->width(font->userdata, font->height, "Right", strlen("Right"))
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1018:82:  [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).
			+ def_font->handle.width(font->userdata, font->height, "Internal Screenshot", strlen("Internal Screenshot"));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1172: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).
	size_t namesz = strlen(name);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1309: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).
	size_t namesz = strlen(name);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1414:78:  [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 bindings_width = font->width(font->userdata, font->height, "Bindings", strlen("Bindings")) + context->style.button.padding.x * 2;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1415:72:  [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 remap_width = font->width(font->userdata, font->height, "Remap", strlen("Remap")) + context->style.button.padding.x * 2;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1416:84:  [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 change_type_width = font->width(font->userdata, font->height, "Change Type", strlen("Change Type")) + context->style.button.padding.x * 2;
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1446:80:  [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 button_width = font->width(font->userdata, font->height, "Configure", strlen("Configure"));
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1516: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).
	uint32_t len = strlen(curstr);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1534: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).
	uint32_t len = strlen(curstr);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1594: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).
		uint32_t len = strlen(no_ext);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1620: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).
		uint32_t len = strlen(no_ext);
data/blastem-0.6.3.3/nuklear_ui/blastem_nuklear.c:1726:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			uint32_t len = strlen(prog_names[i]);
data/blastem-0.6.3.3/nuklear_ui/font.c:17:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		total += read;
data/blastem-0.6.3.3/nuklear_ui/font.c:25:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	total += read;
data/blastem-0.6.3.3/paths.c:13:32:  [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 (fwrite(*current_path, 1, strlen(*current_path), f) != strlen(*current_path)) {
data/blastem-0.6.3.3/paths.c:13:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (fwrite(*current_path, 1, strlen(*current_path), f) != strlen(*current_path)) {
data/blastem-0.6.3.3/paths.c:113: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).
		size_t len = strlen(base);
data/blastem-0.6.3.3/paths.c:135:24:  [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 (is_path_sep(base[strlen(base) - 1])) {
data/blastem-0.6.3.3/render_fbdev.c:408:32:  [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(text, "#version", strlen("#version"))) {
data/blastem-0.6.3.3/render_fbdev.c:412:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		fsize += strlen(shader_prefix);
data/blastem-0.6.3.3/render_fbdev.c:908:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bytes = read(device_fds[i], events, sizeof(events));
data/blastem-0.6.3.3/render_fbdev.c:1389:40:  [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("event", entry->d_name, strlen("event"))) {
data/blastem-0.6.3.3/render_sdl.c:285:32:  [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(text, "#version", strlen("#version"))) {
data/blastem-0.6.3.3/render_sdl.c:289:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		fsize += strlen(shader_prefix);
data/blastem-0.6.3.3/render_sdl.c:1476: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).
					fps_caption = malloc(strlen(caption) + strlen(" - 100000000.1 fps") + 1);
data/blastem-0.6.3.3/render_sdl.c:1476: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).
					fps_caption = malloc(strlen(caption) + strlen(" - 100000000.1 fps") + 1);
data/blastem-0.6.3.3/romdb.c:298:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if(!memcmp("SEGA MEGAWIFI", rom + 0x100, strlen("SEGA MEGAWIFI"))) {
data/blastem-0.6.3.3/saves.c:21: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).
		size_t name_len = strlen("slot_N.") + strlen(ext) + 1;
data/blastem-0.6.3.3/saves.c:21:41:  [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 name_len = strlen("slot_N.") + strlen(ext) + 1;
data/blastem-0.6.3.3/saves.c:25: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).
		size_t name_len = strlen("quicksave.") + strlen(ext) + 1;
data/blastem-0.6.3.3/saves.c:25:44:  [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 name_len = strlen("quicksave.") + strlen(ext) + 1;
data/blastem-0.6.3.3/serialize.c:52:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(val);
data/blastem-0.6.3.3/system.c:8:13:  [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).
	long len = strlen(str);
data/blastem-0.6.3.3/termhelper.c:12:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t bytes = read(from, buf, sizeof(buf));
data/blastem-0.6.3.3/tern.c:183:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		key = key + strlen(key) + 1;
data/blastem-0.6.3.3/tern.c:219:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *next_key = key + strlen(key) + 1;
data/blastem-0.6.3.3/tern.c:231:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *next_key = key + strlen(key) + 1;
data/blastem-0.6.3.3/util.c:38:13:  [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 flen = strlen(first);
data/blastem-0.6.3.3/util.c:39:13:  [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 slen = strlen(second);
data/blastem-0.6.3.3/util.c:50:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		total += strlen(parts[i]);
data/blastem-0.6.3.3/util.c:97:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		positions[num_vars].end = strlen(base);
data/blastem-0.6.3.3/util.c:117: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).
			total_len += strlen(positions[i].value);
data/blastem-0.6.3.3/util.c:120:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	total_len += strlen(base+cur);
data/blastem-0.6.3.3/util.c:133:14:  [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).
			curout += strlen(curout);
data/blastem-0.6.3.3/util.c:170:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	text = ret + strlen(ret) - 1;
data/blastem-0.6.3.3/util.c:194: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).
	return !strncmp(haystack, prefix, strlen(prefix));
data/blastem-0.6.3.3/util.c:418: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).
		int32_t size = strlen(format) * 2;
data/blastem-0.6.3.3/util.c:454: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).
		int32_t size = strlen(format) * 2;
data/blastem-0.6.3.3/util.c:492: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).
		int32_t size = strlen(format) * 2;
data/blastem-0.6.3.3/util.c:551: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).
	int pathsize = strlen(path);
data/blastem-0.6.3.3/util.c:723: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).
		int linksize = strlen(linktext);
data/blastem-0.6.3.3/util.c:738:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int pathsize = strlen(exe_str);
data/blastem-0.6.3.3/z80_to_x86.c:157:81:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void translate_z80_ea(z80inst * inst, host_ea * ea, z80_options * opts, uint8_t read, uint8_t modify)
data/blastem-0.6.3.3/z80_to_x86.c:163:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	areg = read ? opts->gen.scratch1 : opts->gen.scratch2;
data/blastem-0.6.3.3/z80_to_x86.c:197:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read) {
data/blastem-0.6.3.3/z80_to_x86.c:217:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read) {
data/blastem-0.6.3.3/z80_to_x86.c:234:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read) {
data/blastem-0.6.3.3/zlib/gzguts.h:48:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read _read
data/blastem-0.6.3.3/zlib/gzlib.c:199:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen((const char *)path);
data/blastem-0.6.3.3/zlib/gzlib.c:605:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) ==
data/blastem-0.6.3.3/zlib/gzlib.c:605:60:  [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 ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) ==
data/blastem-0.6.3.3/zlib/gzlib.c:611:32:  [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).
    (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
data/blastem-0.6.3.3/zlib/gzlib.c:611:54:  [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).
    (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
data/blastem-0.6.3.3/zlib/gzread.c:35:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(state->fd, buf + *have, get);
data/blastem-0.6.3.3/zlib/gzwrite.c:370:11:  [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/blastem-0.6.3.3/zlib/gzwrite.c:426:11:  [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(next);
data/blastem-0.6.3.3/zlib/gzwrite.c:524:11:  [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(next);
data/blastem-0.6.3.3/ztestgen.c:459: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).
	sprintf(pathbuf + strlen(pathbuf), "/%s.bin", disbuf);

ANALYSIS SUMMARY:

Hits = 873
Lines analyzed = 93667 in approximately 2.59 seconds (36162 lines/second)
Physical Source Lines of Code (SLOC) = 76210
Hits@level = [0] 352 [1] 129 [2] 355 [3]   5 [4] 383 [5]   1
Hits@level+ = [0+] 1225 [1+] 873 [2+] 744 [3+] 389 [4+] 384 [5+]   1
Hits/KSLOC@level+ = [0+] 16.074 [1+] 11.4552 [2+] 9.7625 [3+] 5.10432 [4+] 5.03871 [5+] 0.0131216
Symlinks skipped = 3 (--allowlink overrides but see doc for security issue)
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.