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/rasdaemon-0.6.6/ras-mc-handler.c
Examining data/rasdaemon-0.6.6/mce-amd.c
Examining data/rasdaemon-0.6.6/ras-extlog-handler.h
Examining data/rasdaemon-0.6.6/mce-intel.c
Examining data/rasdaemon-0.6.6/mce-intel-skylake-xeon.c
Examining data/rasdaemon-0.6.6/ras-aer-handler.h
Examining data/rasdaemon-0.6.6/ras-mce-handler.c
Examining data/rasdaemon-0.6.6/mce-intel-ivb.c
Examining data/rasdaemon-0.6.6/ras-devlink-handler.h
Examining data/rasdaemon-0.6.6/bitfield.c
Examining data/rasdaemon-0.6.6/ras-aer-handler.c
Examining data/rasdaemon-0.6.6/ras-record.h
Examining data/rasdaemon-0.6.6/ras-extlog-handler.c
Examining data/rasdaemon-0.6.6/mce-intel-knl.c
Examining data/rasdaemon-0.6.6/ras-events.h
Examining data/rasdaemon-0.6.6/mce-intel-p4-p6.c
Examining data/rasdaemon-0.6.6/ras-mc-handler.h
Examining data/rasdaemon-0.6.6/rasdaemon.c
Examining data/rasdaemon-0.6.6/config.h
Examining data/rasdaemon-0.6.6/bitfield.h
Examining data/rasdaemon-0.6.6/mce-intel-haswell.c
Examining data/rasdaemon-0.6.6/ras-report.c
Examining data/rasdaemon-0.6.6/non-standard-hisi_hip07.c
Examining data/rasdaemon-0.6.6/ras-mce-handler.h
Examining data/rasdaemon-0.6.6/ras-events.c
Examining data/rasdaemon-0.6.6/mce-intel-broadwell-de.c
Examining data/rasdaemon-0.6.6/mce-intel-broadwell-epex.c
Examining data/rasdaemon-0.6.6/rbtree.c
Examining data/rasdaemon-0.6.6/ras-record.c
Examining data/rasdaemon-0.6.6/mce-amd-k8.c
Examining data/rasdaemon-0.6.6/mce-intel-nehalem.c
Examining data/rasdaemon-0.6.6/ras-report.h
Examining data/rasdaemon-0.6.6/ras-arm-handler.h
Examining data/rasdaemon-0.6.6/ras-diskerror-handler.c
Examining data/rasdaemon-0.6.6/ras-non-standard-handler.c
Examining data/rasdaemon-0.6.6/mce-intel-tulsa.c
Examining data/rasdaemon-0.6.6/ras-logger.h
Examining data/rasdaemon-0.6.6/ras-page-isolation.c
Examining data/rasdaemon-0.6.6/ras-diskerror-handler.h
Examining data/rasdaemon-0.6.6/non-standard-hisi_hip08.c
Examining data/rasdaemon-0.6.6/ras-devlink-handler.c
Examining data/rasdaemon-0.6.6/mce-intel-dunnington.c
Examining data/rasdaemon-0.6.6/ras-arm-handler.c
Examining data/rasdaemon-0.6.6/ras-non-standard-handler.h
Examining data/rasdaemon-0.6.6/mce-amd-smca.c
Examining data/rasdaemon-0.6.6/libtrace/parse-filter.c
Examining data/rasdaemon-0.6.6/libtrace/kbuffer-parse.c
Examining data/rasdaemon-0.6.6/libtrace/event-parse.h
Examining data/rasdaemon-0.6.6/libtrace/kbuffer.h
Examining data/rasdaemon-0.6.6/libtrace/trace-seq.c
Examining data/rasdaemon-0.6.6/libtrace/parse-utils.c
Examining data/rasdaemon-0.6.6/libtrace/event-utils.h
Examining data/rasdaemon-0.6.6/libtrace/event-parse.c
Examining data/rasdaemon-0.6.6/ras-page-isolation.h
Examining data/rasdaemon-0.6.6/mce-intel-sb.c
Examining data/rasdaemon-0.6.6/rbtree.h

