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/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.c
Examining data/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.h

FINAL RESULTS:

data/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.c:36:9:  [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.
typedef char static_assertion__unexpected_sha1_ctx_size[(offsetof(struct sha1_ctx, h[5]) == SHA1_CTX_SIZE)?1:-1];
data/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.c:219: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(w, buf, 64);
data/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.c:237: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(ctx->buf + index, data, to_fill);
data/haskell-cryptohash-sha1-0.11.100.1/cbits/sha1.c:254: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(ctx->buf + index, data, len);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 321 in approximately 0.03 seconds (9483 lines/second)
Physical Source Lines of Code (SLOC) = 224
Hits@level = [0]   0 [1]   0 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 17.8571 [1+] 17.8571 [2+] 17.8571 [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.