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/ink-0.5.3/ink.c
Examining data/ink-0.5.3/malloc.c

FINAL RESULTS:

data/ink-0.5.3/ink.c:89: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(headerline, PACKAGE_STRING);
data/ink-0.5.3/ink.c:97:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "b:p:n:t:v")) != -1) {
data/ink-0.5.3/ink.c:50:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char headerline[80] = "";
data/ink-0.5.3/ink.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *strCartridges[MAX_CARTRIDGE_TYPES] = {
data/ink-0.5.3/ink.c:90:3:  [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(headerline, " (c) 2018 Markus Heinz\n\n");
data/ink-0.5.3/ink.c:113:14:  [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).
	threshold = atoi(optarg);
data/ink-0.5.3/ink.c:133:15:  [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).
	portnumber = atoi(optarg);

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 274 in approximately 0.04 seconds (7313 lines/second)
Physical Source Lines of Code (SLOC) = 217
Hits@level = [0]  32 [1]   0 [2]   5 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  39 [1+]   7 [2+]   7 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 179.724 [1+] 32.2581 [2+] 32.2581 [3+] 9.21659 [4+] 4.60829 [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.