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/libtraceevent-1.1.0/event-parse-api.c
Examining data/libtraceevent-1.1.0/event-parse-local.h
Examining data/libtraceevent-1.1.0/event-parse.c
Examining data/libtraceevent-1.1.0/event-parse.h
Examining data/libtraceevent-1.1.0/event-plugin.c
Examining data/libtraceevent-1.1.0/event-utils.h
Examining data/libtraceevent-1.1.0/include/asm/bug.h
Examining data/libtraceevent-1.1.0/include/linux/compiler-gcc.h
Examining data/libtraceevent-1.1.0/include/linux/compiler.h
Examining data/libtraceevent-1.1.0/include/linux/time64.h
Examining data/libtraceevent-1.1.0/kbuffer-parse.c
Examining data/libtraceevent-1.1.0/kbuffer.h
Examining data/libtraceevent-1.1.0/parse-filter.c
Examining data/libtraceevent-1.1.0/parse-utils.c
Examining data/libtraceevent-1.1.0/plugins/plugin_cfg80211.c
Examining data/libtraceevent-1.1.0/plugins/plugin_function.c
Examining data/libtraceevent-1.1.0/plugins/plugin_futex.c
Examining data/libtraceevent-1.1.0/plugins/plugin_hrtimer.c
Examining data/libtraceevent-1.1.0/plugins/plugin_jbd2.c
Examining data/libtraceevent-1.1.0/plugins/plugin_kmem.c
Examining data/libtraceevent-1.1.0/plugins/plugin_kvm.c
Examining data/libtraceevent-1.1.0/plugins/plugin_mac80211.c
Examining data/libtraceevent-1.1.0/plugins/plugin_sched_switch.c
Examining data/libtraceevent-1.1.0/plugins/plugin_scsi.c
Examining data/libtraceevent-1.1.0/plugins/plugin_tlb.c
Examining data/libtraceevent-1.1.0/plugins/plugin_xen.c
Examining data/libtraceevent-1.1.0/tep_strerror.c
Examining data/libtraceevent-1.1.0/trace-seq.c
Examining data/libtraceevent-1.1.0/trace-seq.h

FINAL RESULTS:

