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/python-xattr-0.9.7/xattr/lib_build.c Examining data/python-xattr-0.9.7/xattr/lib_build.h FINAL RESULTS: data/python-xattr-0.9.7/xattr/lib_build.c:405:13: [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. snprintf((char *)(namebuf + nsize), esize + 1, data/python-xattr-0.9.7/xattr/lib_build.c:293: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(path, data/python-xattr-0.9.7/xattr/lib_build.c:343: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(path, data/python-xattr-0.9.7/xattr/lib_build.c:378: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(path, data/python-xattr-0.9.7/xattr/lib_build.c:276:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read(xfd, value, size); data/python-xattr-0.9.7/xattr/lib_build.c:403:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). esize = strlen(entry->d_name); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 582 in approximately 0.03 seconds (21228 lines/second) Physical Source Lines of Code (SLOC) = 489 Hits@level = [0] 0 [1] 2 [2] 3 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 4 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 12.2699 [1+] 12.2699 [2+] 8.17996 [3+] 2.04499 [4+] 2.04499 [5+] 0 Dot directories skipped = 2 (--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.