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/vanessa-adt-0.0.9/libvanessa_adt/vanessa_adt.h
Examining data/vanessa-adt-0.0.9/libvanessa_adt/dynamic_array.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/unused.h
Examining data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/hash.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/list.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/queue.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/key_value.c
Examining data/vanessa-adt-0.0.9/libvanessa_adt/element_ops.c
Examining data/vanessa-adt-0.0.9/test/config_file_test.c
Examining data/vanessa-adt-0.0.9/test/list_test.c
Examining data/vanessa-adt-0.0.9/test/hash_test.c
Examining data/vanessa-adt-0.0.9/test/dynamic_array_test.c

FINAL RESULTS:

data/vanessa-adt-0.0.9/libvanessa_adt/hash.c:251: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(str, bucket_str);
data/vanessa-adt-0.0.9/libvanessa_adt/vanessa_adt.h:174:57:  [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).
#define VANESSA_DISPLAY_STR (void (*)(char *d, void *s))strcpy
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:205: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 token_buffer[MAX_LINE_LENGTH];
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:206: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 read_buffer[MAX_LINE_LENGTH];
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:368: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(filename, O_RDONLY);
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:680: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(filename, O_RDONLY);
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:730: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(filename, O_RDONLY);
data/vanessa-adt-0.0.9/libvanessa_adt/dynamic_array.c:555:7:  [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).
		i = atoi(string);
data/vanessa-adt-0.0.9/libvanessa_adt/dynamic_array.c:564:7:  [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).
		i = atoi(string);
data/vanessa-adt-0.0.9/libvanessa_adt/element_ops.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(d, "%d", *i);
data/vanessa-adt-0.0.9/libvanessa_adt/vanessa_adt.h:1105: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 mode_str[11];
data/vanessa-adt-0.0.9/libvanessa_adt/vanessa_adt.h:1109: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 mode_str[5];
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:109: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(buf);
data/vanessa-adt-0.0.9/libvanessa_adt/config_file.c:245:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((nread = read(fd, read_buffer, 
data/vanessa-adt-0.0.9/libvanessa_adt/hash.c:244: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).
			*(str+strlen(str)) = ',';
data/vanessa-adt-0.0.9/libvanessa_adt/vanessa_adt.h:175:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define VANESSA_LENGTH_STR (size_t (*)(void *s))strlen
data/vanessa-adt-0.0.9/test/config_file_test.c:62: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).
	count = strlen(str);
data/vanessa-adt-0.0.9/test/config_file_test.c:64: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).
		n = write(fd, str, strlen(str));

ANALYSIS SUMMARY:

Hits = 18
Lines analyzed = 4981 in approximately 0.15 seconds (33119 lines/second)
Physical Source Lines of Code (SLOC) = 2137
Hits@level = [0]  39 [1]   6 [2]  10 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  57 [1+]  18 [2+]  12 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 26.6729 [1+] 8.42302 [2+] 5.61535 [3+] 0.935891 [4+] 0.935891 [5+]   0
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.