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-pyxattr-0.7.2/xattr.c

FINAL RESULTS:

data/python-pyxattr-0.7.2/xattr.c:165:27:  [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).
        size_t new_size = strlen(ns) + 1 + strlen(name) + 1;
data/python-pyxattr-0.7.2/xattr.c:165:44:  [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).
        size_t new_size = strlen(ns) + 1 + strlen(name) + 1;
data/python-pyxattr-0.7.2/xattr.c:415:15:  [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).
    ns_size = strlen(ns);
data/python-pyxattr-0.7.2/xattr.c:417:9:  [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).
    if (strlen(name) > (ns_size+1) && !strncmp(name, ns, ns_size) &&
data/python-pyxattr-0.7.2/xattr.c:626:50:  [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).
    for(s = buf_list; s - buf_list < nlist; s += strlen(s) + 1) {
data/python-pyxattr-0.7.2/xattr.c:993:53:  [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).
    for(s = buf, nattrs = 0; (s - buf) < nret; s += strlen(s) + 1) {
data/python-pyxattr-0.7.2/xattr.c:1004:51:  [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).
    for(s = buf, nattrs = 0; s - buf < nret; s += strlen(s) + 1) {
data/python-pyxattr-0.7.2/xattr.c:1079:53:  [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).
    for(s = buf, nattrs = 0; (s - buf) < nret; s += strlen(s) + 1) {
data/python-pyxattr-0.7.2/xattr.c:1090:51:  [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).
    for(s = buf, nattrs = 0; s - buf < nret; s += strlen(s) + 1) {

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1240 in approximately 0.06 seconds (20607 lines/second)
Physical Source Lines of Code (SLOC) = 954
Hits@level = [0]   1 [1]   9 [2]   0 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]   9 [2+]   0 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 10.4822 [1+] 9.43396 [2+]   0 [3+]   0 [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.