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/eancheck-1.0/eancheck.h
Examining data/eancheck-1.0/eancheck.cpp

FINAL RESULTS:

data/eancheck-1.0/eancheck.cpp:62:6:  [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 convert[2];
data/eancheck-1.0/eancheck.cpp:69:18:  [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).
     digits[i] = atoi(convert);
data/eancheck-1.0/eancheck.h:24:6:  [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 convert[2];
data/eancheck-1.0/eancheck.h:31:18:  [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).
     digits[i] = atoi(convert);
data/eancheck-1.0/eancheck.h:84:6:  [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 convert[2];
data/eancheck-1.0/eancheck.h:91:18:  [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).
     digits[i] = atoi(convert);
data/eancheck-1.0/eancheck.cpp:47:23:  [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).
  for (int c = 0; c < strlen(argv[1]); c++)
data/eancheck-1.0/eancheck.cpp:56:15:  [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).
   int digits[strlen(argv[1])];
data/eancheck-1.0/eancheck.cpp:58: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).
   for (int i=0; i < strlen(argv[1]); i++)
data/eancheck-1.0/eancheck.cpp:77: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).
   for (int o=0; o<strlen(argv[1])-1; o=o+2)
data/eancheck-1.0/eancheck.cpp:82: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).
   for (int e=1; e<strlen(argv[1])-1; e=e+2)
data/eancheck-1.0/eancheck.cpp:93:25:  [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 (cdigit == digits[strlen(argv[1])-1])
data/eancheck-1.0/eancheck.h:9: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).
 for (int c = 0; c < strlen(inputean); c++)
data/eancheck-1.0/eancheck.h:18:15:  [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).
   int digits[strlen(inputean)];
data/eancheck-1.0/eancheck.h:20: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).
   for (int i=0; i < strlen(inputean); i++)
data/eancheck-1.0/eancheck.h:39: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).
     for (int o=0; o<strlen(inputean)-1; o=o+2)
data/eancheck-1.0/eancheck.h:44: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).
     for (int e=1; e<strlen(inputean)-1; e=e+2)
data/eancheck-1.0/eancheck.h:54:25:  [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 (cdigit == digits[strlen(inputean)-1])
data/eancheck-1.0/eancheck.h:69: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).
 for (int c = 0; c < strlen(inputean); c++)
data/eancheck-1.0/eancheck.h:78:15:  [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).
   int digits[strlen(inputean)];
data/eancheck-1.0/eancheck.h:80: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).
   for (int i=0; i < strlen(inputean); i++)
data/eancheck-1.0/eancheck.h:99: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).
     for (int o=0; o<strlen(inputean); o=o+2)
data/eancheck-1.0/eancheck.h:104: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).
     for (int e=1; e<strlen(inputean); e=e+2)

ANALYSIS SUMMARY:

Hits = 23
Lines analyzed = 223 in approximately 0.03 seconds (6784 lines/second)
Physical Source Lines of Code (SLOC) = 138
Hits@level = [0]   0 [1]  17 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  23 [1+]  23 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 166.667 [1+] 166.667 [2+] 43.4783 [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.