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/paraglob-0.5.0/include/paraglob/exceptions.h
Examining data/paraglob-0.5.0/include/paraglob/node.h
Examining data/paraglob-0.5.0/include/paraglob/paraglob.h
Examining data/paraglob-0.5.0/include/paraglob/serializer.h
Examining data/paraglob-0.5.0/src/ahocorasick/AhoCorasickPlus.cpp
Examining data/paraglob-0.5.0/src/ahocorasick/AhoCorasickPlus.h
Examining data/paraglob-0.5.0/src/ahocorasick/actypes.h
Examining data/paraglob-0.5.0/src/ahocorasick/ahocorasick.c
Examining data/paraglob-0.5.0/src/ahocorasick/ahocorasick.h
Examining data/paraglob-0.5.0/src/ahocorasick/mpool.c
Examining data/paraglob-0.5.0/src/ahocorasick/mpool.h
Examining data/paraglob-0.5.0/src/ahocorasick/node.c
Examining data/paraglob-0.5.0/src/ahocorasick/node.h
Examining data/paraglob-0.5.0/src/ahocorasick/replace.c
Examining data/paraglob-0.5.0/src/ahocorasick/replace.h
Examining data/paraglob-0.5.0/src/paraglob.cpp
Examining data/paraglob-0.5.0/src/paraglob_serializer.cpp
Examining data/paraglob-0.5.0/tools/benchmark.cpp
Examining data/paraglob-0.5.0/tools/benchmark.h
Examining data/paraglob-0.5.0/tools/driver.cpp

FINAL RESULTS:

data/paraglob-0.5.0/tools/benchmark.cpp:71:15:  [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(buffer, random_pattern_word());
data/paraglob-0.5.0/tools/benchmark.cpp:74:15:  [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(buffer, random_word());
data/paraglob-0.5.0/tools/benchmark.cpp:94:15:  [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(buffer, random_pattern_word());
data/paraglob-0.5.0/src/ahocorasick/mpool.c:175:11:  [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 *)ret)[n] = '\0';
data/paraglob-0.5.0/src/ahocorasick/replace.c:295:9:  [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((void *)&rd->buffer.astring[rd->buffer.length],
data/paraglob-0.5.0/src/ahocorasick/replace.c:387: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( (AC_ALPHABET_t *)
data/paraglob-0.5.0/src/ahocorasick/replace.c:437:13:  [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->noms[0], &rd->noms[index], 
data/paraglob-0.5.0/tools/benchmark.cpp:27:12:  [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 buffer[1024];
data/paraglob-0.5.0/tools/benchmark.cpp:41:23:  [2] (integer) atol:
  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).
  long num_patterns = atol(a);
data/paraglob-0.5.0/tools/benchmark.cpp:42:22:  [2] (integer) atol:
  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).
  long num_queries = atol(b);
data/paraglob-0.5.0/tools/benchmark.cpp:43:21:  [2] (integer) atol:
  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).
  long match_prob = atol(c);
data/paraglob-0.5.0/tools/benchmark.cpp:57: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 buffer[1024];
data/paraglob-0.5.0/src/ahocorasick/mpool.c:174:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)ret, str, n);
data/paraglob-0.5.0/src/ahocorasick/mpool.c:194:11:  [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).
    len = strlen(str);
data/paraglob-0.5.0/tools/benchmark.cpp:68:15:  [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.
              strcat(buffer, "*");

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 3065 in approximately 0.16 seconds (19162 lines/second)
Physical Source Lines of Code (SLOC) = 1680
Hits@level = [0]  14 [1]   3 [2]   9 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  29 [1+]  15 [2+]  12 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 17.2619 [1+] 8.92857 [2+] 7.14286 [3+] 1.78571 [4+] 1.78571 [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.