data/libtraceevent-1.1.0/event-parse.c:51:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			warning("[%s:%s] " fmt, event->system,	\
data/libtraceevent-1.1.0/event-parse.c:994: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(newtok, buf);
data/libtraceevent-1.1.0/event-parse.c:996:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(newtok, buf);
data/libtraceevent-1.1.0/event-parse.c:1435:2:  [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(new_buf, delim);
data/libtraceevent-1.1.0/event-parse.c:1436:2:  [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(new_buf, str);
data/libtraceevent-1.1.0/event-parse.c:3634:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    (!sys || strcmp(tep->last_event->system, sys) == 0))
data/libtraceevent-1.1.0/event-parse.c:3642:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			if (strcmp(event->system, sys) == 0)
data/libtraceevent-1.1.0/event-parse.c:6271:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	res = strcmp((*ea)->system, (*eb)->system);
data/libtraceevent-1.1.0/event-parse.c:6271:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	res = strcmp((*ea)->system, (*eb)->system);
data/libtraceevent-1.1.0/event-parse.c:6284:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	res = strcmp((*ea)->system, (*eb)->system);
data/libtraceevent-1.1.0/event-parse.c:6284:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	res = strcmp((*ea)->system, (*eb)->system);
data/libtraceevent-1.1.0/event-parse.c:6711:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (sys_name && (strcmp(sys_name, event->system) != 0))
data/libtraceevent-1.1.0/event-parse.c:6741:21:  [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.
		event->id, event->system, event->name);
data/libtraceevent-1.1.0/event-parse.c:6803:14:  [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.
	if (!event->system) {
data/libtraceevent-1.1.0/event-parse.c:6869:14:  [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.
	free(event->system);
data/libtraceevent-1.1.0/event-parse.c:7311:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (sys_name && (strcmp(sys_name, event->system) != 0))
data/libtraceevent-1.1.0/event-parse.c:7356:21:  [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.
		event->id, event->system, event->name);
data/libtraceevent-1.1.0/event-parse.c:7442:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			event->id, event->system, event->name);
data/libtraceevent-1.1.0/event-parse.c:7522:14:  [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.
	free(event->system);
data/libtraceevent-1.1.0/event-parse.h:276:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	char			*system;
data/libtraceevent-1.1.0/event-parse.h:461:26:  [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, 4, 5)));
data/libtraceevent-1.1.0/include/asm/bug.h:8:36:  [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 __WARN_printf(arg...)	do { fprintf(stderr, arg); } while (0)
data/libtraceevent-1.1.0/include/linux/compiler-gcc.h:51:46:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define __printf(a, b)	__attribute__((format(printf, a, b)))
data/libtraceevent-1.1.0/include/linux/compiler-gcc.h:52:45:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define __scanf(a, b)	__attribute__((format(scanf, a, b)))
data/libtraceevent-1.1.0/parse-filter.c:46: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(error_buf, input);
data/libtraceevent-1.1.0/parse-filter.c:56:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(error_buf + len, TEP_FILTER_ERROR_BUFSZ - len, fmt, ap);
data/libtraceevent-1.1.0/parse-filter.c:250:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		return !regexec(sreg, event->system, 0, NULL, 0) &&
data/libtraceevent-1.1.0/parse-filter.c:254:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return !regexec(ereg, event->system, 0, NULL, 0) ||
data/libtraceevent-1.1.0/parse-filter.c:1465:28:  [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.
	sys = filter_type->event->system;
data/libtraceevent-1.1.0/parse-utils.c:21: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, ap);
data/libtraceevent-1.1.0/parse-utils.c:46: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(fmt, ap);
data/libtraceevent-1.1.0/plugins/plugin_kvm.c:367: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.
		unsigned access:3;
data/libtraceevent-1.1.0/plugins/plugin_kvm.c:403:22:  [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.
				 access_str[role.access],
data/libtraceevent-1.1.0/trace-seq.c:125:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(s->buffer + s->len, len, fmt, ap);
data/libtraceevent-1.1.0/trace-seq.c:165:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(s->buffer + s->len, len, fmt, args);
data/libtraceevent-1.1.0/trace-seq.h:43:26:  [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, 2, 3)));
data/libtraceevent-1.1.0/trace-seq.h:45:26:  [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, 2, 0)));
data/libtraceevent-1.1.0/event-plugin.c:605:11:  [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.
	envdir = getenv("TRACEEVENT_PLUGIN_DIR");
data/libtraceevent-1.1.0/event-plugin.c:613:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	home = getenv("HOME");
data/libtraceevent-1.1.0/event-parse.c:1006: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 buf[BUFSIZ];
data/libtraceevent-1.1.0/event-parse.c:2260: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(ref, type, len);
data/libtraceevent-1.1.0/event-parse.c:2513:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[24];
data/libtraceevent-1.1.0/event-parse.c:2523: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, "%lld", val);
data/libtraceevent-1.1.0/event-parse.c:3466: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(&val, (ptr), sizeof(unsigned long long));
data/libtraceevent-1.1.0/event-parse.c:3946: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 buf[3];
data/libtraceevent-1.1.0/event-parse.c:3977: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(str + i, buf, 2);
data/libtraceevent-1.1.0/event-parse.c:4067: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(str, data + field->offset, len);
data/libtraceevent-1.1.0/event-parse.c:4684: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 zerolength[8];
data/libtraceevent-1.1.0/event-parse.c:4693: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(&in6, addr, sizeof(struct in6_addr));
data/libtraceevent-1.1.0/event-parse.c:5475: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 print_format[32];
data/libtraceevent-1.1.0/event-parse.c:5538: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(print_format, start, len);
data/libtraceevent-1.1.0/event-parse.c:5567: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(print_format, start, len);
data/libtraceevent-1.1.0/event-parse.c:5605: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(print_format, start, len);
data/libtraceevent-1.1.0/event-parse.c:6072:10:  [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).
		prec = atoi(format + 1);
data/libtraceevent-1.1.0/event-parse.c:6075:9:  [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).
		div = atoi(divstr + 1);
data/libtraceevent-1.1.0/event-parse.c:6097:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[32];
data/libtraceevent-1.1.0/event-parse.c:6173: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(type->format, format, i < 32 ? i : 31);
data/libtraceevent-1.1.0/event-parse.c:6306: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(events, tep->events, sizeof(*events) * tep->nr_events);
data/libtraceevent-1.1.0/event-parse.c:6609:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*offset = atoi(token);
data/libtraceevent-1.1.0/event-parse.c:6619:10:  [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).
	*size = atoi(token);
data/libtraceevent-1.1.0/event-parse.c:7145: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 tmp[128];
data/libtraceevent-1.1.0/event-parse.c:7158: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(tmp, "0x%08llx", val);
data/libtraceevent-1.1.0/event-parse.h:424: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(&val, str, 4);
data/libtraceevent-1.1.0/event-parse.h:721: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			error_buffer[TEP_FILTER_ERROR_BUFSZ];
data/libtraceevent-1.1.0/include/linux/compiler.h:183:27:  [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.
	union { typeof(x) __val; char __c[1]; } __u =	\
data/libtraceevent-1.1.0/include/linux/compiler.h:191:27:  [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.
	union { typeof(x) __val; char __c[1]; } __u =	\
data/libtraceevent-1.1.0/parse-filter.c:85: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(*tok, "%c%c", *token, '~');
data/libtraceevent-1.1.0/parse-filter.c:1299: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(this_event, filter_str, len);
data/libtraceevent-1.1.0/parse-filter.c:1711: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[64];
data/libtraceevent-1.1.0/parse-filter.c:1730: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(arg->str.buffer, val, arg->str.field->size);
data/libtraceevent-1.1.0/plugins/plugin_kvm.c:59:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char out[15*3+1];
data/libtraceevent-1.1.0/plugins/plugin_kvm.c:63: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(out + i * 3, "%02x ", insn[i]);
data/libtraceevent-1.1.0/plugins/plugin_scsi.c:413:36:  [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.
	scsi_trace_parse_cdb(s, (unsigned char *) (unsigned long) args[1], args[2]);
data/libtraceevent-1.1.0/trace-seq.c:201: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(s->buffer + s->len, str, len);
data/libtraceevent-1.1.0/event-parse.c:773: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).
	p = item->printk + strlen(item->printk) - 1;
data/libtraceevent-1.1.0/event-parse.c:1182: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).
	init_input_buf(str, strlen(str));
data/libtraceevent-1.1.0/event-parse.c:1432: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).
	new_buf = realloc(*buf, strlen(*buf) + strlen(delim) + strlen(str) + 1);
data/libtraceevent-1.1.0/event-parse.c:1432: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).
	new_buf = realloc(*buf, strlen(*buf) + strlen(delim) + strlen(str) + 1);
