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/bindfs-1.14.7/tests/odirect_write.c
Examining data/bindfs-1.14.7/tests/fcntl_locker.c
Examining data/bindfs-1.14.7/tests/readdir_inode.c
Examining data/bindfs-1.14.7/tests/utimens_nofollow.c
Examining data/bindfs-1.14.7/tests/internals/test_common.h
Examining data/bindfs-1.14.7/tests/internals/test_rate_limiter.c
Examining data/bindfs-1.14.7/tests/internals/test_internals.c
Examining data/bindfs-1.14.7/tests/internals/test_common.c
Examining data/bindfs-1.14.7/tests/test_dir_rewind.c
Examining data/bindfs-1.14.7/tests/odirect_read.c
Examining data/bindfs-1.14.7/src/misc.h
Examining data/bindfs-1.14.7/src/userinfo.c
Examining data/bindfs-1.14.7/src/userinfo.h
Examining data/bindfs-1.14.7/src/usermap.c
Examining data/bindfs-1.14.7/src/debug.c
Examining data/bindfs-1.14.7/src/misc.c
Examining data/bindfs-1.14.7/src/debug.h
Examining data/bindfs-1.14.7/src/permchain.h
Examining data/bindfs-1.14.7/src/rate_limiter.h
Examining data/bindfs-1.14.7/src/bindfs.c
Examining data/bindfs-1.14.7/src/usermap.h
Examining data/bindfs-1.14.7/src/permchain.c
Examining data/bindfs-1.14.7/src/rate_limiter.c

FINAL RESULTS:

data/bindfs-1.14.7/src/bindfs.c:696:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    res = readlink(real_path, buf, size - 1);
data/bindfs-1.14.7/src/bindfs.c:814:42:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    res = chown_new_file(real_path, fc, &chown);
data/bindfs-1.14.7/src/bindfs.c:840:42:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    res = chown_new_file(real_path, fc, &chown);
data/bindfs-1.14.7/src/bindfs.c:960:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(real_path, mode) == -1) {
data/bindfs-1.14.7/src/bindfs.c:970:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            if (chmod(real_path, st.st_mode ^ diff) == -1) {
data/bindfs-1.14.7/src/bindfs.c:981:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                if (chmod(real_path, mode) == -1) {
data/bindfs-1.14.7/src/bindfs.c:1133:36:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    chown_new_file(real_path, fc, &chown);
data/bindfs-1.14.7/src/bindfs.c:431:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(procpath, R_OK) == -1)
data/bindfs-1.14.7/src/bindfs.c:433:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(procpath, W_OK) == -1)
data/bindfs-1.14.7/src/bindfs.c:435:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(procpath, X_OK) == -1)
data/bindfs-1.14.7/src/bindfs.c:2044: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(path, settings.original_working_dir);
data/bindfs-1.14.7/src/bindfs.c:2046:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(path, filename);
data/bindfs-1.14.7/src/misc.c:63:9:  [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(ret, s);
data/bindfs-1.14.7/src/misc.c:84:30:  [4] (format) vsnprintf:
  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.
        size_t len = (size_t)vsnprintf(buffer, buffer_size, format, ap);
data/bindfs-1.14.7/src/bindfs.c:332:24:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char* result = realpath(path, NULL);
data/bindfs-1.14.7/src/bindfs.c:529:35:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                also_try_delete = realpath(real_path, NULL);
data/bindfs-1.14.7/src/bindfs.c:536:32:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                unlink_first = realpath(real_path, NULL);
data/bindfs-1.14.7/src/bindfs.c:759:30:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            char *resolved = realpath(resolve_buf.ptr, NULL);
data/bindfs-1.14.7/src/bindfs.c:1770:35:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                settings.mntsrc = realpath(arg, NULL);
data/bindfs-1.14.7/src/bindfs.c:1779:32:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            settings.mntdest = realpath(arg, NULL);
data/bindfs-1.14.7/src/bindfs.c:262:33:  [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 int bindfs_utimens(const char *path, const struct timespec tv[2]);
data/bindfs-1.14.7/src/bindfs.c:402:18:  [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).
        int fd = open(procpath, O_RDONLY);
data/bindfs-1.14.7/src/bindfs.c:1077:33:  [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 int bindfs_utimens(const char *path, const struct timespec ts[2])
data/bindfs-1.14.7/src/bindfs.c:1126: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(real_path, flags, mode & 0777);
data/bindfs-1.14.7/src/bindfs.c:1156: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(real_path, flags);
data/bindfs-1.14.7/src/bindfs.c:1194:9:  [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(buf, target_buf, size);
data/bindfs-1.14.7/src/bindfs.c:1221:9:  [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(source_buf, buf, size);
data/bindfs-1.14.7/src/bindfs.c:1347: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 new_name[MAXPATHLEN];
data/bindfs-1.14.7/src/bindfs.c:1348:9:  [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(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
data/bindfs-1.14.7/src/bindfs.c:1349:9:  [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(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
data/bindfs-1.14.7/src/bindfs.c:1385: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 new_name[MAXPATHLEN];
data/bindfs-1.14.7/src/bindfs.c:1386:9:  [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(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
data/bindfs-1.14.7/src/bindfs.c:1387:9:  [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(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
data/bindfs-1.14.7/src/bindfs.c:1468: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 new_name[MAXPATHLEN];
data/bindfs-1.14.7/src/bindfs.c:1469:9:  [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(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
data/bindfs-1.14.7/src/bindfs.c:1470:9:  [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(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
data/bindfs-1.14.7/src/bindfs.c:1883:10:  [2] (misc) fopen:
  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).
    fp = fopen(file, "r");
data/bindfs-1.14.7/src/bindfs.c:2048: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, O_CREAT | O_WRONLY, 0666);
data/bindfs-1.14.7/src/bindfs.c:2544:26:  [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).
    settings.mntsrc_fd = open(settings.mntsrc, O_RDONLY);
data/bindfs-1.14.7/src/misc.c:67:9:  [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(ret, s, (endloc - s) * sizeof(char));
data/bindfs-1.14.7/src/misc.c:211:5:  [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(&a->ptr[dest], src, src_size);
data/bindfs-1.14.7/src/permchain.c:37: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 operands[16]; /* a subset of rwxXDstugo */
data/bindfs-1.14.7/src/permchain.c:78:5:  [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(buf, start, len);
data/bindfs-1.14.7/tests/fcntl_locker.c:23:11:  [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).
    fd1 = open(argv[1], O_RDWR);
data/bindfs-1.14.7/tests/fcntl_locker.c:28:11:  [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).
    fd2 = open(argv[2], O_RDWR);
data/bindfs-1.14.7/tests/internals/test_internals.c:22: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 buf[256];
data/bindfs-1.14.7/tests/internals/test_internals.c:24:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "/foo/bar/baz");
data/bindfs-1.14.7/tests/internals/test_internals.c:27:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "/foo/bar");
data/bindfs-1.14.7/tests/internals/test_internals.c:30:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "/foo");
data/bindfs-1.14.7/tests/internals/test_internals.c:33:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "/foo/");
data/bindfs-1.14.7/tests/internals/test_internals.c:39:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "foo");
data/bindfs-1.14.7/tests/internals/test_internals.c:42:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "foo/bar");
data/bindfs-1.14.7/tests/internals/test_internals.c:45:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "./foo/bar");
data/bindfs-1.14.7/tests/internals/test_internals.c:48:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buf, "./foo");
data/bindfs-1.14.7/tests/odirect_read.c:21: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).
    int fd = open(argv[1], O_RDONLY | O_DIRECT);
data/bindfs-1.14.7/tests/odirect_write.c:22: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).
    int fd = open(argv[1], O_WRONLY | O_CREAT | O_DIRECT, 0644);
data/bindfs-1.14.7/tests/test_dir_rewind.c:22: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).
    int fd = open(".", O_RDONLY | O_DIRECTORY);
data/bindfs-1.14.7/tests/test_dir_rewind.c:28: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 buf1[BUF_SIZE];
data/bindfs-1.14.7/tests/test_dir_rewind.c:29: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 buf2[BUF_SIZE];
data/bindfs-1.14.7/src/bindfs.c:732:19:  [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).
        int len = strlen(real_path);
data/bindfs-1.14.7/src/bindfs.c:757:28:  [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).
            int file_len = strlen(de->d_name) + 1;  // (include null terminator)
data/bindfs-1.14.7/src/bindfs.c:1420:34:  [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 thislen = strlen(curr) + 1;
data/bindfs-1.14.7/src/bindfs.c:1763:40:  [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 (strncmp(arg, "/proc/", strlen("/proc/")) == 0) {
data/bindfs-1.14.7/src/bindfs.c:1785:36:  [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).
            settings.mntdest_len = strlen(settings.mntdest);
data/bindfs-1.14.7/src/bindfs.c:1859:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read;
data/bindfs-1.14.7/src/bindfs.c:1892:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read > 0 && line[read - 1] == '\n') {
data/bindfs-1.14.7/src/bindfs.c:1973:18:  [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).
            q += strlen("/@");
data/bindfs-1.14.7/src/bindfs.c:2002:18:  [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).
            q += strlen("/");
data/bindfs-1.14.7/src/bindfs.c:2043:25:  [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).
    char *path = malloc(strlen(settings.original_working_dir) + 1 + strlen(filename) + 1);
data/bindfs-1.14.7/src/bindfs.c:2043:69:  [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).
    char *path = malloc(strlen(settings.original_working_dir) + 1 + strlen(filename) + 1);
data/bindfs-1.14.7/src/bindfs.c:2045:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(path, "/");
data/bindfs-1.14.7/src/bindfs.c:2551:31:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    settings.original_umask = umask(0);
data/bindfs-1.14.7/src/misc.c:42:18:  [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).
    int sublen = strlen(sub);
data/bindfs-1.14.7/src/misc.c:43:16:  [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).
    int left = strlen(s);
data/bindfs-1.14.7/src/misc.c:62: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).
        ret = malloc((strlen(s) + 1) * sizeof(char));
data/bindfs-1.14.7/src/misc.c:76:26:  [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 buffer_size = strlen(format) + 32;
data/bindfs-1.14.7/src/misc.c:119:19:  [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).
        int len = strlen(path);
data/bindfs-1.14.7/src/userinfo.c:134:24:  [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).
        username_len = strlen(pw->pw_name) + 1;
data/bindfs-1.14.7/tests/internals/test_internals.c:36:5:  [1] (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). Risk is low because the source is a constant character.
    strcpy(buf, "/");
data/bindfs-1.14.7/tests/internals/test_internals.c:51:5:  [1] (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). Risk is low because the source is a constant character.
    strcpy(buf, ".");
data/bindfs-1.14.7/tests/odirect_read.c:35:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t amt_read = read(fd, buf, buf_size);

ANALYSIS SUMMARY:

Hits = 81
Lines analyzed = 4615 in approximately 0.15 seconds (30915 lines/second)
Physical Source Lines of Code (SLOC) = 3531
Hits@level = [0]  82 [1]  22 [2]  39 [3]   6 [4]   7 [5]   7
Hits@level+ = [0+] 163 [1+]  81 [2+]  59 [3+]  20 [4+]  14 [5+]   7
Hits/KSLOC@level+ = [0+] 46.1626 [1+] 22.9397 [2+] 16.7091 [3+] 5.66412 [4+] 3.96488 [5+] 1.98244
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.