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/datefudge-1.24/datefudge.c FINAL RESULTS: data/datefudge-1.24/datefudge.c:29:30: [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. const char * const fud = getenv("DATEFUDGE"); data/datefudge-1.24/datefudge.c:35:16: [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. dostatic = getenv("DATEFUDGE_DOSTATIC") != NULL; data/datefudge-1.24/datefudge.c:32: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). fudge = atoi(fud); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 91 in approximately 0.02 seconds (4692 lines/second) Physical Source Lines of Code (SLOC) = 71 Hits@level = [0] 0 [1] 0 [2] 1 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 42.2535 [1+] 42.2535 [2+] 42.2535 [3+] 28.169 [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.