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/proftpd-mod-counter-0.6.2/mod_counter.c

FINAL RESULTS:

data/proftpd-mod-counter-0.6.2/mod_counter.c:237: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-mod-counter-0.6.2/mod_counter.c:262: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).
    id = atoi(buf);
data/proftpd-mod-counter-0.6.2/mod_counter.c:336: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 buf[32];
data/proftpd-mod-counter-0.6.2/mod_counter.c:718:11:  [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).
  count = atoi(cmd->argv[1]);
data/proftpd-mod-counter-0.6.2/mod_counter.c:350: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).
    buf[strlen(buf)-1] = '\0';
data/proftpd-mod-counter-0.6.2/mod_counter.c:482: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).
  size_t sz = !keysz ? strlen((const char *) key) : keysz;
data/proftpd-mod-counter-0.6.2/mod_counter.c:508: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).
  pathlen = strlen(path);
data/proftpd-mod-counter-0.6.2/mod_counter.c:1220:20:  [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).
    cfh->arealen = strlen(area);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1318 in approximately 0.04 seconds (36623 lines/second)
Physical Source Lines of Code (SLOC) = 885
Hits@level = [0]   1 [1]   4 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   8 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 10.1695 [1+] 9.03955 [2+] 4.51977 [3+]   0 [4+]   0 [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.