FINAL RESULTS:

data/rasdaemon-0.6.6/libtrace/event-parse.c:815: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/rasdaemon-0.6.6/libtrace/event-parse.c:817: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/rasdaemon-0.6.6/libtrace/event-parse.c:1294:6:  [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(field->type, last_token);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1347:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(brackets, token);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1387:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(field->type, field->name);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1389:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(field->type, brackets);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1402:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(field->type, brackets);
data/rasdaemon-0.6.6/libtrace/event-parse.c:2757: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(atom, token);
data/rasdaemon-0.6.6/libtrace/event-parse.c:3167:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    (!sys || strcmp(pevent->last_event->system, sys) == 0))
data/rasdaemon-0.6.6/libtrace/event-parse.c:3175: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/rasdaemon-0.6.6/libtrace/event-parse.c:4485: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/rasdaemon-0.6.6/libtrace/event-parse.c:4485: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/rasdaemon-0.6.6/libtrace/event-parse.c:4498: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/rasdaemon-0.6.6/libtrace/event-parse.c:4498: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/rasdaemon-0.6.6/libtrace/event-parse.c:4841: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/rasdaemon-0.6.6/libtrace/event-parse.c:4871: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/rasdaemon-0.6.6/libtrace/event-parse.c:4933: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/rasdaemon-0.6.6/libtrace/event-parse.c:4995: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/rasdaemon-0.6.6/libtrace/event-parse.c:5465: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/rasdaemon-0.6.6/libtrace/event-parse.c:5474: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/rasdaemon-0.6.6/libtrace/event-parse.c:5551: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/rasdaemon-0.6.6/libtrace/event-parse.h:75: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/rasdaemon-0.6.6/libtrace/event-parse.h:77: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/rasdaemon-0.6.6/libtrace/event-parse.h:302: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/rasdaemon-0.6.6/libtrace/parse-filter.c:62: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, input);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:72: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 + len, MAX_ERR_STR_SIZE, fmt, ap);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:260: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/rasdaemon-0.6.6/libtrace/parse-filter.c:264: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/rasdaemon-0.6.6/libtrace/parse-filter.c:287:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(reg, "^%s$", event_name);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:297:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(reg, "^%s$", sys_name);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:1364: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1461: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.
							  event->system,
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2135:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%s %s %s", lstr, op, rstr);
data/rasdaemon-0.6.6/libtrace/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/rasdaemon-0.6.6/libtrace/parse-utils.c:52: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/rasdaemon-0.6.6/libtrace/parse-utils.c:77: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/rasdaemon-0.6.6/libtrace/trace-seq.c:101: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/rasdaemon-0.6.6/libtrace/trace-seq.c:136: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/rasdaemon-0.6.6/non-standard-hisi_hip07.c:111:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "%s: ", err_bit_type(err->mb));
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:114:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "error type = %s: ",
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:118:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "axi error type = %s",
data/rasdaemon-0.6.6/ras-events.c:103: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(fname, ras->tracing);
data/rasdaemon-0.6.6/ras-events.c:105: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(fname, name);
data/rasdaemon-0.6.6/ras-events.c:119: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(fname, ras->debugfs);
data/rasdaemon-0.6.6/ras-events.c:133: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(ras->tracing, ras->debugfs);
data/rasdaemon-0.6.6/ras-events.c:136: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(ras->tracing, "/instances/" TOOL_NAME);
data/rasdaemon-0.6.6/ras-events.c:331: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(fname, ras->debugfs);
data/rasdaemon-0.6.6/ras-logger.h:38:3:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		syslog(level, fmt, ##args);\
data/rasdaemon-0.6.6/ras-logger.h:41:3:  [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.
		fprintf(stderr, fmt, ##args);\
data/rasdaemon-0.6.6/ras-mce-handler.h:105: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(buf + __n, __len, fmt,  ##arg);		\
data/rasdaemon-0.6.6/ras-page-isolation.c:97:35:  [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 (offline > OFFLINE_ACCOUNT && access(kernel_offline[offline], W_OK)) {
data/rasdaemon-0.6.6/ras-page-isolation.c:178:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%lu%s", config->val, config->units[i-1].name);
data/rasdaemon-0.6.6/ras-page-isolation.c:182:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%s%s", config->env, config->unit);
data/rasdaemon-0.6.6/ras-report.c:80:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "EXECUTABLE=/boot/vmlinuz-%s", un.release);
data/rasdaemon-0.6.6/ras-report.c:86:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "TYPE=%s", "ras");
data/rasdaemon-0.6.6/ras-report.c:101:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:129: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:140:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:188: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:199:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:209: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:220:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:228: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:239:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="    \
data/rasdaemon-0.6.6/ras-report.c:255: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:266:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:280: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:291:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bt_buf, "BACKTRACE="	\
data/rasdaemon-0.6.6/ras-report.c:307: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(buf, bt_buf);
data/rasdaemon-0.6.6/ras-report.c:396:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-mc");
data/rasdaemon-0.6.6/ras-report.c:402:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "EDAC driver report problem");
data/rasdaemon-0.6.6/ras-report.c:446:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-aer");
data/rasdaemon-0.6.6/ras-report.c:452:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "PCIe AER driver report problem");
data/rasdaemon-0.6.6/ras-report.c:495:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-non-standard");
data/rasdaemon-0.6.6/ras-report.c:501:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "Unknown CPER section problem");
data/rasdaemon-0.6.6/ras-report.c:540:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-arm");
data/rasdaemon-0.6.6/ras-report.c:546:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "ARM CPU report problem");
data/rasdaemon-0.6.6/ras-report.c:586:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-mce");
data/rasdaemon-0.6.6/ras-report.c:592:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "Machine Check driver report problem");
data/rasdaemon-0.6.6/ras-report.c:636:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-devlink");
data/rasdaemon-0.6.6/ras-report.c:642:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "devlink health report problem");
data/rasdaemon-0.6.6/ras-report.c:686:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "ANALYZER=%s", "rasdaemon-diskerror");
data/rasdaemon-0.6.6/ras-report.c:692:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "REASON=%s", "disk I/O error");
data/rasdaemon-0.6.6/ras-page-isolation.c:80:17:  [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.
	char *choice = getenv(env);
data/rasdaemon-0.6.6/ras-page-isolation.c:108:14:  [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.
	char *env = getenv(config->name);
data/rasdaemon-0.6.6/bitfield.c:100: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 fmt[32] = {0};
data/rasdaemon-0.6.6/bitfield.h:39:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define SBITFIELD(start_bit, string) { start_bit, ((char * [2]) { NULL, string }), 2 }
data/rasdaemon-0.6.6/libtrace/event-parse.c:827: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/rasdaemon-0.6.6/libtrace/event-parse.c:1822:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(left->atom.atom, " *");
data/rasdaemon-0.6.6/libtrace/event-parse.c:1946: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/rasdaemon-0.6.6/libtrace/event-parse.c:2192: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[20];
data/rasdaemon-0.6.6/libtrace/event-parse.c:2202: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/rasdaemon-0.6.6/libtrace/event-parse.c:3491: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/rasdaemon-0.6.6/libtrace/event-parse.c:4009: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/rasdaemon-0.6.6/libtrace/event-parse.c:4128:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(format, saveptr, len);
data/rasdaemon-0.6.6/libtrace/event-parse.c:4155:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(format, "0x%llx");
data/rasdaemon-0.6.6/libtrace/event-parse.c:4211:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(format, saveptr, len);
data/rasdaemon-0.6.6/libtrace/event-parse.c:4524: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(events, pevent->events, sizeof(*events) * pevent->nr_events);
data/rasdaemon-0.6.6/libtrace/event-parse.c:4739: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/rasdaemon-0.6.6/libtrace/event-parse.c:4749: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/rasdaemon-0.6.6/libtrace/event-parse.c:5077: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(buf, msg, min(buflen - 1, len));
data/rasdaemon-0.6.6/libtrace/event-parse.c:5303: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/rasdaemon-0.6.6/libtrace/event-parse.c:5316: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/rasdaemon-0.6.6/libtrace/event-parse.h:522: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, (ptr), sizeof(unsigned long long));	\
data/rasdaemon-0.6.6/libtrace/parse-filter.c:99: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1214: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1724: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1743: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1962:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(str, "TRUE");
data/rasdaemon-0.6.6/libtrace/parse-filter.c:1964:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(str, "FALSE");
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2003:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(str, "FALSE");
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2005:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(str, "TRUE");
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2195:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(str, "TRUE");
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2197:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(str, "FALSE");
data/rasdaemon-0.6.6/libtrace/trace-seq.c:169: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/rasdaemon-0.6.6/mce-amd-k8.c:99:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *highbits[32] = {
data/rasdaemon-0.6.6/mce-amd-k8.c:128: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_buf[4092];
data/rasdaemon-0.6.6/mce-amd-k8.c:293:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->error_msg, "Don't know how to decode this bank");
data/rasdaemon-0.6.6/mce-amd-smca.c:435:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->mcastatus_msg, "Couldn't find bank type with IPID");
data/rasdaemon-0.6.6/mce-amd-smca.c:440:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->mcastatus_msg, "Don't know how to decode this bank");
data/rasdaemon-0.6.6/mce-amd-smca.c:445:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->mcastatus_msg, "Bank 4 is reserved.\n");
data/rasdaemon-0.6.6/mce-amd.c:78:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(e->error_msg, "System Fatal error.");
data/rasdaemon-0.6.6/mce-amd.c:80:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(e->error_msg,
data/rasdaemon-0.6.6/mce-amd.c:82:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->error_msg,
data/rasdaemon-0.6.6/mce-amd.c:85:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->error_msg, "Deferred error, no action required.");
data/rasdaemon-0.6.6/mce-amd.c:87:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(e->error_msg, "Corrected error, no action required.");
data/rasdaemon-0.6.6/mce-intel-dunnington.c:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *dnt_front_error[0xf] = {
data/rasdaemon-0.6.6/mce-intel-dunnington.c:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *dnt_int_error[0xf] = {
data/rasdaemon-0.6.6/mce-intel-tulsa.c:56:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *tls_front_error[0xf] = {
data/rasdaemon-0.6.6/mce-intel-tulsa.c:68:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *tls_int_error[0xf] = {
data/rasdaemon-0.6.6/mce-intel.c:127:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *arstate[4] = {
data/rasdaemon-0.6.6/mce-intel.c:152: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 channel[30];
data/rasdaemon-0.6.6/mce-intel.c:155: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(channel, "unspecified");
data/rasdaemon-0.6.6/mce-intel.c:157: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(channel, "%u", status & 0xf);
data/rasdaemon-0.6.6/mce-intel.c:198:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "THERMAL EVENT");
data/rasdaemon-0.6.6/mce-intel.c:201:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "Timeout waiting for exception on other CPUs");
data/rasdaemon-0.6.6/mce-intel.c:426: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 fpath[32];
data/rasdaemon-0.6.6/mce-intel.c:430:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fpath, "/dev/cpu/%d/msr", cpu);
data/rasdaemon-0.6.6/mce-intel.c:431:7:  [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).
	fd = open(fpath, O_RDWR);
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:95: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[1024];
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:107:8:  [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.
		p += sprintf(p, "phy addr = 0x%p: ",
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:625: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:695: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:788: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:858: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:959: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/non-standard-hisi_hip08.c:1044: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[HISI_BUF_LEN];
data/rasdaemon-0.6.6/ras-aer-handler.c:30:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *aer_cor_errors[32] = {
data/rasdaemon-0.6.6/ras-aer-handler.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *aer_uncor_errors[32] = {
data/rasdaemon-0.6.6/ras-aer-handler.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_LEN];
data/rasdaemon-0.6.6/ras-events.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[MAX_PATH + 1 + 256];
data/rasdaemon-0.6.6/ras-events.c:64:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/mounts","r");
data/rasdaemon-0.6.6/ras-events.c:101: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 fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:107:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return open(fname, flags);
data/rasdaemon-0.6.6/ras-events.c:112: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		fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:120:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(fname, "/tracing");
data/rasdaemon-0.6.6/ras-events.c:134:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(ras->tracing, "/tracing");
data/rasdaemon-0.6.6/ras-events.c:155: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 fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:247: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 fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:278: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[page_size];
data/rasdaemon-0.6.6/ras-events.c:326: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 fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:332:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(fname, "/tracing/per_cpu/");
data/rasdaemon-0.6.6/ras-events.c:360: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 pipe_raw[PATH_MAX];
data/rasdaemon-0.6.6/ras-events.c:558: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 pipe_raw[PATH_MAX];
data/rasdaemon-0.6.6/ras-events.c:619: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[4096];
data/rasdaemon-0.6.6/ras-events.c:656:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/uptime", "r");
data/rasdaemon-0.6.6/ras-events.c:681: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 *page, fname[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.c:873:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		(void)open("/sys/kernel/debug/ras/daemon_active", 0);
data/rasdaemon-0.6.6/ras-events.h:45: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 debugfs[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-events.h:46: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 tracing[MAX_PATH + 1];
data/rasdaemon-0.6.6/ras-extlog-handler.c:108: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[256];
data/rasdaemon-0.6.6/ras-extlog-handler.c:113:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	p += sprintf(p, " (");
data/rasdaemon-0.6.6/ras-extlog-handler.c:115:8:  [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.
		p += sprintf(p, "node: %d ", cpd->node);
data/rasdaemon-0.6.6/ras-extlog-handler.c:117:8:  [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.
		p += sprintf(p, "card: %d ", cpd->card);
data/rasdaemon-0.6.6/ras-extlog-handler.c:119:8:  [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.
		p += sprintf(p, "module: %d ", cpd->module);
data/rasdaemon-0.6.6/ras-extlog-handler.c:121:8:  [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.
		p += sprintf(p, "bank: %d ", cpd->bank);
data/rasdaemon-0.6.6/ras-extlog-handler.c:123:8:  [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.
		p += sprintf(p, "device: %d ", cpd->device);
data/rasdaemon-0.6.6/ras-extlog-handler.c:125:8:  [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.
		p += sprintf(p, "row: %d ", cpd->row);
data/rasdaemon-0.6.6/ras-extlog-handler.c:127:8:  [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.
		p += sprintf(p, "column: %d ", cpd->column);
data/rasdaemon-0.6.6/ras-extlog-handler.c:129:8:  [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.
		p += sprintf(p, "bit_pos: %d ", cpd->bit_pos);
data/rasdaemon-0.6.6/ras-extlog-handler.c:131:8:  [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.
		p += sprintf(p, "req_id: 0x%llx ", cpd->requestor_id);
data/rasdaemon-0.6.6/ras-extlog-handler.c:133:8:  [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.
		p += sprintf(p, "resp_id: 0x%llx ", cpd->responder_id);
data/rasdaemon-0.6.6/ras-extlog-handler.c:135:8:  [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.
		p += sprintf(p, "tgt_id: 0x%llx ", cpd->target_id);
data/rasdaemon-0.6.6/ras-extlog-handler.c:137:8:  [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.
		p += sprintf(p, "rank: %d ", cpd->rank);
data/rasdaemon-0.6.6/ras-extlog-handler.c:139:8:  [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.
		p += sprintf(p, "card_handle: %d ", cpd->mem_array_handle);
data/rasdaemon-0.6.6/ras-extlog-handler.c:141:8:  [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.
		p += sprintf(p, "module_handle: %d ", cpd->mem_dev_handle);
data/rasdaemon-0.6.6/ras-extlog-handler.c:149: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 uuid[sizeof("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")];
data/rasdaemon-0.6.6/ras-extlog-handler.c:152:24:  [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 unsigned char le[16] = {3,2,1,0,5,4,7,6,8,9,10,11,12,13,14,15};
data/rasdaemon-0.6.6/ras-extlog-handler.c:155:8:  [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.
		p += sprintf(p, "%.2x", uu[le[i]]);
data/rasdaemon-0.6.6/ras-mce-handler.c:152:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/cpuinfo","r");
data/rasdaemon-0.6.6/ras-mce-handler.h:75: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		timestamp[64];
data/rasdaemon-0.6.6/ras-mce-handler.h:76: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		bank_name[64];
data/rasdaemon-0.6.6/ras-mce-handler.h:77: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_msg[4096];
data/rasdaemon-0.6.6/ras-mce-handler.h:78: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		mcgstatus_msg[256];
data/rasdaemon-0.6.6/ras-mce-handler.h:79: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		mcistatus_msg[1024];
data/rasdaemon-0.6.6/ras-mce-handler.h:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		mcastatus_msg[1024];
data/rasdaemon-0.6.6/ras-mce-handler.h:81: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		user_action[4096];
data/rasdaemon-0.6.6/ras-mce-handler.h:82: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		mc_location[256];
data/rasdaemon-0.6.6/ras-mce-handler.h:87: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 vendor[64];
data/rasdaemon-0.6.6/ras-non-standard-handler.c:72: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 uuid[sizeof("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")];
data/rasdaemon-0.6.6/ras-non-standard-handler.c:75:24:  [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 unsigned char le[16] = {3,2,1,0,5,4,7,6,8,9,10,11,12,13,14,15};
data/rasdaemon-0.6.6/ras-non-standard-handler.c:78:8:  [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.
		p += sprintf(p, "%.2x", uu[le[i]]);
data/rasdaemon-0.6.6/ras-non-standard-handler.c:96: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 uuid1[32];
data/rasdaemon-0.6.6/ras-non-standard-handler.c:99:24:  [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 unsigned char le[16] = {
data/rasdaemon-0.6.6/ras-non-standard-handler.c:103:8:  [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.
		p += sprintf(p, "%.2x", sec_type[le[i]]);
data/rasdaemon-0.6.6/ras-page-isolation.c:188: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 threshold_string[PARSED_ENV_LEN];
data/rasdaemon-0.6.6/ras-page-isolation.c:189: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 cycle_string[PARSED_ENV_LEN];
data/rasdaemon-0.6.6/ras-page-isolation.c:216:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	offline_file = fopen(kernel_offline[type], "w");
data/rasdaemon-0.6.6/ras-record.c:510: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 sql[1024], *p = sql, *end = sql + sizeof(sql);
data/rasdaemon-0.6.6/ras-record.c:528:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(sql, "?, ");
data/rasdaemon-0.6.6/ras-record.c:530:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(sql, "?)");
data/rasdaemon-0.6.6/ras-record.c:554: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 sql[1024], *p = sql, *end = sql + sizeof(sql);
data/rasdaemon-0.6.6/ras-record.c:586: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 sql[1024], *p = sql, *end = sql + sizeof(sql);
data/rasdaemon-0.6.6/ras-record.h:33: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:43: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:52: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:65: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:73: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:83: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 timestamp[64];
data/rasdaemon-0.6.6/ras-record.h:92: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 timestamp[64];
data/rasdaemon-0.6.6/ras-report.c:49: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[INPUT_BUFFER_SIZE];
data/rasdaemon-0.6.6/ras-report.c:68:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "PUT / HTTP/1.1\r\n\r\n");
data/rasdaemon-0.6.6/ras-report.c:74:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "PID=%d", (int)getpid());
data/rasdaemon-0.6.6/ras-report.c:96: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:135: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:194: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:215: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:234: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:261: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:286: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 bt_buf[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:313: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[MAX_BACKTRACE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:374: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:424: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:474: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:519: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:564: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:614: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/ras-report.c:664: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[MAX_MESSAGE_SIZE];
data/rasdaemon-0.6.6/libtrace/event-parse.c:1003: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/rasdaemon-0.6.6/libtrace/event-parse.c:1286: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).
							   strlen(field->type) +
data/rasdaemon-0.6.6/libtrace/event-parse.c:1287: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).
							   strlen(last_token) + 2);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1293:6:  [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(field->type, " ");
data/rasdaemon-0.6.6/libtrace/event-parse.c:1338: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).
						       strlen(brackets) +
data/rasdaemon-0.6.6/libtrace/event-parse.c:1339: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).
						       strlen(token) + len);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1346:6:  [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(brackets, " ");
data/rasdaemon-0.6.6/libtrace/event-parse.c:1360: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).
			new_brackets = realloc(brackets, strlen(brackets) + 2);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1366: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(brackets, "]");
data/rasdaemon-0.6.6/libtrace/event-parse.c:1378: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).
						   strlen(field->type) +
data/rasdaemon-0.6.6/libtrace/event-parse.c:1379: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).
						   strlen(field->name) +
data/rasdaemon-0.6.6/libtrace/event-parse.c:1380: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).
						   strlen(brackets) + 2);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1386:5:  [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(field->type, " ");
data/rasdaemon-0.6.6/libtrace/event-parse.c:1395: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).
						   strlen(field->type) +
data/rasdaemon-0.6.6/libtrace/event-parse.c:1396: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).
						   strlen(brackets) + 1);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1817: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).
					    strlen(left->atom.atom) + 3);
data/rasdaemon-0.6.6/libtrace/event-parse.c:1932: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/rasdaemon-0.6.6/libtrace/event-parse.c:2748: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).
					   strlen(atom) + strlen(token) + 2);
data/rasdaemon-0.6.6/libtrace/event-parse.c:2748: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).
					   strlen(atom) + strlen(token) + 2);
data/rasdaemon-0.6.6/libtrace/event-parse.c:2756: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(atom, " ");
data/rasdaemon-0.6.6/libtrace/event-parse.c:3817: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/rasdaemon-0.6.6/libtrace/event-parse.c:3871: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).
	p = format + strlen(format) - 1;
data/rasdaemon-0.6.6/libtrace/event-parse.c:4153:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						memmove(p+1, p, strlen(p)+1);
data/rasdaemon-0.6.6/libtrace/event-parse.c:4454: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(event->name);
data/rasdaemon-0.6.6/libtrace/event-parse.c:5076: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).
			size_t len = strlen(msg);
data/rasdaemon-0.6.6/libtrace/event-utils.h:62: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/rasdaemon-0.6.6/libtrace/parse-filter.c:57: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/rasdaemon-0.6.6/libtrace/parse-filter.c:286: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).
	reg = malloc_or_die(strlen(event_name) + 3);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:296:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		reg = malloc_or_die(strlen(sys_name) + 3);
data/rasdaemon-0.6.6/libtrace/parse-filter.c:472: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1111: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).
	pevent_buffer_init(filter_str, strlen(filter_str));
data/rasdaemon-0.6.6/libtrace/parse-filter.c:1200: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1211: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/rasdaemon-0.6.6/libtrace/parse-filter.c:1982: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(left) + strlen(right) + strlen(op) + 10;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:1982: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).
		len = strlen(left) + strlen(right) + strlen(op) + 10;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:1982: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).
		len = strlen(left) + strlen(right) + strlen(op) + 10;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2008: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(right) + strlen(op) + 3;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2008: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).
		len = strlen(right) + strlen(op) + 3;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2086: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(op) + strlen(lstr) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2086: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).
	len = strlen(op) + strlen(lstr) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2086: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).
	len = strlen(op) + strlen(lstr) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2133: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(lstr) + strlen(op) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2133: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).
		len = strlen(lstr) + strlen(op) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2133: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).
		len = strlen(lstr) + strlen(op) + strlen(rstr) + 4;
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2172: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(arg->str.field->name) + strlen(op) +
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2172: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).
		len = strlen(arg->str.field->name) + strlen(op) +
