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/lime-forensics-1.9.1/src/deflate.c
Examining data/lime-forensics-1.9.1/src/disk.c
Examining data/lime-forensics-1.9.1/src/hash.c
Examining data/lime-forensics-1.9.1/src/lime.h
Examining data/lime-forensics-1.9.1/src/main.c
Examining data/lime-forensics-1.9.1/src/tcp.c

FINAL RESULTS:

data/lime-forensics-1.9.1/src/hash.c:197:5:  [4] (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).
    strcpy(p, path);
data/lime-forensics-1.9.1/src/hash.c:199:5:  [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(p, digest);
data/lime-forensics-1.9.1/src/hash.c:161:9:  [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(digest_value + i*2, "%02x", output[i]);
data/lime-forensics-1.9.1/src/lime.h:90:14:  [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.
    unsigned char reserved[8];
data/lime-forensics-1.9.1/src/hash.c:193:17:  [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).
    p = kmalloc(strlen(path) + strlen(digest) + 2, GFP_KERNEL);
data/lime-forensics-1.9.1/src/hash.c:193:32:  [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).
    p = kmalloc(strlen(path) + strlen(digest) + 2, GFP_KERNEL);
data/lime-forensics-1.9.1/src/hash.c:198:5:  [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(p, ".");

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 1071 in approximately 0.03 seconds (33744 lines/second)
Physical Source Lines of Code (SLOC) = 708
Hits@level = [0]   1 [1]   3 [2]   2 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   8 [1+]   7 [2+]   4 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 11.2994 [1+] 9.88701 [2+] 5.64972 [3+] 2.82486 [4+] 2.82486 [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.