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/gphotofs-0.5/gphotofs.c

FINAL RESULTS:

data/gphotofs-0.5/gphotofs.c:632:43:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                __attribute__((__format__(printf,3,0)))
data/gphotofs-0.5/gphotofs.c:646:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vfprintf (logfile, format, args);
data/gphotofs-0.5/gphotofs.c:393:10:  [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, data + offset, size);
data/gphotofs-0.5/gphotofs.c:422:4:  [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(openFile->buf+offset, wbuf, size);
data/gphotofs-0.5/gphotofs.c:518:7:  [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 (data, openFile->buf, openFile->size);
data/gphotofs-0.5/gphotofs.c:661: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).
   fd = open("/tmp/gpfs.log",O_WRONLY|O_CREAT,0600);
data/gphotofs-0.5/gphotofs.c:879:6:  [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 (newargv+2,argv+1,sizeof(char*)*(argc-1));

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 885 in approximately 0.08 seconds (11098 lines/second)
Physical Source Lines of Code (SLOC) = 709
Hits@level = [0]   2 [1]   0 [2]   5 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   9 [1+]   7 [2+]   7 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 12.6939 [1+] 9.87306 [2+] 9.87306 [3+] 2.82087 [4+] 2.82087 [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.