data/libtraceevent-1.1.0/event-parse.c:1432:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new_buf = realloc(*buf, strlen(*buf) + strlen(delim) + strlen(str) + 1);
data/libtraceevent-1.1.0/event-parse.c:2246:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(type);
data/libtraceevent-1.1.0/event-parse.c:4516:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				bptr += strlen(bptr) + 1;
data/libtraceevent-1.1.0/event-parse.c:5576: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).
					memmove(p+1, p, strlen(p)+1);
data/libtraceevent-1.1.0/event-parse.c:5682:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(format);
data/libtraceevent-1.1.0/event-parse.c:6107: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 (strncmp(arg, TEP_PRINT_LATENCY, strlen(TEP_PRINT_LATENCY)) == 0) {
data/libtraceevent-1.1.0/event-parse.c:6109:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncmp(arg, TEP_PRINT_COMM, strlen(TEP_PRINT_COMM)) == 0) {
data/libtraceevent-1.1.0/event-parse.c:6113: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).
	} else if (strncmp(arg, TEP_PRINT_INFO_RAW, strlen(TEP_PRINT_INFO_RAW)) == 0) {
data/libtraceevent-1.1.0/event-parse.c:6115:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncmp(arg, TEP_PRINT_INFO, strlen(TEP_PRINT_INFO)) == 0) {
data/libtraceevent-1.1.0/event-parse.c:6117:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if  (strncmp(arg, TEP_PRINT_NAME, strlen(TEP_PRINT_NAME)) == 0) {
data/libtraceevent-1.1.0/event-plugin.c:541: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 (strcmp(name + (strlen(name) - strlen(suffix)), suffix) != 0)
data/libtraceevent-1.1.0/event-plugin.c:541: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).
		if (strcmp(name + (strlen(name) - strlen(suffix)), suffix) != 0)
data/libtraceevent-1.1.0/event-utils.h:42:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	string = ret + strlen(ret) - 1;
data/libtraceevent-1.1.0/parse-filter.c:43:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = input ? strlen(input) : 0;
data/libtraceevent-1.1.0/parse-filter.c:491:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(arg->value.str) == 1 &&
data/libtraceevent-1.1.0/parse-filter.c:1188: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).
	tep_buffer_init(filter_str, strlen(filter_str));
data/libtraceevent-1.1.0/parse-filter.c:1281:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(filter_str);
data/libtraceevent-1.1.0/parse-filter.c:1291: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).
			len = strlen(filter_str);
data/libtraceevent-1.1.0/parse-filter.c:1374:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(filter->error_buffer) > 0) {
data/libtraceevent-1.1.0/trace-seq.c:194:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);

ANALYSIS SUMMARY:

Hits = 98
Lines analyzed = 15576 in approximately 0.31 seconds (50278 lines/second)
Physical Source Lines of Code (SLOC) = 11441
Hits@level = [0]  43 [1]  24 [2]  35 [3]   2 [4]  37 [5]   0
Hits@level+ = [0+] 141 [1+]  98 [2+]  74 [3+]  39 [4+]  37 [5+]   0
Hits/KSLOC@level+ = [0+] 12.3241 [1+] 8.56568 [2+] 6.46797 [3+] 3.40879 [4+] 3.23398 [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.