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/fuse-zip-0.5.0/config.h
Examining data/fuse-zip-0.5.0/lib/bigBuffer.cpp
Examining data/fuse-zip-0.5.0/lib/bigBuffer.h
Examining data/fuse-zip-0.5.0/lib/extraField.cpp
Examining data/fuse-zip-0.5.0/lib/extraField.h
Examining data/fuse-zip-0.5.0/lib/fileNode.cpp
Examining data/fuse-zip-0.5.0/lib/fileNode.h
Examining data/fuse-zip-0.5.0/lib/fuse-zip.cpp
Examining data/fuse-zip-0.5.0/lib/fuse-zip.h
Examining data/fuse-zip-0.5.0/lib/fuseZipData.cpp
Examining data/fuse-zip-0.5.0/lib/fuseZipData.h
Examining data/fuse-zip-0.5.0/lib/types.h
Examining data/fuse-zip-0.5.0/main.cpp
Examining data/fuse-zip-0.5.0/performance_tests/kio_copy/main.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/common.h
Examining data/fuse-zip-0.5.0/tests/whitebox/extraFieldTest.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/fileNodeTestUsage.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/filename_validator.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/fuseInterfaceTest.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/ltstrTest.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/zip_bad_structure.cpp
Examining data/fuse-zip-0.5.0/tests/whitebox/zip_open_failure.cpp

FINAL RESULTS:

