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/selint-1.1.0/src/lex.c
Examining data/selint-1.1.0/src/color.c
Examining data/selint-1.1.0/src/string_list.c
Examining data/selint-1.1.0/src/startup.c
Examining data/selint-1.1.0/src/runner.c
Examining data/selint-1.1.0/src/te_checks.c
Examining data/selint-1.1.0/src/ordering.h
Examining data/selint-1.1.0/src/parse_fc.h
Examining data/selint-1.1.0/src/file_list.h
Examining data/selint-1.1.0/src/check_hooks.h
Examining data/selint-1.1.0/src/fc_checks.h
Examining data/selint-1.1.0/src/color.h
Examining data/selint-1.1.0/src/perm_macro.h
Examining data/selint-1.1.0/src/selint_config.h
Examining data/selint-1.1.0/src/runner.h
Examining data/selint-1.1.0/src/parse_fc.c
Examining data/selint-1.1.0/src/string_list.h
Examining data/selint-1.1.0/src/te_checks.h
Examining data/selint-1.1.0/src/ordering.c
Examining data/selint-1.1.0/src/check_hooks.c
Examining data/selint-1.1.0/src/selint_error.h
Examining data/selint-1.1.0/src/template.c
Examining data/selint-1.1.0/src/perm_macro.c
Examining data/selint-1.1.0/src/template.h
Examining data/selint-1.1.0/src/util.c
Examining data/selint-1.1.0/src/fc_checks.c
Examining data/selint-1.1.0/src/if_checks.h
Examining data/selint-1.1.0/src/if_checks.c
Examining data/selint-1.1.0/src/parse.c
Examining data/selint-1.1.0/src/parse.h
Examining data/selint-1.1.0/src/file_list.c
Examining data/selint-1.1.0/src/selint_config.c
Examining data/selint-1.1.0/src/maps.c
Examining data/selint-1.1.0/src/startup.h
Examining data/selint-1.1.0/src/main.c
Examining data/selint-1.1.0/src/util.h
Examining data/selint-1.1.0/src/maps.h
Examining data/selint-1.1.0/src/parse_functions.c
Examining data/selint-1.1.0/src/parse_functions.h
Examining data/selint-1.1.0/src/tree.c
Examining data/selint-1.1.0/src/tree.h
Examining data/selint-1.1.0/tests/check_perm_macro.c
Examining data/selint-1.1.0/tests/check_te_checks.c
Examining data/selint-1.1.0/tests/check_runner.c
Examining data/selint-1.1.0/tests/check_check_hooks.c
Examining data/selint-1.1.0/tests/check_startup.c
Examining data/selint-1.1.0/tests/test_utils.c
Examining data/selint-1.1.0/tests/check_if_checks.c
Examining data/selint-1.1.0/tests/check_tree.c
Examining data/selint-1.1.0/tests/test_utils.h
Examining data/selint-1.1.0/tests/check_file_list.c
Examining data/selint-1.1.0/tests/check_fc_checks.c
Examining data/selint-1.1.0/tests/check_selint_config.c
Examining data/selint-1.1.0/tests/check_parse_fc.c
Examining data/selint-1.1.0/tests/check_parsing.c
Examining data/selint-1.1.0/tests/check_parse_functions.c
Examining data/selint-1.1.0/tests/check_ordering.c
Examining data/selint-1.1.0/tests/check_string_list.c
Examining data/selint-1.1.0/tests/check_maps.c
Examining data/selint-1.1.0/tests/check_template.c

FINAL RESULTS:

data/selint-1.1.0/src/check_hooks.h:170:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/selint-1.1.0/src/main.c:308:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (0 != access(config_filename, R_OK)) {
data/selint-1.1.0/src/parse.c:1264:21:  [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 YYFPRINTF fprintf
data/selint-1.1.0/src/parse.c:2225:4:  [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((yyval.string), (yyvsp[0].string));
data/selint-1.1.0/src/parse_fc.c:63: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(line, orig_line);
data/selint-1.1.0/src/parse_fc.c:129: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(out->context->range, maybe_s);
data/selint-1.1.0/src/parse_fc.c:131:4:  [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(out->context->range, maybe_c);
data/selint-1.1.0/src/perm_macro.c:496:23:  [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.
	size_t len = (size_t)snprintf(NULL, 0, MSG_STR, best_name, perms_matched, perms_added);
data/selint-1.1.0/src/perm_macro.c:498:2:  [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(ret, len + 1, MSG_STR, best_name, perms_matched, perms_added);
data/selint-1.1.0/src/template.c:47: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(ret_pos, orig_pos);
data/selint-1.1.0/src/template.c:67: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(ret_pos, cur->string);
data/selint-1.1.0/src/util.c:35:2:  [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.
	vprintf(format, args);
data/selint-1.1.0/src/util.h:40:23:  [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.
__attribute__((format(printf,1,2)))
data/selint-1.1.0/src/main.c:144:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c = getopt_long(argc,
data/selint-1.1.0/src/check_hooks.c:154: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 check_id = atoi(check_str+2);
data/selint-1.1.0/src/check_hooks.c:191: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 node1_id = atoi(node1->check_id + 2);
data/selint-1.1.0/src/check_hooks.c:192: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 node2_id = atoi(node2->check_id + 2);
data/selint-1.1.0/src/parse.c:1510: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/selint-1.1.0/src/parse.c:1798: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 yymsgbuf[128];
data/selint-1.1.0/src/parse_fc.c:233: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 *fd = fopen(filename, "r");
data/selint-1.1.0/src/perm_macro.c:228: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(sb->mem + sb->len, str, len);
data/selint-1.1.0/src/runner.c:41: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, "r");
data/selint-1.1.0/src/startup.c:29: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 *paths[2] = { av_path, NULL };
data/selint-1.1.0/src/startup.c:91: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 *fd = fopen(modules_conf_path, "r");
data/selint-1.1.0/src/startup.c:140: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(obj_perm_sets_path, "r");
data/selint-1.1.0/src/startup.c:190: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 *paths[2] = {header_loc, 0};
data/selint-1.1.0/tests/check_parsing.c:39: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(BASIC_TE_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:104: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(BASIC_IF_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:183: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(UNCOMMON_TE_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:200: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(BLOCKS_TE_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:237: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(EMPTY_TE_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:257: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(SYNTAX_ERROR_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:271: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(BAD_RA_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:285: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(DISABLE_COMMENT_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:311: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(BOOL_DECLARATION_FILENAME, "r");
data/selint-1.1.0/tests/check_parsing.c:434: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(BASIC_TE_FILENAME, "r");
data/selint-1.1.0/tests/check_template.c:174: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(NESTED_IF_FILENAME, "r");
data/selint-1.1.0/tests/check_template.c:208:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f_if = fopen(DECLARING_IF_FILENAME, "r");
data/selint-1.1.0/tests/check_template.c:216:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f_te = fopen(DECLARING_TE_FILENAME, "r");
data/selint-1.1.0/src/check_hooks.c:96: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).
	const size_t len = strlen(data->filename);
data/selint-1.1.0/src/fc_checks.c:51:33:  [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).
		    ends_with(data->filename, strlen(data->filename), ".mod.fc", strlen(".mod.fc"))) {
data/selint-1.1.0/src/fc_checks.c:51:68:  [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).
		    ends_with(data->filename, strlen(data->filename), ".mod.fc", strlen(".mod.fc"))) {
data/selint-1.1.0/src/if_checks.c:270: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).
	    ends_with(cur->data.str, strlen(cur->data.str), "_stub", strlen("_stub"))) {
data/selint-1.1.0/src/if_checks.c:270:63:  [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).
	    ends_with(cur->data.str, strlen(cur->data.str), "_stub", strlen("_stub"))) {
data/selint-1.1.0/src/lex.c:924: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/selint-1.1.0/src/lex.c:1522: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).
    const size_t len = strlen("Invalid character: ") + 1 /*character*/ + 2 /*quotes*/ + 1 /*null*/;
data/selint-1.1.0/src/lex.c:2262:37:  [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, (int) strlen(yystr) );
data/selint-1.1.0/src/maps.c:50: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).
		HASH_FIND(hh_type, type_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:53: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).
		HASH_FIND(hh_role, role_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:56: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).
		HASH_FIND(hh_user, user_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:59: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).
		HASH_FIND(hh_attr_type, attr_type_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:62: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).
		HASH_FIND(hh_attr_role, attr_role_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:65: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).
		HASH_FIND(hh_bool, bool_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:68: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).
		HASH_FIND(hh_class, class_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:71: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).
		HASH_FIND(hh_perm, perm_map, name, strlen(name), decl);
data/selint-1.1.0/src/maps.c:98: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:102: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:106: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:110: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:114: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:122: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:126: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).
			                strlen(decl->key), decl);
data/selint-1.1.0/src/maps.c:157: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).
	HASH_FIND(hh_mods, mods_map, mod_name, strlen(mod_name), mod);
data/selint-1.1.0/src/maps.c:163: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).
		HASH_ADD_KEYPTR(hh_mods, mods_map, mod->key, strlen(mod->key),
data/selint-1.1.0/src/maps.c:176: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).
	HASH_FIND(hh_mods, mods_map, mod_name, strlen(mod_name), mod);
data/selint-1.1.0/src/maps.c:192: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).
	HASH_FIND(hh_mod_layers, mod_layers_map, mod_name, strlen(mod_name), mod);
data/selint-1.1.0/src/maps.c:198: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).
		HASH_ADD_KEYPTR(hh_mod_layers, mod_layers_map, mod->key, strlen(mod->key),
data/selint-1.1.0/src/maps.c:211: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).
	HASH_FIND(hh_mod_layers, mod_layers_map, mod_name, strlen(mod_name), mod);
data/selint-1.1.0/src/maps.c:228: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).
	HASH_FIND(hh_ifs, ifs_map, if_name, strlen(if_name), if_call);
data/selint-1.1.0/src/maps.c:235: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).
		                strlen(if_call->key), if_call);
data/selint-1.1.0/src/maps.c:247: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).
	HASH_FIND(hh_ifs, ifs_map, if_name, strlen(if_name), if_call);
data/selint-1.1.0/src/maps.c:287: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).
	HASH_FIND(hh_transform, transform_map, if_name, strlen(if_name), transform_if);
data/selint-1.1.0/src/maps.c:294: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).
		                strlen(transform_if->key), transform_if);
