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/xfce4-systemload-plugin-1.2.3/panel-plugin/systemload.c
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/uptime.c
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/uptime.h
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.h
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/cpu.c
Examining data/xfce4-systemload-plugin-1.2.3/panel-plugin/cpu.h

FINAL RESULTS:

data/xfce4-systemload-plugin-1.2.3/panel-plugin/cpu.c:61: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).
    fd = fopen(PROC_STAT, "r");
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:47:8:  [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 char MemInfoBuf[MEMINFOBUFSIZE];
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:65: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).
    if ((fd = open("/proc/meminfo", O_RDONLY)) < 0)
data/xfce4-systemload-plugin-1.2.3/panel-plugin/uptime.c:51: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).
    fd = fopen(PROC_UPTIME, "r");
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:70:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((n = read(fd, MemInfoBuf, MEMINFOBUFSIZE - 1)) == MEMINFOBUFSIZE - 1)
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:81:41:  [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 (!b_MTotal || !sscanf(b_MTotal + strlen("MemTotal"), ": %lu", &MTotal))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:85: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).
    if (!b_MFree || !sscanf(b_MFree + strlen("MemFree"), ": %lu", &MFree))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:89:45:  [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 (!b_MBuffers || !sscanf(b_MBuffers + strlen("Buffers"), ": %lu", &MBuffers))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:93:43:  [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 (!b_MCached || !sscanf(b_MCached + strlen("Cached"), ": %lu", &MCached))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:98: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).
    if (b_MAvail && sscanf(b_MAvail + strlen("MemAvailable"), ": %lu", &MAvail))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:106:41:  [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 (!b_STotal || !sscanf(b_STotal + strlen("SwapTotal"), ": %lu", &STotal))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/memswap.c:110: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).
    if (!b_SFree || !sscanf(b_SFree + strlen("SwapFree"), ": %lu", &SFree))
data/xfce4-systemload-plugin-1.2.3/panel-plugin/systemload.c:460: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).
            css, strlen(css), NULL);
data/xfce4-systemload-plugin-1.2.3/panel-plugin/systemload.c:532: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).
            if (strlen(value) > 0)

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 2087 in approximately 0.06 seconds (34695 lines/second)
Physical Source Lines of Code (SLOC) = 1537
Hits@level = [0]  10 [1]  10 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  24 [1+]  14 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 15.6148 [1+] 9.10865 [2+] 2.60247 [3+]   0 [4+]   0 [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.