data/rasdaemon-0.6.6/libtrace/parse-filter.c:2173:4:  [1] (buffer) strlen:
  Does not handle 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(arg->str.val) + 6;
data/rasdaemon-0.6.6/libtrace/trace-seq.c:164: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);
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:105:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	p += sprintf(p, "[");
data/rasdaemon-0.6.6/non-standard-hisi_hip07.c:121:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	p += sprintf(p, "]");
data/rasdaemon-0.6.6/ras-aer-handler.c:120: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).
		snprintf((buf + strlen(ev.msg)), BUF_LEN - strlen(ev.msg),
data/rasdaemon-0.6.6/ras-aer-handler.c:120: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).
		snprintf((buf + strlen(ev.msg)), BUF_LEN - strlen(ev.msg),
data/rasdaemon-0.6.6/ras-events.c:88:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tracing_dir, dir, len - 1);
data/rasdaemon-0.6.6/ras-events.c:104:2:  [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(fname, "/");
data/rasdaemon-0.6.6/ras-events.c:168:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rc = write(fd, fname,strlen(fname));
data/rasdaemon-0.6.6/ras-events.c:256: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).
	rc = write(fd, filter_str ,strlen(filter_str));
data/rasdaemon-0.6.6/ras-events.c:284:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, page_size);
data/rasdaemon-0.6.6/ras-events.c:426:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			size = read(fds[n_cpus].fd, &fdsiginfo,
data/rasdaemon-0.6.6/ras-events.c:461:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			size = read(fds[i].fd, page, pdata[i].ras->page_size);
data/rasdaemon-0.6.6/ras-events.c:534:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size = read(fd, page, pdata->ras->page_size);
data/rasdaemon-0.6.6/ras-events.c:627:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(fd, buf, sizeof(buf));
data/rasdaemon-0.6.6/ras-events.c:703:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(fd, page, page_size);
data/rasdaemon-0.6.6/ras-extlog-handler.c:142:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	p += sprintf(p-1, ")");
data/rasdaemon-0.6.6/ras-mce-handler.h:96: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).
	unsigned __n = strlen(buf);				\
