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/grml-debootstrap-0.93/packer/fake-uname.c FINAL RESULTS: data/grml-debootstrap-0.93/packer/fake-uname.c:42:33: [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. strncpy(buf->release, ((env = getenv("UTS_RELEASE")) == NULL) ? UTS_RELEASE : env, 65); data/grml-debootstrap-0.93/packer/fake-uname.c:42:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf->release, ((env = getenv("UTS_RELEASE")) == NULL) ? UTS_RELEASE : env, 65); ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 44 in approximately 0.02 seconds (2398 lines/second) Physical Source Lines of Code (SLOC) = 37 Hits@level = [0] 1 [1] 1 [2] 0 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 2 [2+] 1 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 81.0811 [1+] 54.0541 [2+] 27.027 [3+] 27.027 [4+] 0 [5+] 0 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.