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-llfuse-1.3.6+dfsg/src/xattr.h
Examining data/python-llfuse-1.3.6+dfsg/src/llfuse.c
Examining data/python-llfuse-1.3.6+dfsg/src/lock.h
Examining data/python-llfuse-1.3.6+dfsg/src/llfuse.h
Examining data/python-llfuse-1.3.6+dfsg/src/darwin_compat.h
Examining data/python-llfuse-1.3.6+dfsg/src/gettime.h
Examining data/python-llfuse-1.3.6+dfsg/src/darwin_compat.c
Examining data/python-llfuse-1.3.6+dfsg/src/lock.c
Examining data/python-llfuse-1.3.6+dfsg/src/macros.c

FINAL RESULTS:

data/python-llfuse-1.3.6+dfsg/src/llfuse.c:753:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54552:18:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if (!setstate) PyErr_Clear();
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54553:18:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54553:58:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54574:16:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    Py_XDECREF(setstate);
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:706:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ascii_chars[128];
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:10006:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void)(memcpy(__pyx_v_entry->attr, __pyx_v_stat, (sizeof(struct stat))));
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:52619:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54144:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static const char DIGIT_PAIRS_10[2*10*10+1] = {
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54156:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char DIGIT_PAIRS_8[2*8*8+1] = {
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54166:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char DIGITS_HEX[2*16+1] = {
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54258:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char digits[sizeof(long)*3+2];
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:59524:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ctversion[4], rtversion[4];
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:59528:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char message[200];
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:59565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char warning[200];
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:631:87:  [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).
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:751:52:  [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).
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:883:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  mode_t umask;
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:27371:32:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  __pyx_t_5 = __pyx_v_context->umask;
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:28121:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void)(strncpy((__pyx_v_f_args->argv[__pyx_v_i]), __pyx_v_arg, (__pyx_v_size + 1)));
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:31431:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  __pyx_t_1 = __Pyx_PyInt_From_mode_t(__pyx_v_self->umask); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 327, __pyx_L1_error)
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:31496:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  __pyx_t_4 = __Pyx_PyInt_From_mode_t(__pyx_v_self->umask); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3, __pyx_L1_error)
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:50829:56:  [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).
  __pyx_t_4 = __Pyx_decode_c_string(LLFUSE_VERSION, 0, strlen(LLFUSE_VERSION), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 152, __pyx_L1_error)
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:54586:23:  [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 slen = strlen(cstring);
data/python-llfuse-1.3.6+dfsg/src/llfuse.c:59655:65:  [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).
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));

ANALYSIS SUMMARY:

Hits = 25
Lines analyzed = 60645 in approximately 1.55 seconds (39188 lines/second)
Physical Source Lines of Code (SLOC) = 41459
Hits@level = [0]   0 [1]  10 [2]  10 [3]   4 [4]   1 [5]   0
Hits@level+ = [0+]  25 [1+]  25 [2+]  15 [3+]   5 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 0.603005 [1+] 0.603005 [2+] 0.361803 [3+] 0.120601 [4+] 0.0241202 [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.