data/selint-1.1.0/src/maps.c:306: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).
	HASH_FIND(hh_transform, transform_map, if_name, strlen(if_name), transform_if);
data/selint-1.1.0/src/maps.c:321: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).
	HASH_FIND(hh_filetrans, filetrans_map, if_name, strlen(if_name), filetrans_if);
data/selint-1.1.0/src/maps.c:328: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).
		                strlen(filetrans_if->key), filetrans_if);
data/selint-1.1.0/src/maps.c:340: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).
	HASH_FIND(hh_filetrans, filetrans_map, if_name, strlen(if_name), filetrans_if);
data/selint-1.1.0/src/maps.c:355: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).
	HASH_FIND(hh_role_if, role_if_map, if_name, strlen(if_name), role_if);
data/selint-1.1.0/src/maps.c:362: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).
		                strlen(role_if->key), role_if);
data/selint-1.1.0/src/maps.c:374: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).
	HASH_FIND(hh_role_if, role_if_map, if_name, strlen(if_name), role_if);
data/selint-1.1.0/src/maps.c:424: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).
	HASH_FIND(hh, template_map, name, strlen(name), template);
data/selint-1.1.0/src/maps.c:433: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).
		                strlen(template->name), template);
data/selint-1.1.0/src/maps.c:482: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).
	HASH_FIND(hh, template_map, name, strlen(name), template);
data/selint-1.1.0/src/maps.c:517:49:  [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).
	HASH_FIND(hh_permmacros, permmacros_map, name, strlen(name), perm_macro);
data/selint-1.1.0/src/maps.c:523:67:  [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).
		HASH_ADD_KEYPTR(hh_permmacros, permmacros_map, perm_macro->key, strlen(perm_macro->key),
data/selint-1.1.0/src/maps.c:536:49:  [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).
	HASH_FIND(hh_permmacros, permmacros_map, name, strlen(name), perm_macro);
data/selint-1.1.0/src/ordering.c:477: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 first_length = strlen(first_section_name);
data/selint-1.1.0/src/ordering.c:478:25:  [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 second_length = strlen(second_section_name);
data/selint-1.1.0/src/ordering.c:772: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).
	size_t str_len = strlen(reason_str) +
data/selint-1.1.0/src/ordering.c:773: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).
	                 strlen(before_after) +
data/selint-1.1.0/src/ordering.c:774: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).
	                 strlen("Line out of order.  It is of type ") +
data/selint-1.1.0/src/ordering.c:775: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).
	                 strlen(lss_to_string(get_local_subsection(order_data->mod_name, this_node))) + 1 +
data/selint-1.1.0/src/ordering.c:776: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).
	                 strlen(" line ") +
data/selint-1.1.0/src/ordering.c:782: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).
		str_len += strlen(followup_str);
