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/termdebug-2.2+dfsg/src/common.c
Examining data/termdebug-2.2+dfsg/src/common.h
Examining data/termdebug-2.2+dfsg/src/compare.c
Examining data/termdebug-2.2+dfsg/src/curses_handling.c
Examining data/termdebug-2.2+dfsg/src/curses_handling.h
Examining data/termdebug-2.2+dfsg/src/input.c
Examining data/termdebug-2.2+dfsg/src/input.h
Examining data/termdebug-2.2+dfsg/src/input_lex.c
Examining data/termdebug-2.2+dfsg/src/optionMacros.h
Examining data/termdebug-2.2+dfsg/src/picture_queue.c
Examining data/termdebug-2.2+dfsg/src/picture_queue.h
Examining data/termdebug-2.2+dfsg/src/record.c
Examining data/termdebug-2.2+dfsg/src/replay.c
Examining data/termdebug-2.2+dfsg/src/replay.h
Examining data/termdebug-2.2+dfsg/src/rerecord.c
Examining data/termdebug-2.2+dfsg/src/view.c
Examining data/termdebug-2.2+dfsg/src/window.c
Examining data/termdebug-2.2+dfsg/src/window.h
Examining data/termdebug-2.2+dfsg/src/write_image.c
Examining data/termdebug-2.2+dfsg/src/write_stringlist.c
Examining data/termdebug-2.2+dfsg/src/write_stringlist.h

FINAL RESULTS:

data/termdebug-2.2+dfsg/src/common.c:56: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, fmt, args);
data/termdebug-2.2+dfsg/src/common.c:516:2:  [4] (shell) execvp:
  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.
	execvp(argv[0], argv);
data/termdebug-2.2+dfsg/src/common.c:734: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(result, s);
data/termdebug-2.2+dfsg/src/common.h:40:56:  [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.
void fatal(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/termdebug-2.2+dfsg/src/compare.c:227:4:  [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(output_name_buffer, sizeof(output_name_buffer), picture_series, step_count);
data/termdebug-2.2+dfsg/src/record.c:157:3:  [4] (shell) execvp:
  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.
		execvp(argv[prog_start_index], argv + prog_start_index);
data/termdebug-2.2+dfsg/src/replay.c:277: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.
		ignore_result(system(alert));
data/termdebug-2.2+dfsg/src/replay.c:287:3:  [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(log_file, reason, args);
data/termdebug-2.2+dfsg/src/replay.c:313:4:  [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, reason, args);
data/termdebug-2.2+dfsg/src/replay.c:330: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.
		ignore_result(system(alert));
data/termdebug-2.2+dfsg/src/replay.c:688:3:  [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(output_name_buffer, sizeof(output_name_buffer), picture_series, step_count++);
data/termdebug-2.2+dfsg/src/replay.c:772: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.
			ignore_result(system(alert));
data/termdebug-2.2+dfsg/src/common.c:461:21:  [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.
	const char *term = getenv("TERM");
data/termdebug-2.2+dfsg/src/record.c:87:22:  [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.
	const char *value = getenv(var);
data/termdebug-2.2+dfsg/src/common.c:107: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 ctrl[2] = { '^', 0 };
data/termdebug-2.2+dfsg/src/common.c:157: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 nameBuffer[1024];
data/termdebug-2.2+dfsg/src/common.c:181: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).
	if ((retval = fopen(*name, "w")) == NULL)
data/termdebug-2.2+dfsg/src/common.c:292: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 buffer[1024];
data/termdebug-2.2+dfsg/src/common.c:607:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*master = open("/dev/ptmx", O_RDWR | O_NOCTTY);
data/termdebug-2.2+dfsg/src/common.c:615: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).
		(*slave = open(slave_name, O_RDWR | O_NOCTTY)) == -1)
data/termdebug-2.2+dfsg/src/compare.c:226: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 output_name_buffer[1024];
data/termdebug-2.2+dfsg/src/input.c:455: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).
		LLretval->un.number = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:532:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		LLretval->un.size.columns = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.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).
		LLretval->un.size.rows = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:568: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).
			LLretval->un.size.delay = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:599:35:  [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).
				LLretval->un.size.min_delay = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:710: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).
			(*next)->delay = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:732: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).
				(*next)->min_delay = atoi(yytext);
