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/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_info.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_info.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_graph.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_graph.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/php_rrd.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_update.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_update.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_info.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_info.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_graph.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_graph.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/php_rrd.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_update.c
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_update.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.h
Examining data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c

FINAL RESULTS:

data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:180: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(rrd_source_desc, desc);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:215: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(rrd_archive_desc, desc);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:240: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(start_time_str, prefix);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:241: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(start_time_str, intern_obj->start_time);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:254: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(start_time_str, prefix);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:255: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(start_time_str, Z_STRVAL_P(intern_obj->zv_step));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:170: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(rrd_source_desc, ZSTR_VAL(description));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:204: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(rrd_archive_desc, ZSTR_VAL(description));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:228: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(start_time_str, prefix);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:229: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(start_time_str, intern_obj->start_time);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:242: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(start_time_str, prefix);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:243: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(start_time_str, Z_STRVAL(intern_obj->zv_step));
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd.c:225: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 *argv[3];
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:179:2:  [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(rrd_source_desc, "DS:");
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:214:2:  [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(rrd_archive_desc, "RRA:");
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:363: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(&rrd_create_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_graph.c:417: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(&rrd_graph_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_info.c:32: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 *argv[3];
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_update.c:294: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(&rrd_update_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char str_timestamp[11];
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:222: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 *argv[3];
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:462: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 str_timestamp[11];
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:169:2:  [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(rrd_source_desc, "DS:");
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:203:2:  [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(rrd_archive_desc, "RRA:");
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:343: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(&rrd_create_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_graph.c:384: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(&rrd_graph_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_info.c:32: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 *argv[3];
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_update.c:262: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(&rrd_update_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd.c:649:7:  [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(command_name)) return NULL;
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd.c:653:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	result->count = option_count + (strlen(filename) ? 3 : 2);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd.c:661:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(filename)) result->args[args_counter++] = estrdup(filename);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:237:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *start_time_str = emalloc(strlen(intern_obj->start_time)
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:238:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			+ strlen(prefix) + 1);
data/php-rrd-2.0.1+1.1.3/rrd-1.1.3/rrd_create.c:252:28:  [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).
		start_time_str = emalloc(strlen(prefix) + Z_STRLEN_P(intern_obj->zv_step) + 1);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:643:7:  [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(command_name)) return NULL;
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:647:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	result->count = option_count + (strlen(filename) ? 3 : 2);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd.c:655:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(filename)) result->args[args_counter++] = estrdup(filename);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:225:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *start_time_str = emalloc(strlen(intern_obj->start_time)
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:226:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			+ strlen(prefix) + 1);
data/php-rrd-2.0.1+1.1.3/rrd-2.0.1/rrd_create.c:240:28:  [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).
		start_time_str = emalloc(strlen(prefix) + Z_STRLEN(intern_obj->zv_step) + 1);

ANALYSIS SUMMARY:

Hits = 40
Lines analyzed = 3872 in approximately 0.10 seconds (40071 lines/second)
Physical Source Lines of Code (SLOC) = 2440
Hits@level = [0]   0 [1]  12 [2]  16 [3]   0 [4]  12 [5]   0
Hits@level+ = [0+]  40 [1+]  40 [2+]  28 [3+]  12 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 16.3934 [1+] 16.3934 [2+] 11.4754 [3+] 4.91803 [4+] 4.91803 [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.