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/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_1.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_2.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_3.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_4.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_5.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_6.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_7.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_complete.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_cpu.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_general.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_int.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_method.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_rand.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_w16.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_w32.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_w4.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_w64.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/include/gf_w8.h
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_method.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_rand.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w128.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w16.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w32.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w4.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w64.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w8.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_wgen.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/neon/gf_w16_neon.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/neon/gf_w32_neon.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/neon/gf_w4_neon.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/neon/gf_w64_neon.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/neon/gf_w8_neon.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/test/gf_unit.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_div.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_inline_time.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_mult.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c
Examining data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c

FINAL RESULTS:

data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:82:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argv[1], format, &a) == 0) usage("Bad a\n");
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:83:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argv[2], format, &b) == 0) usage("Bad b\n");
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:92:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(format, c);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:97:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argv[1], format, &a64) == 0) usage("Bad a\n");
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:98:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argv[2], format, &b64) == 0) usage("Bad b\n");
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:101:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(format, c64);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:131:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(w_str, w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:206:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(w_str, w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:228:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(w_str, w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:204:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(string, "Argument '%s' not in proper format of power:coefficient\n", argv[i]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(string, "Argument '%s' not in proper format of power:coefficient\n", argv[i]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:135:17:  [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).
      case 'A': strcat(tests, single_tests); 
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:136:17:  [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(tests, region_tests); 
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:138:17:  [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).
      case 'S': strcat(tests, single_tests); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:139:17:  [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).
      case 'R': strcat(tests, region_tests); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:65:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((reg[2] & GF_CPU_PCLMUL) != 0 && !getenv("GF_COMPLETE_DISABLE_SSE4_PCLMUL")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:74:74:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (((reg[2] & GF_CPU_SSE42) != 0 || (reg[2] & GF_CPU_SSE41) != 0) && !getenv("GF_COMPLETE_DISABLE_SSE4")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:83:40:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((reg[2] & GF_CPU_SSSE3) != 0 && !getenv("GF_COMPLETE_DISABLE_SSSE3")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:92:39:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((reg[2] & GF_CPU_SSE3) != 0 && !getenv("GF_COMPLETE_DISABLE_SSE3")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:101:39:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((reg[3] & GF_CPU_SSE2) != 0 && !getenv("GF_COMPLETE_DISABLE_SSE2")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:149:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!getenv("GF_COMPLETE_DISABLE_NEON")) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_1.c:34: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).
  w = atoi(argv[1]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/examples/gf_example_2.c:37: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).
  w = atoi(argv[1]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf.c:922:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dest, src, bytes);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf.c:1076:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(scopy, s8, 8*UNALIGNED_BUFSIZE);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:125:14:  [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).
    int fd = open("/proc/self/auxv", O_RDONLY);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:107:7:  [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(s, "%x", v->w32);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:109:7:  [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(s, "%u", v->w32);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:113:7:  [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(s, "%llx", (long long unsigned int) v->w64);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:115:7:  [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(s, "%lld", (long long unsigned int) v->w64);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:119:7:  [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(s, "%llx", (long long unsigned int) v->w128[1]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:121:7:  [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(s, "%llx%016llx", (long long unsigned int) v->w128[0], 
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:270: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 sa[50], soa[50], sot[50], sft[50], ssb[50];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w128.c:1602:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rv, s, 16);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w128.c:1616:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rv, r64+(index*2), 16);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_w128.c:1659:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rv, r64+(index*2), 16);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/test/gf_unit.c:89: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 as[50], bs[50], cs[50], ds[50];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/test/gf_unit.c:434:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rc, ra, REGION_SIZE);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/test/gf_unit.c:435:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rd, target, REGION_SIZE);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_div.c:44: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 output[50];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:21:8:  [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.
static char *BMULTS[BNMULTS] = { "CARRY_FREE", "GROUP48", 
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:24:8:  [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.
static char *MULTS[NMULTS] = { "SHIFT", "CARRY_FREE", "CARRY_FREE_GK", "GROUP44", "GROUP48", "BYTWO_p", "BYTWO_b",
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:31:8:  [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.
static char *REGIONS[NREGIONS] = { "DOUBLE", "QUAD", "LAZY", "SIMD", "NOSIMD",
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:35:8:  [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.
static char *BREGIONS[BNREGIONS] = { "DOUBLE", "QUAD", "ALTMAP", "CAUCHY" };
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:38:8:  [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.
static char *divides[NDIVS] = { "MATRIX", "EUCLID" }; 
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:91: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 *gf_argv[50], *x;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:93: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 ls[10];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:97: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).
  w = atoi(argv[1]);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:159:7:  [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(ls, "%d", w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:164:7:  [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(ls, "%d", w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:169:7:  [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(ls, "%d", w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:174:7:  [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(ls, "%d", w);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_mult.c:44: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 output[50];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:189: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[100];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:203:17:  [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.
      string = (char *) malloc(sizeof(char)*(strlen(argv[i]+100)));
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:230:17:  [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.
      string = (char *) malloc(sizeof(char)*(strlen(argv[i]+100)));
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:94: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 tests[100];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:98: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 *tstrings[256];
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_cpu.c:128:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read(fd, &auxv, sizeof(Elf32_auxv_t))) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/src/gf_general.c:150: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).
    l = strlen(s);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/test/gf_unit.c:120:19:  [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 (i = 0; i < strlen(argv[2]); i++) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_add.c:34:7:  [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).
  l = strlen(s);
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:103: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).
  if (argv[2][0] != '-' || argv[3][0] != '-' || strlen(argv[2]) == 1 || strlen(argv[3]) != 2) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_methods.c:103:73:  [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 (argv[2][0] != '-' || argv[3][0] != '-' || strlen(argv[2]) == 1 || strlen(argv[3]) != 2) {
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:203:46:  [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).
      string = (char *) malloc(sizeof(char)*(strlen(argv[i]+100)));
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_poly.c:230:46:  [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).
      string = (char *) malloc(sizeof(char)*(strlen(argv[i]+100)));
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:132:3:  [1] (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). Risk is low because the source is a constant character.
  strcpy(tests, "");
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:140:17:  [1] (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 character.
      case 'G': strcat(tests, "G"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:141:17:  [1] (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 character.
      case '0': strcat(tests, "0"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:142:17:  [1] (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 character.
      case '1': strcat(tests, "1"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:143:17:  [1] (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 character.
      case '2': strcat(tests, "2"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:144:17:  [1] (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 character.
      case 'M': strcat(tests, "M"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:145:17:  [1] (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 character.
      case 'D': strcat(tests, "D"); break;
data/gf-complete-1.0.2+2017.04.10.git.ea75cdf/tools/gf_time.c:146:17:  [1] (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 character.
      case 'I': strcat(tests, "I"); break;

ANALYSIS SUMMARY:

Hits = 74
Lines analyzed = 21311 in approximately 0.54 seconds (39199 lines/second)
Physical Source Lines of Code (SLOC) = 16716
Hits@level = [0] 350 [1]  16 [2]  37 [3]   6 [4]  15 [5]   0
Hits@level+ = [0+] 424 [1+]  74 [2+]  58 [3+]  21 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 25.3649 [1+] 4.4269 [2+] 3.46973 [3+] 1.25628 [4+] 0.897344 [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.