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/libafs-pag-perl-1.02/kafs/sys-solaris.c Examining data/libafs-pag-perl-1.02/kafs/sys-syscall.c Examining data/libafs-pag-perl-1.02/kafs/sys-darwin8.c Examining data/libafs-pag-perl-1.02/kafs/sys-darwin10.c Examining data/libafs-pag-perl-1.02/kafs/sys-linux.c Examining data/libafs-pag-perl-1.02/kafs/kafs.c Examining data/libafs-pag-perl-1.02/portable/system.h Examining data/libafs-pag-perl-1.02/portable/kafs.h Examining data/libafs-pag-perl-1.02/portable/k_haspag.c Examining data/libafs-pag-perl-1.02/portable/stdbool.h Examining data/libafs-pag-perl-1.02/portable/macros.h FINAL RESULTS: data/libafs-pag-perl-1.02/portable/system.h:78:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/libafs-pag-perl-1.02/portable/system.h:78:19: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/libafs-pag-perl-1.02/kafs/sys-darwin10.c:81:10: [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("/dev/openafs_ioctl", O_RDWR); data/libafs-pag-perl-1.02/kafs/sys-darwin8.c:72:10: [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("/dev/openafs_ioctl", O_RDWR); data/libafs-pag-perl-1.02/kafs/sys-linux.c:71:10: [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("/proc/fs/openafs/afs_ioctl", O_RDWR); data/libafs-pag-perl-1.02/kafs/sys-linux.c:73:14: [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("/proc/fs/nnpfs/afs_ioctl", O_RDWR); data/libafs-pag-perl-1.02/kafs/sys-solaris.c:103:10: [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("/dev/afs", O_RDWR); data/libafs-pag-perl-1.02/portable/system.h:109:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1126 in approximately 0.10 seconds (11786 lines/second) Physical Source Lines of Code (SLOC) = 501 Hits@level = [0] 0 [1] 0 [2] 6 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 8 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 15.9681 [1+] 15.9681 [2+] 15.9681 [3+] 3.99202 [4+] 3.99202 [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.