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/pps-tools-1.0.2/ppsctl.c Examining data/pps-tools-1.0.2/ppsldisc.c Examining data/pps-tools-1.0.2/ppstest.c Examining data/pps-tools-1.0.2/ppswatch.c Examining data/pps-tools-1.0.2/timepps.h FINAL RESULTS: data/pps-tools-1.0.2/ppsctl.c:159:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "bBfFach", long_options, &option_index); data/pps-tools-1.0.2/ppswatch.c:182:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "acm:h", long_options, &option_index); data/pps-tools-1.0.2/ppsctl.c:47:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = open(path, O_RDWR); data/pps-tools-1.0.2/ppsldisc.c:45:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(argv[1], O_RDWR); data/pps-tools-1.0.2/ppstest.c:36:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = open(path, O_RDWR); data/pps-tools-1.0.2/ppswatch.c:50:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = open(path, O_RDWR); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 984 in approximately 0.03 seconds (28364 lines/second) Physical Source Lines of Code (SLOC) = 714 Hits@level = [0] 52 [1] 0 [2] 4 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 58 [1+] 6 [2+] 6 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 81.2325 [1+] 8.40336 [2+] 8.40336 [3+] 2.80112 [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.