data/selint-1.1.0/src/ordering.c:800:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ret, followup_str, str_len - (size_t)written);
data/selint-1.1.0/src/parse.c:1410: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).
#   define yystrlen strlen
data/selint-1.1.0/src/parse.c:2222: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).
    { (yyval.string) = malloc(sizeof(char) * (strlen((yyvsp[0].string)) + 2));
data/selint-1.1.0/src/parse.c:2582:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    { size_t len = strlen((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* DASH */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2582:49:  [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((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* DASH */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2591:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    { size_t len = strlen((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* COLON */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2591:49:  [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((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* COLON */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2606:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    { size_t len = strlen((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* PERIOD */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2606:49:  [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((yyvsp[-2].string)) + strlen((yyvsp[0].string)) + 1 /* PERIOD */ + 1 /* NT */;
data/selint-1.1.0/src/parse.c:2788: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 (ends_with((yyvsp[-6].string), strlen((yyvsp[-6].string)), "_perms", strlen("_perms"))) {
data/selint-1.1.0/src/parse.c:2788:76:  [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 (ends_with((yyvsp[-6].string), strlen((yyvsp[-6].string)), "_perms", strlen("_perms"))) {
data/selint-1.1.0/src/parse_fc.c:128: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).
				malloc(strlen(maybe_s) + 1 + strlen(maybe_c) + 1);
data/selint-1.1.0/src/parse_fc.c:128:34:  [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).
				malloc(strlen(maybe_s) + 1 + strlen(maybe_c) + 1);
data/selint-1.1.0/src/parse_fc.c:130: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(out->context->range, ":");
data/selint-1.1.0/src/parse_fc.c:215:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t line_len = strlen(line);
data/selint-1.1.0/src/parse_fc.c:217: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).
		size_t custom_fc_len = strlen(custom_fc_macros->string);
data/selint-1.1.0/src/parse_functions.c:647:10:  [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).
	comm += strlen("selint-");
data/selint-1.1.0/src/parse_functions.c:649: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).
		cur->exceptions = strdup(comm + strlen("disable:"));
data/selint-1.1.0/src/perm_macro.c:235: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).
	sb_append_strn(sb, str, strlen(str));
data/selint-1.1.0/src/perm_macro.c:333: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).
	if (ends_with(name, strlen(name), "_dir_perms", strlen("_dir_perms"))) {
data/selint-1.1.0/src/perm_macro.c:333: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).
	if (ends_with(name, strlen(name), "_dir_perms", strlen("_dir_perms"))) {
data/selint-1.1.0/src/perm_macro.c:335: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).
	} else if (ends_with(name, strlen(name), "_lnk_file_perms", strlen("_lnk_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:335: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).
	} else if (ends_with(name, strlen(name), "_lnk_file_perms", strlen("_lnk_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:337: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).
	} else if (ends_with(name, strlen(name), "_chr_file_perms", strlen("_chr_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:337: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).
	} else if (ends_with(name, strlen(name), "_chr_file_perms", strlen("_chr_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:339: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).
	} else if (ends_with(name, strlen(name), "_term_perms", strlen("_term_perms"))) {
data/selint-1.1.0/src/perm_macro.c:339:58:  [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 (ends_with(name, strlen(name), "_term_perms", strlen("_term_perms"))) {
data/selint-1.1.0/src/perm_macro.c:341: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).
	} else if (ends_with(name, strlen(name), "_blk_file_perms", strlen("_blk_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:341: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).
	} else if (ends_with(name, strlen(name), "_blk_file_perms", strlen("_blk_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:343: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).
	} else if (ends_with(name, strlen(name), "_sock_file_perms", strlen("_sock_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:343:63:  [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 (ends_with(name, strlen(name), "_sock_file_perms", strlen("_sock_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:345: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).
	} else if (ends_with(name, strlen(name), "_fifo_file_perms", strlen("_fifo_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:345:63:  [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 (ends_with(name, strlen(name), "_fifo_file_perms", strlen("_fifo_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:347: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).
	} else if (ends_with(name, strlen(name), "_file_perms", strlen("_file_perms"))) {
data/selint-1.1.0/src/perm_macro.c:347:58:  [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 (ends_with(name, strlen(name), "_file_perms", strlen("_file_perms"))) {
data/selint-1.1.0/src/runner.c:37: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).
	mod_name[strlen(mod_name) - 3] = '\0'; // Remove suffix
data/selint-1.1.0/src/te_checks.c:174:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (str_len < (suffix_len + strlen("_perms"))) {
data/selint-1.1.0/src/te_checks.c:180: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).
	return (0 == strncmp(str + str_len - (suffix_len + strlen("_perms")), suffix, suffix_len));
data/selint-1.1.0/src/te_checks.c:200: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).
	const size_t class_name_len = strlen(class_name);
data/selint-1.1.0/src/te_checks.c:204:58:  [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).
	    ends_with(class_name, class_name_len, "_class_set", strlen("_class_set"))) {
data/selint-1.1.0/src/te_checks.c:215: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).
	const size_t class_alias_len = class_alias ? strlen(class_alias) : 0;
data/selint-1.1.0/src/te_checks.c:217:77:  [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 bool is_netlink_socket_class = (0 == strncmp(class_name, "netlink_", strlen("netlink_")));
data/selint-1.1.0/src/te_checks.c:218: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).
	const bool is_socket_class = ends_with(class_name, class_name_len, "_socket", strlen("_socket"));
data/selint-1.1.0/src/te_checks.c:221: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).
		const size_t perm_len = strlen(perms->string);
data/selint-1.1.0/src/te_checks.c:224: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).
		if (!ends_with(perms->string, perm_len, "_perms", strlen("_perms"))) {
data/selint-1.1.0/src/te_checks.c:234: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).
					if (ends_with_suffix_perms(perms->string, perm_len, file_suffix_classes[i], strlen(file_suffix_classes[i]))) {
data/selint-1.1.0/src/te_checks.c:244:59:  [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).
		    ends_with(perms->string, perm_len, "_socket_perms", strlen("_socket_perms"))) {
data/selint-1.1.0/src/te_checks.c:251:59:  [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).
		    ends_with(perms->string, perm_len, "_socket_perms", strlen("_socket_perms")) &&
data/selint-1.1.0/src/te_checks.c:252:67:  [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).
		    !ends_with(perms->string, perm_len, "netlink_socket_perms", strlen("netlink_socket_perms"))) {
data/selint-1.1.0/src/te_checks.c:282: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).
	    ends_with(class->string, strlen(class->string), "_class_set", strlen("_class_set"))) {
data/selint-1.1.0/src/te_checks.c:282:68:  [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).
	    ends_with(class->string, strlen(class->string), "_class_set", strlen("_class_set"))) {
data/selint-1.1.0/src/te_checks.c:520: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 mod_name_len = strlen(mod_name);
data/selint-1.1.0/src/te_checks.c:522:25:  [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 file_name_len = strlen(file_name);
data/selint-1.1.0/src/te_checks.c:526: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).
		file_name_len -= strlen(file_name_ext);
data/selint-1.1.0/src/te_checks.c:625: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).
		if (!ends_with(cur->string, strlen(cur->string), "_perms", strlen("_perms"))) {
data/selint-1.1.0/src/te_checks.c:625: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).
		if (!ends_with(cur->string, strlen(cur->string), "_perms", strlen("_perms"))) {
data/selint-1.1.0/src/te_checks.c:630: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).
		if (0 == strncmp(cur->string, "all_", strlen("all_"))) {
data/selint-1.1.0/src/template.c:28:25:  [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_to_malloc = strlen(orig) + 1;
data/selint-1.1.0/src/template.c:32: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).
		len_to_malloc += strlen(cur->string);
data/selint-1.1.0/src/template.c:50:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ret_pos, orig_pos, (size_t)(dollar_pos - orig_pos));
data/selint-1.1.0/src/template.c:68: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).
			ret_pos += strlen(cur->string);
data/selint-1.1.0/src/tree.c:290: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).
			memmove(cur->string, cur->string + 1, strlen(cur->string));
data/selint-1.1.0/tests/check_maps.c:219:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	test_permmacro_map_count += strlen(key);
data/selint-1.1.0/tests/check_maps.c:220:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	test_permmacro_map_count += strlen(val->string);
data/selint-1.1.0/tests/check_maps.c:246: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).
	ck_assert_uint_eq(2 * strlen("test") + strlen("standard") + strlen("hello"), test_permmacro_map_count);
data/selint-1.1.0/tests/check_maps.c:246: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).
	ck_assert_uint_eq(2 * strlen("test") + strlen("standard") + strlen("hello"), test_permmacro_map_count);
data/selint-1.1.0/tests/check_maps.c:246: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).
	ck_assert_uint_eq(2 * strlen("test") + strlen("standard") + strlen("hello"), test_permmacro_map_count);

ANALYSIS SUMMARY:

Hits = 162
Lines analyzed = 20074 in approximately 0.62 seconds (32317 lines/second)
Physical Source Lines of Code (SLOC) = 14001
Hits@level = [0]  37 [1] 123 [2]  25 [3]   1 [4]  13 [5]   0
Hits@level+ = [0+] 199 [1+] 162 [2+]  39 [3+]  14 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 14.2133 [1+] 11.5706 [2+] 2.78552 [3+] 0.999929 [4+] 0.928505 [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.