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/trayer-1.1.8/bg.c
Examining data/trayer-1.1.8/bg.h
Examining data/trayer-1.1.8/dbg.h
Examining data/trayer-1.1.8/eggmarshalers.c
Examining data/trayer-1.1.8/eggmarshalers.h
Examining data/trayer-1.1.8/eggtraymanager.c
Examining data/trayer-1.1.8/eggtraymanager.h
Examining data/trayer-1.1.8/fixedtip.c
Examining data/trayer-1.1.8/fixedtip.h
Examining data/trayer-1.1.8/gdk-helper.c
Examining data/trayer-1.1.8/gdk-helper.h
Examining data/trayer-1.1.8/main.c
Examining data/trayer-1.1.8/main.h
Examining data/trayer-1.1.8/misc.c
Examining data/trayer-1.1.8/misc.h
Examining data/trayer-1.1.8/panel.c
Examining data/trayer-1.1.8/panel.h

FINAL RESULTS:

data/trayer-1.1.8/dbg.h:3:27:  [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.
#define ERR(fmt, args...) fprintf(stderr, fmt, ## args)
data/trayer-1.1.8/dbg.h:4:28:  [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.
#define DBG2(fmt, args...) fprintf(stderr, "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args)
data/trayer-1.1.8/dbg.h:14:27:  [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.
#define DBG(fmt, args...) fprintf(stderr, "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args)
data/trayer-1.1.8/misc.c:613:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        g_strdup_printf("%s%s", getenv("HOME"), file+1)
data/trayer-1.1.8/eggtraymanager.c:264: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 ((msg->str + msg->len - msg->remaining_len),
data/trayer-1.1.8/panel.c:437: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[256];
data/trayer-1.1.8/panel.c:511:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->margin = atoi(argv[i]);
data/trayer-1.1.8/panel.c:529:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->width = atoi(argv[i]);
data/trayer-1.1.8/panel.c:547:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->height = atoi(argv[i]);
data/trayer-1.1.8/panel.c:583:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->alpha = atoi(argv[i]);
data/trayer-1.1.8/panel.c:601:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                distance = atoi(argv[i]);
data/trayer-1.1.8/panel.c:628:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                padding = atoi(argv[i]);
data/trayer-1.1.8/panel.c:638:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    p->monitor = atoi(argv[i]);
data/trayer-1.1.8/panel.c:650:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->icon_spacing = atoi(argv[i]);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 3045 in approximately 0.08 seconds (36925 lines/second)
Physical Source Lines of Code (SLOC) = 2384
Hits@level = [0]  29 [1]   0 [2]  10 [3]   1 [4]   3 [5]   0
Hits@level+ = [0+]  43 [1+]  14 [2+]  14 [3+]   4 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 18.0369 [1+] 5.87248 [2+] 5.87248 [3+] 1.67785 [4+] 1.25839 [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.