data/rasdaemon-0.6.6/ras-page-isolation.c:117: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).
	if (env && strlen(env)) {
data/rasdaemon-0.6.6/ras-page-isolation.c:119: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).
		for (i = 0; i < strlen(env) - 1; i++) {
data/rasdaemon-0.6.6/ras-page-isolation.c:126: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).
		unit = env + strlen(env) - 1;
data/rasdaemon-0.6.6/ras-record.c:725:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/rasdaemon-0.6.6/ras-report.c:36:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, ABRT_SOCKET, sizeof(addr.sun_path));
data/rasdaemon-0.6.6/ras-report.c:69: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).
	rc = write(sockfd, buf, strlen(buf));
data/rasdaemon-0.6.6/ras-report.c:70: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).
	if(rc < strlen(buf)){
data/rasdaemon-0.6.6/ras-report.c:75: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:76: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:81: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:82: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:87: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:88: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:354: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).
	buf_len = strlen(buf);
data/rasdaemon-0.6.6/ras-report.c:397: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:398: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:403: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:404: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:447: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:448: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:453: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:454: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:496: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:497: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:502: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:503: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:541: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:542: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:547: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:548: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:587: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:588: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:593: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:594: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:637: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:638: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:643: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:644: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:687: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:688: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).
	if(rc < strlen(buf) + 1){
data/rasdaemon-0.6.6/ras-report.c:693: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).
	rc = write(sockfd, buf, strlen(buf) + 1);
data/rasdaemon-0.6.6/ras-report.c:694: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).
	if(rc < strlen(buf) + 1){

ANALYSIS SUMMARY:

Hits = 344
Lines analyzed = 20950 in approximately 0.52 seconds (40254 lines/second)
Physical Source Lines of Code (SLOC) = 15339
Hits@level = [0] 113 [1] 106 [2] 153 [3]   2 [4]  83 [5]   0
Hits@level+ = [0+] 457 [1+] 344 [2+] 238 [3+]  85 [4+]  83 [5+]   0
Hits/KSLOC@level+ = [0+] 29.7933 [1+] 22.4265 [2+] 15.516 [3+] 5.54143 [4+] 5.41104 [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.