data/termdebug-2.2+dfsg/src/input.c:768: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).
		LLretval->un.number = atoi(yytext);
data/termdebug-2.2+dfsg/src/input_lex.c:1863: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).
	if ((yyin = fopen(new_file_name, "r")) == NULL)
data/termdebug-2.2+dfsg/src/replay.c:364: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[BUFFER_SIZE];
data/termdebug-2.2+dfsg/src/replay.c:384: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/termdebug-2.2+dfsg/src/replay.c:386: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.
		result = sprintf(buffer, "\x1b[8;%d;%dt", size->un.size.rows, size->un.size.columns);
data/termdebug-2.2+dfsg/src/replay.c:459:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFFER_SIZE];
data/termdebug-2.2+dfsg/src/replay.c:575: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[BUFFER_SIZE];
data/termdebug-2.2+dfsg/src/replay.c:687: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 output_name_buffer[1024];
data/termdebug-2.2+dfsg/src/replay.c:847: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).
		if ((log_file = fopen(log_name, "w")) == NULL)
data/termdebug-2.2+dfsg/src/rerecord.c:100: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/termdebug-2.2+dfsg/src/rerecord.c:103: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.
		result = sprintf(buffer, "\x1b[8;%d;%dt", size->un.size.rows, size->un.size.columns);
data/termdebug-2.2+dfsg/src/view.c:114: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/termdebug-2.2+dfsg/src/view.c:117: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.
		result = sprintf(buffer, "\x1b[8;%d;%dt", size->un.size.rows, size->un.size.columns);
data/termdebug-2.2+dfsg/src/window.c:170: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(retval->lines[i].data, win->lines[i].data, win->lines[i].length);
data/termdebug-2.2+dfsg/src/window.c:248: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.
		static const char *cursor_state_strings[3] = {
data/termdebug-2.2+dfsg/src/window.c:694: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 new_block_size_str[6];
data/termdebug-2.2+dfsg/src/window.c:758: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(win->lines[win->paint_y].data + i + block_size + block_size_bytes, str, n);
data/termdebug-2.2+dfsg/src/window.c:765: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(win->lines[win->paint_y].data + i, new_block_size_str, new_block_size_bytes);
data/termdebug-2.2+dfsg/src/window.c:815: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 default_attr_str[8];
data/termdebug-2.2+dfsg/src/window.c:825: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(win->lines[win->paint_y].data + win->lines[win->paint_y].length, default_attr_str, default_attr_size);
data/termdebug-2.2+dfsg/src/window.c:829: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(win->lines[win->paint_y].data + win->lines[win->paint_y].length, blocks, n);
data/termdebug-2.2+dfsg/src/window.c:837: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 start_space_str[8], end_space_str[8];
data/termdebug-2.2+dfsg/src/window.c:905: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(win->lines[win->paint_y].data + i, start_space_str, start_space_bytes);
data/termdebug-2.2+dfsg/src/window.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(win->lines[win->paint_y].data + i, blocks, n);
data/termdebug-2.2+dfsg/src/window.c:912: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(win->lines[win->paint_y].data + i, end_space_str, end_space_bytes);
data/termdebug-2.2+dfsg/src/window.c:923: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 extra_space_str[8];
data/termdebug-2.2+dfsg/src/window.c:951: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 block[1 + 6 + UTF8_MAX_BYTES];
data/termdebug-2.2+dfsg/src/window.c:973: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(block + 1 + block_bytes, str, bytes_read);
data/termdebug-2.2+dfsg/src/window.c:998: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 space_str[8];
data/termdebug-2.2+dfsg/src/window.c:1019: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 space_str[8];
data/termdebug-2.2+dfsg/src/window.c:1069: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 space_str[8];
data/termdebug-2.2+dfsg/src/window.c:1097: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 space_str[8];
data/termdebug-2.2+dfsg/src/write_stringlist.c:378: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 output[1024], *output_ptr;
data/termdebug-2.2+dfsg/src/write_stringlist.c:488:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(win->output_buffer.data + win->output_buffer.length, data, length);
data/termdebug-2.2+dfsg/src/common.c:90:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t result = read(fd, buffer, todo);
data/termdebug-2.2+dfsg/src/common.c:180:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	oldUmask = umask((mode_t) 0077);
data/termdebug-2.2+dfsg/src/common.c:183:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(oldUmask);
data/termdebug-2.2+dfsg/src/common.c:313:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((result = read(from, buffer, sizeof(buffer))) > 0) {
data/termdebug-2.2+dfsg/src/common.c:731: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).
	char *result = malloc(strlen(s) + 1);
data/termdebug-2.2+dfsg/src/input.c:209: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).
	if ((size = strlen(retval)) > 0)
