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/libbloom-1.6/bloom.c
Examining data/libbloom-1.6/bloom.h
Examining data/libbloom-1.6/misc/test/basic.c
Examining data/libbloom-1.6/misc/test/perf.c
Examining data/libbloom-1.6/misc/test/test.c
Examining data/libbloom-1.6/murmur2/MurmurHash2.c
Examining data/libbloom-1.6/murmur2/murmurhash2.h

FINAL RESULTS:

data/libbloom-1.6/misc/test/perf.c:44:12:  [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("/dev/urandom", O_RDONLY);
data/libbloom-1.6/misc/test/perf.c:121: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).
    int count = atoi(argv[2]);
data/libbloom-1.6/misc/test/test.c:79: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 block[elem_size];
data/libbloom-1.6/misc/test/test.c:85:12:  [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("/dev/urandom", O_RDONLY);
data/libbloom-1.6/misc/test/test.c:102: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(savedp, block, elem_size);
data/libbloom-1.6/misc/test/test.c:267:14:  [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).
    for (e = atoi(argv[2]); e <= atoi(argv[3]); e+= atoi(argv[4])) {
data/libbloom-1.6/misc/test/test.c:267:34:  [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).
    for (e = atoi(argv[2]); e <= atoi(argv[3]); e+= atoi(argv[4])) {
data/libbloom-1.6/misc/test/test.c:267:53:  [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).
    for (e = atoi(argv[2]); e <= atoi(argv[3]); e+= atoi(argv[4])) {
data/libbloom-1.6/misc/test/test.c:279:23:  [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).
    return add_random(atoi(argv[2]), atof(argv[3]), atoi(argv[4]), 0, 1, 32, 1);
data/libbloom-1.6/misc/test/test.c:279:53:  [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).
    return add_random(atoi(argv[2]), atof(argv[3]), atoi(argv[4]), 0, 1, 32, 1);
data/libbloom-1.6/misc/test/test.c:286:22:  [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).
    return perf_loop(atoi(argv[2]), atoi(argv[3]));
data/libbloom-1.6/misc/test/test.c:286:37:  [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).
    return perf_loop(atoi(argv[2]), atoi(argv[3]));
data/libbloom-1.6/misc/test/perf.c:45:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(fd, &n, sizeof(uint64_t));
data/libbloom-1.6/misc/test/test.c:101:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(read(fd, block, elem_size) == elem_size);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 889 in approximately 0.05 seconds (16212 lines/second)
Physical Source Lines of Code (SLOC) = 499
Hits@level = [0]  35 [1]   2 [2]  12 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  49 [1+]  14 [2+]  12 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 98.1964 [1+] 28.0561 [2+] 24.0481 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.