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/libmatthew-java-0.8.1/cx/ath/matthew/unix/java-unix.h Examining data/libmatthew-java-0.8.1/unix-java.c Examining data/libmatthew-java-0.8.1/cgi-java.c Examining data/libmatthew-java-0.8.1/unix-java.h Examining data/libmatthew-java-0.8.1/cgi-java.h FINAL RESULTS: data/libmatthew-java-0.8.1/cgi-java.c:49:17: [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. char *eval = getenv(estr); data/libmatthew-java-0.8.1/unix-java.c:387:4: [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[CMSG_SPACE(sizeof(struct ucred))]; data/libmatthew-java-0.8.1/unix-java.c:430:4: [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[CMSG_SPACE(sizeof(struct ucred))]; data/libmatthew-java-0.8.1/unix-java.c:89:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(shifted, caddr, slen-1); data/libmatthew-java-0.8.1/unix-java.c:92:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sad->sun_path, caddr, slen); data/libmatthew-java-0.8.1/unix-java.c:163:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(shifted, caddr, slen-1); data/libmatthew-java-0.8.1/unix-java.c:166:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sad->sun_path, caddr, slen); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 839 in approximately 0.04 seconds (19767 lines/second) Physical Source Lines of Code (SLOC) = 501 Hits@level = [0] 3 [1] 4 [2] 2 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 7 [2+] 3 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 19.9601 [1+] 13.9721 [2+] 5.98802 [3+] 1.99601 [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.