data/termdebug-2.2+dfsg/src/input.c:223: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).
	size_t maxReadPosition = strlen(string);
data/termdebug-2.2+dfsg/src/input_lex.c:639:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/termdebug-2.2+dfsg/src/input_lex.c:1607: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/termdebug-2.2+dfsg/src/optionMacros.h:126: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).
					optlength = strlen(optcurrent); \
data/termdebug-2.2+dfsg/src/optionMacros.h:214:121:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define OPTION(shortName, longName, argReq) if ((opttype == SHORT && optcurrent[1] == shortName) || (opttype == LONG && strlen(longName) == optlength - 2 && strncmp(optcurrent + 2, longName, optlength - 2) == 0)) { CHECK_ARG(argReq) {
data/termdebug-2.2+dfsg/src/optionMacros.h:221:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LONG_OPTION(longName, argReq) if (opttype == LONG && strlen(longName) == optlength - 2 && strncmp(optcurrent + 2, longName, optlength - 2) == 0) { CHECK_ARG(argReq) {
data/termdebug-2.2+dfsg/src/record.c:90: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).
		write_escaped_string(output_file, value, strlen(value));
data/termdebug-2.2+dfsg/src/record.c:143:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		write_escaped_string(output_file, argv[i], strlen(argv[i]));
data/termdebug-2.2+dfsg/src/rerecord.c:206:53:  [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_escaped_string(output_file, ptr->string, strlen(ptr->string));
data/termdebug-2.2+dfsg/src/rerecord.c:236:70:  [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_escaped_string(output_file, script->un.args->next->string, strlen(script->un.args->next->string));
data/termdebug-2.2+dfsg/src/write_image.c:188:55:  [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).
							pango_layout_set_text(layout, acs_map[k].utf8, strlen(acs_map[k].utf8));
data/termdebug-2.2+dfsg/src/write_image.c:190:55:  [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).
								pango_layout_set_text(layout, acs_map[k].alt, strlen(acs_map[k].alt));
data/termdebug-2.2+dfsg/src/write_stringlist.c:184: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).
				(ti_len = strlen(terminfo_mappings[i].str + 1)) <= (size_t) len &&

ANALYSIS SUMMARY:

Hits = 81
Lines analyzed = 8417 in approximately 0.24 seconds (35177 lines/second)
Physical Source Lines of Code (SLOC) = 6169
Hits@level = [0] 106 [1]  19 [2]  48 [3]   2 [4]  12 [5]   0
Hits@level+ = [0+] 187 [1+]  81 [2+]  62 [3+]  14 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 30.3129 [1+] 13.1302 [2+] 10.0503 [3+] 2.26941 [4+] 1.94521 [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.