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/uphpmvault-0.8/dumpw.h
Examining data/uphpmvault-0.8/dumpw.cc
Examining data/uphpmvault-0.8/uphpmvault.cc
Examining data/uphpmvault-0.8/exception.h
Examining data/uphpmvault-0.8/oprintf.h

FINAL RESULTS:

data/uphpmvault-0.8/exception.h:30:5:  [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.
    vsnprintf (sz, cb, szFmt, ap); }
data/uphpmvault-0.8/oprintf.h:30:5:  [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.
    vsnprintf (sz, sizeof (sz), szFormat, ap);
data/uphpmvault-0.8/oprintf.h:26: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 sz[512];
data/uphpmvault-0.8/uphpmvault.cc:321: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 (msg.data, &s, sizeof (s));
data/uphpmvault-0.8/uphpmvault.cc:323: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 (msg.data + 2, rgb, cbSend);
data/uphpmvault-0.8/uphpmvault.cc:375: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 rgb[1500];
data/uphpmvault-0.8/uphpmvault.cc:455: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 fh = ::open (args.szImageFile, O_RDONLY);
data/uphpmvault-0.8/uphpmvault.cc:281: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).
    int cbMessage = sizeof (struct message_tftp) + strlen (szFile) + 1
data/uphpmvault-0.8/uphpmvault.cc:282:9:  [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).
      + strlen (szMode) + 1;
data/uphpmvault-0.8/uphpmvault.cc:297:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep (US_BETWEEN_RETRIES);
data/uphpmvault-0.8/uphpmvault.cc:333:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep (US_BETWEEN_RETRIES);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 682 in approximately 0.03 seconds (25403 lines/second)
Physical Source Lines of Code (SLOC) = 425
Hits@level = [0]  19 [1]   4 [2]   5 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  30 [1+]  11 [2+]   7 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 70.5882 [1+] 25.8824 [2+] 16.4706 [3+] 4.70588 [4+] 4.70588 [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.