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/wmsystemtray-1.4+git20150508/fdtray.c
Examining data/wmsystemtray-1.4+git20150508/fdtray.h
Examining data/wmsystemtray-1.4+git20150508/wmsystemtray.c
Examining data/wmsystemtray-1.4+git20150508/wmsystemtray.h
Examining data/wmsystemtray-1.4+git20150508/b0rken/malloc.c

FINAL RESULTS:

data/wmsystemtray-1.4+git20150508/wmsystemtray.c:581:5:  [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(stderr, fmt, ap);
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:593:5:  [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(stderr, fmt, ap);
data/wmsystemtray-1.4+git20150508/wmsystemtray.h:127:62:  [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.
void warn(int level, char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
data/wmsystemtray-1.4+git20150508/wmsystemtray.h:128:60:  [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.
void die(char *fmt, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
data/wmsystemtray-1.4+git20150508/fdtray.c:211: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[50];
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:256: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[42];
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:281:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%d/%d", current_page+1, pages);
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:289:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%d", i);
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:364: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           hostname[256];
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:373: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[1024];
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:282: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).
            x = strlen(buf);
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:290:66:  [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).
            XDrawString(display, iconwin[i], gc10x20, 8,50, buf, strlen(buf));
data/wmsystemtray-1.4+git20150508/wmsystemtray.c:487:5:  [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.
    strncpy(buf, "selwindow", sizeof(buf));

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 1270 in approximately 0.05 seconds (26861 lines/second)
Physical Source Lines of Code (SLOC) = 1005
Hits@level = [0]  23 [1]   3 [2]   6 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  36 [1+]  13 [2+]  10 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 35.8209 [1+] 12.9353 [2+] 9.95025 [3+] 3.9801 [4+] 3.9801 [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.