data/fuse-zip-0.5.0/lib/fileNode.cpp:486:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
void FileNode::chmod (mode_t mode) {
data/fuse-zip-0.5.0/lib/fileNode.h:155:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    void chmod (mode_t mode);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:474:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    node->chmod(mode);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:403:21:  [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(name, new_name.c_str());
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:404:21:  [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(name + len, nn->full_name.c_str() + oldLen);
data/fuse-zip-0.5.0/main.cpp:147:9:  [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(fileName, F_OK) == 0 && access(fileName, W_OK) != 0) {
data/fuse-zip-0.5.0/main.cpp:147:40:  [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(fileName, F_OK) == 0 && access(fileName, W_OK) != 0) {
data/fuse-zip-0.5.0/main.cpp:155:13:  [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(dirName, F_OK) == 0 && access(dirName, W_OK) != 0) {
data/fuse-zip-0.5.0/main.cpp:155:43:  [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(dirName, F_OK) == 0 && access(dirName, W_OK) != 0) {
data/fuse-zip-0.5.0/lib/fuseZipData.cpp:36:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *tmpDir = getenv("TMP");
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:106: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(dest, m_ptr + offset, count);
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:140: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(m_ptr + offset, src, count);
data/fuse-zip-0.5.0/lib/fileNode.cpp:222:15:  [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 FileNode::open() {
data/fuse-zip-0.5.0/lib/fileNode.h:110:9:  [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 open();
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:54: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 err_str[ERROR_STR_BUF_LEN];
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:210:22:  [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).
        return node->open();
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:236: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).
    return node->open();
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:296:22:  [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).
    if ((res = node->open()) != 0) {
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:430:27:  [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.
int fusezip_utimens(const char *path, const struct timespec tv[2]) {
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:531:22:  [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).
    if ((res = node->open()) != 0) {
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:558:22:  [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).
    if ((res = node->open()) != 0) {
data/fuse-zip-0.5.0/lib/fuse-zip.h:88:27:  [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.
int fusezip_utimens(const char *path, const struct timespec tv[2]);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:213: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[0xff];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:214: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 empty[0xff];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:239: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[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:240: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 empty[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:274: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[BigBuffer::chunkSize];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:275: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 empty[BigBuffer::chunkSize];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:287: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[0xff];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:288: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[0xff];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:317: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[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:318: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 expected[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:341: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[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:342: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 expected[n];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:376: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[0xff];
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:388: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[n];
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:101:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(char *dest, zip_uint64_t offset, size_t count) const {
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:200:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int BigBuffer::read(char *buf, size_t size, zip_uint64_t offset) const {
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:211:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size_t r = chunks[chunk].read(buf, pos, size);
data/fuse-zip-0.5.0/lib/bigBuffer.cpp:266:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int r = b->buf->read((char*)data, len, b->pos);
data/fuse-zip-0.5.0/lib/bigBuffer.h:108:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(char *buf, size_t size, zip_uint64_t offset) const;
data/fuse-zip-0.5.0/lib/fileNode.cpp:250:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int FileNode::read(char *buf, size_t sz, zip_uint64_t offset) {
data/fuse-zip-0.5.0/lib/fileNode.cpp:252:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return buffer->read(buf, sz, offset);
data/fuse-zip-0.5.0/lib/fileNode.h:111:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(char *buf, size_t size, zip_uint64_t offset);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:263:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return ((FileNode*)fi->fh)->read(buf, size, offset);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:373: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).
    int len = strlen(new_path);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:374: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 oldLen = strlen(path + 1) + 1;
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:406:25:  [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(name, "/");
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:537:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int count = node->read(buf, size - 1, 0);
data/fuse-zip-0.5.0/lib/fuse-zip.cpp:564:29:  [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).
    res = node->write(dest, strlen(dest), 0);
data/fuse-zip-0.5.0/lib/fuseZipData.cpp:152: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).
    converted.reserve(strlen(fname) + strlen(ROOT_PREFIX) + 1);
data/fuse-zip-0.5.0/lib/fuseZipData.cpp:152:39:  [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).
    converted.reserve(strlen(fname) + strlen(ROOT_PREFIX) + 1);
data/fuse-zip-0.5.0/lib/fuseZipData.cpp:171:22:  [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).
            fname += strlen("../");
data/fuse-zip-0.5.0/lib/types.h:42: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).
        for (e1 = s1 + strlen(s1) - 1; e1 > s1 && *e1 == '/'; --e1);
data/fuse-zip-0.5.0/lib/types.h:43: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).
        for (e2 = s2 + strlen(s2) - 1; e2 > s2 && *e2 == '/'; --e2);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:219:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, 100, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:222:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, 100, 100);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:226:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, 10, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:231:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, 10, BigBuffer::chunkSize - 5);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:245:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, n, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:248:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, n, 100);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:252:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, 10, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:257:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, n, BigBuffer::chunkSize - 5);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:262:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, n, 1);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:267:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf, n, 1);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:280:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nr = b.read(buf, BigBuffer::chunkSize, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:301:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf2, 30, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:309:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr = bb.read(buf2, 20, 10);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:332:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nr = b.read(buf, n, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:356:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nr = b.read(buf, n, 0);
data/fuse-zip-0.5.0/tests/whitebox/bigBufferTest.cpp:465:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(bb.read(buf, size, 0) == size);
data/fuse-zip-0.5.0/tests/whitebox/fileNodeTestUsage.cpp:96:47:  [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).
    assert (n->name == n->full_name.c_str() + strlen("dir/"));
data/fuse-zip-0.5.0/tests/whitebox/fileNodeTestUsage.cpp:100:47:  [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).
    assert (n->name == n->full_name.c_str() + strlen("dir/dir2/dir3/"));
data/fuse-zip-0.5.0/tests/whitebox/fileNodeTestUsage.cpp:108:47:  [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).
    assert (n->name == n->full_name.c_str() + strlen("dir/"));
data/fuse-zip-0.5.0/tests/whitebox/fileNodeTestUsage.cpp:112:47:  [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).
    assert (n->name == n->full_name.c_str() + strlen("dir/dir2/dir3/"));
data/fuse-zip-0.5.0/tests/whitebox/filename_validator.cpp:126:42:  [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).
        assert(strncmp(e.what(), prefix, strlen(prefix)) == 0);
data/fuse-zip-0.5.0/tests/whitebox/filename_validator.cpp:139:42:  [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).
        assert(strncmp(e.what(), prefix, strlen(prefix)) == 0);
data/fuse-zip-0.5.0/tests/whitebox/zip_bad_structure.cpp:36:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    return strncpy(buf, "Expected error", len) - buf;
data/fuse-zip-0.5.0/tests/whitebox/zip_open_failure.cpp:31:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    return strncpy(buf, "Expected error", len) - buf;

ANALYSIS SUMMARY:

Hits = 79
Lines analyzed = 4977 in approximately 0.17 seconds (30042 lines/second)
Physical Source Lines of Code (SLOC) = 3461
Hits@level = [0]  24 [1]  43 [2]  26 [3]   1 [4]   6 [5]   3
Hits@level+ = [0+] 103 [1+]  79 [2+]  36 [3+]  10 [4+]   9 [5+]   3
Hits/KSLOC@level+ = [0+] 29.7602 [1+] 22.8258 [2+] 10.4016 [3+] 2.88934 [4+] 2.6004 [5+] 0.866802
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.