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-convmvfs-0.2.6/src/convmvfs.cpp

FINAL RESULTS:

data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:211:10:  [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.
      if(readlink?lstat(p, &stbuf):stat(p, &stbuf)){
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:409:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    chown(ipath.c_str(), cont->uid, cont->gid);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:427:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    chown(ipath.c_str(), cont->uid, cont->gid);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:443:8:  [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.
  st = readlink(ipath.c_str(), path, path_len-1);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:566:6:  [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(ipath.c_str(),mode))
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:631:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if(chown(ipath.c_str(), uid_2set, gid_2set)){
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:115:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, PACKAGE"\t"VERSION"\n"
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:139:3:  [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[OUTINBUFLEN];
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:314: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).
  if( ( fd = open(ipath.c_str(),fi->flags)) == -1 ){
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:142: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).
  size_t ibleft(strlen(inbuf)),obleft(OUTINBUFLEN);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:193:14:  [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 l = strlen(path) + 1;
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:198:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, path, l);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:274:11:  [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 l = strlen(path);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:328:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(fi->fh, buf, size);
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:448:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(path, ipath.c_str(), min(path_len,ipath.size()+1));
data/fuse-convmvfs-0.2.6/src/convmvfs.cpp:770:6:  [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(convmvfs.srcdir)){

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 809 in approximately 0.05 seconds (16039 lines/second)
Physical Source Lines of Code (SLOC) = 642
Hits@level = [0]   3 [1]   7 [2]   2 [3]   0 [4]   1 [5]   6
Hits@level+ = [0+]  19 [1+]  16 [2+]   9 [3+]   7 [4+]   7 [5+]   6
Hits/KSLOC@level+ = [0+] 29.595 [1+] 24.9221 [2+] 14.0187 [3+] 10.9034 [4+] 10.9034 [5+] 9.34579
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.