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/acme-0.97~svn20201116+ds/contrib/toacme/src/f8ab.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/pet2iso.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/acme.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/main.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/ab3.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/mnemo.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/platform.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/ab.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/version.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/mnemo.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/scr2iso.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/acme.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/config.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/gighyp.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/obj.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/gighyp.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/io.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/scr2iso.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/prof.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/hypra.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/pet2iso.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/version.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/giga.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/ab.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/platform.h
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/io.c
Examining data/acme-0.97~svn20201116+ds/contrib/toacme/src/vis.c
Examining data/acme-0.97~svn20201116+ds/src/input.h
Examining data/acme-0.97~svn20201116+ds/src/cliargs.h
Examining data/acme-0.97~svn20201116+ds/src/encoding.c
Examining data/acme-0.97~svn20201116+ds/src/dynabuf.h
Examining data/acme-0.97~svn20201116+ds/src/tree.c
Examining data/acme-0.97~svn20201116+ds/src/acme.h
Examining data/acme-0.97~svn20201116+ds/src/_riscos.c
Examining data/acme-0.97~svn20201116+ds/src/output.h
Examining data/acme-0.97~svn20201116+ds/src/encoding.h
Examining data/acme-0.97~svn20201116+ds/src/dynabuf.c
Examining data/acme-0.97~svn20201116+ds/src/mnemo.c
Examining data/acme-0.97~svn20201116+ds/src/alu.c
Examining data/acme-0.97~svn20201116+ds/src/tree.h
Examining data/acme-0.97~svn20201116+ds/src/cpu.h
Examining data/acme-0.97~svn20201116+ds/src/pseudoopcodes.h
Examining data/acme-0.97~svn20201116+ds/src/platform.c
Examining data/acme-0.97~svn20201116+ds/src/_dos.h
Examining data/acme-0.97~svn20201116+ds/src/_riscos.h
Examining data/acme-0.97~svn20201116+ds/src/mnemo.h
Examining data/acme-0.97~svn20201116+ds/src/acme.c
Examining data/acme-0.97~svn20201116+ds/src/config.h
Examining data/acme-0.97~svn20201116+ds/src/macro.c
Examining data/acme-0.97~svn20201116+ds/src/flow.h
Examining data/acme-0.97~svn20201116+ds/src/symbol.h
Examining data/acme-0.97~svn20201116+ds/src/_std.c
Examining data/acme-0.97~svn20201116+ds/src/_amiga.h
Examining data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c
Examining data/acme-0.97~svn20201116+ds/src/flow.c
Examining data/acme-0.97~svn20201116+ds/src/section.h
Examining data/acme-0.97~svn20201116+ds/src/input.c
Examining data/acme-0.97~svn20201116+ds/src/typesystem.c
Examining data/acme-0.97~svn20201116+ds/src/version.h
Examining data/acme-0.97~svn20201116+ds/src/output.c
Examining data/acme-0.97~svn20201116+ds/src/global.h
Examining data/acme-0.97~svn20201116+ds/src/section.c
Examining data/acme-0.97~svn20201116+ds/src/typesystem.h
Examining data/acme-0.97~svn20201116+ds/src/cliargs.c
Examining data/acme-0.97~svn20201116+ds/src/macro.h
Examining data/acme-0.97~svn20201116+ds/src/platform.h
Examining data/acme-0.97~svn20201116+ds/src/cpu.c
Examining data/acme-0.97~svn20201116+ds/src/_std.h
Examining data/acme-0.97~svn20201116+ds/src/_dos.c
Examining data/acme-0.97~svn20201116+ds/src/alu.h
Examining data/acme-0.97~svn20201116+ds/src/global.c
Examining data/acme-0.97~svn20201116+ds/src/symbol.c

FINAL RESULTS:

data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:870: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(filename, GLOBALDYNABUF_CURRENT);
data/acme-0.97~svn20201116+ds/src/_dos.c:24:12:  [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.
	env_var = getenv("ACME");
data/acme-0.97~svn20201116+ds/src/_std.c:24:12:  [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.
	env_var = getenv("ACME");
data/acme-0.97~svn20201116+ds/contrib/toacme/src/main.c:59:24:  [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).
	global_input_stream = fopen(argv[2], "rb");
data/acme-0.97~svn20201116+ds/contrib/toacme/src/main.c:65:25:  [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).
	global_output_stream = fopen(argv[3], "w");
data/acme-0.97~svn20201116+ds/contrib/toacme/src/pet2iso.c:13: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.
const char	PET2ISO_table[256] = {
data/acme-0.97~svn20201116+ds/contrib/toacme/src/pet2iso.h:14: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.
extern const char	PET2ISO_table[256];	// conversion table
data/acme-0.97~svn20201116+ds/contrib/toacme/src/scr2iso.c:13: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.
const char	SCR2ISO_table[256] = {
data/acme-0.97~svn20201116+ds/contrib/toacme/src/scr2iso.h:13: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.
extern const char	SCR2ISO_table[256];	// Conversion table
data/acme-0.97~svn20201116+ds/src/acme.c:172: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).
	report->fd = fopen(filename, FILE_WRITETEXT);
data/acme-0.97~svn20201116+ds/src/acme.c:198: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).
		fd = fopen(symbollist_filename, FILE_WRITETEXT);	// FIXME - what if filename is given via !sl in sub-dir? fix path!
data/acme-0.97~svn20201116+ds/src/acme.c:209: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).
		fd = fopen(vicelabels_filename, FILE_WRITETEXT);
data/acme-0.97~svn20201116+ds/src/acme.c:233:7:  [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(output_filename, FILE_WRITEBINARY);	// FIXME - what if filename is given via !to in sub-dir? fix path!
data/acme-0.97~svn20201116+ds/src/acme.c:265: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).
		if ((fd = fopen(toplevel_sources[ii], FILE_READBINARY))) {
data/acme-0.97~svn20201116+ds/src/alu.c:435: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(arg_stack[arg_sp].u.string->payload, GLOBALDYNABUF_CURRENT, GlobalDynaBuf->size);	// copy payload
data/acme-0.97~svn20201116+ds/src/alu.c:2256: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(self->u.string->payload, arthur->payload, arthur->length);
data/acme-0.97~svn20201116+ds/src/alu.c:2257: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(self->u.string->payload + arthur->length, ford->payload, ford->length);
data/acme-0.97~svn20201116+ds/src/alu.c:2311: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[NUMBUFSIZE];
data/acme-0.97~svn20201116+ds/src/alu.c:2319: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, "%ld (0x%lx)", (long) self->u.number.val.intval, (long) self->u.number.val.intval);
data/acme-0.97~svn20201116+ds/src/alu.c:2326: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, "%.30g", self->u.number.val.fpval);
data/acme-0.97~svn20201116+ds/src/config.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	payload[1];	// real structs are malloc'd to correct size
data/acme-0.97~svn20201116+ds/src/dynabuf.c:87: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(copy, db->buffer, db->size);
data/acme-0.97~svn20201116+ds/src/encoding.c:26:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char	outermost_table[256];	// space for encoding table...
data/acme-0.97~svn20201116+ds/src/encoding.c:112: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.
void encoding_load_from_file(unsigned char target[256], FILE *stream)
data/acme-0.97~svn20201116+ds/src/encoding.h:29:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void encoding_load_from_file(unsigned char target[256], FILE *stream);
data/acme-0.97~svn20201116+ds/src/global.c:65: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.
const char	global_byte_flags[256]	= {
data/acme-0.97~svn20201116+ds/src/global.h:102: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		asc_buf[REPORT_ASCBUFSIZE];	// source bytes
data/acme-0.97~svn20201116+ds/src/global.h:103: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		bin_buf[REPORT_BINBUFSIZE];	// output bytes
data/acme-0.97~svn20201116+ds/src/input.c:63: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		hex_address[HEXBUFSIZE];
data/acme-0.97~svn20201116+ds/src/input.c:64: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		hexdump[2 * REPORT_BINBUFSIZE + 2];	// +2 for '.' and terminator
data/acme-0.97~svn20201116+ds/src/input.c:83:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(hex_address, "%04x", report->bin_address);
data/acme-0.97~svn20201116+ds/src/input.c:91: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(hexdump + 2 * ii, "%02x", (unsigned int) (unsigned char) (report->bin_buf[ii]));
data/acme-0.97~svn20201116+ds/src/input.c:94: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(hexdump + 2 * (REPORT_BINBUFSIZE - 1), "...");
data/acme-0.97~svn20201116+ds/src/input.c:355:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	buf[80];	// actually needed are 51
data/acme-0.97~svn20201116+ds/src/input.c:359: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(buf, "Garbage data at end of statement (unexpected %c%c%c).", quote, GotByte, quote);
data/acme-0.97~svn20201116+ds/src/input.c:713:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	stream = fopen(GLOBALDYNABUF_CURRENT, FILE_READBINARY);
data/acme-0.97~svn20201116+ds/src/input.c:730: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).
			stream = fopen(pathbuf->buffer, FILE_READBINARY);
data/acme-0.97~svn20201116+ds/src/macro.c:113: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(copy, original, size);
data/acme-0.97~svn20201116+ds/src/mnemo.c:787: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[60];	// 640K should be enough for anybody
data/acme-0.97~svn20201116+ds/src/mnemo.c:789: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(buffer, "Target not in bank (0x%lx).", (long) target);
data/acme-0.97~svn20201116+ds/src/mnemo.c:813: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[60];	// 640K should be enough for anybody
data/acme-0.97~svn20201116+ds/src/mnemo.c:815: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(buffer, "Target out of range (%ld; %ld too far).", (long) offset, (long) (offset < -128 ? -128 - offset : offset - 127));
data/acme-0.97~svn20201116+ds/src/mnemo.c:1119: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[100];	// 640K should be enough for anybody
data/acme-0.97~svn20201116+ds/src/mnemo.c:1121: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(buffer, "The chosen CPU uses opcode 0x%02x as a prefix code, do not use this mnemonic!", opcode);
data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:314:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		local_table[256],
data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:330: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(buffered_table, local_table, 256);
data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:340:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		local_table[256],
data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:865: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	filename[GlobalDynaBuf->size];	// GCC can do this
data/acme-0.97~svn20201116+ds/contrib/toacme/src/io.c:38:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		w = getc(global_input_stream);
data/acme-0.97~svn20201116+ds/src/dynabuf.c:118:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	char	*read,
data/acme-0.97~svn20201116+ds/src/global.c:474:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	char		*read;
data/acme-0.97~svn20201116+ds/src/input.c:123:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:136:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:186:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:212:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:229:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:241:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/input.c:310:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		from_file = getc(Input_now->src.fd);
data/acme-0.97~svn20201116+ds/src/macro.c:111: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).
	size = strlen(original) + 1;
data/acme-0.97~svn20201116+ds/src/pseudoopcodes.c:504:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			byte = getc(stream);
data/acme-0.97~svn20201116+ds/src/tree.c:20:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	register const char	*read;

ANALYSIS SUMMARY:

Hits = 61
Lines analyzed = 14501 in approximately 0.35 seconds (41985 lines/second)
Physical Source Lines of Code (SLOC) = 9681
Hits@level = [0]  59 [1]  13 [2]  45 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+] 120 [1+]  61 [2+]  48 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 12.3954 [1+] 6.301 [2+] 4.95817 [3+] 0.309885 [4+] 0.103295 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.