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/aggregate-1.6/aggregate.c

FINAL RESULTS:

data/aggregate-1.6/aggregate.c:73:8:  [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.
  r += vfprintf(stderr, fmt, ap);
data/aggregate-1.6/aggregate.c:190:16:  [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 ((ch = getopt(argc, argv, "tqvm:o:p:")) != -1)
data/aggregate-1.6/aggregate.c:181: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 buf[MAX_buf + 1];
data/aggregate-1.6/aggregate.c:194:29:  [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).
        max_prefix_length = atoi(optarg);
data/aggregate-1.6/aggregate.c:200:26:  [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).
        max_prefix_opt = atoi(optarg);
data/aggregate-1.6/aggregate.c:206:33:  [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).
        default_prefix_length = atoi(optarg);
data/aggregate-1.6/aggregate.c:277:17:  [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).
      masklen = atoi(buf + i + 1);

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 463 in approximately 0.02 seconds (23433 lines/second)
Physical Source Lines of Code (SLOC) = 327
Hits@level = [0]   4 [1]   0 [2]   5 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  11 [1+]   7 [2+]   7 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 33.6391 [1+] 21.4067 [2+] 21.4067 [3+] 6.11621 [4+] 3.0581 [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.