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/lxhotkey-0.1.0/plugins/gtk/gtk.c
Examining data/lxhotkey-0.1.0/plugins/gtk/edit.h
Examining data/lxhotkey-0.1.0/plugins/gtk/edit.c
Examining data/lxhotkey-0.1.0/plugins/openbox/openbox.c
Examining data/lxhotkey-0.1.0/src/lxhotkey.h
Examining data/lxhotkey-0.1.0/src/lxhotkey.c

FINAL RESULTS:

data/lxhotkey-0.1.0/src/lxhotkey.c:38:21:  [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.
# define ulc_printf printf
data/lxhotkey-0.1.0/src/lxhotkey.c:115: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(ret, ret_prop, tmp_size);
data/lxhotkey-0.1.0/src/lxhotkey.c:175: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 lockfile[32];
data/lxhotkey-0.1.0/src/lxhotkey.c:182:12:  [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).
    Xnum = atoi(&display[1]);
data/lxhotkey-0.1.0/plugins/gtk/edit.c:728:32:  [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 (len == strlen(opt->values->data))

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 4162 in approximately 0.12 seconds (35776 lines/second)
Physical Source Lines of Code (SLOC) = 3273
Hits@level = [0]  12 [1]   1 [2]   3 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  17 [1+]   5 [2+]   4 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 5.19401 [1+] 1.52765 [2+] 1.22212 [3+] 0.30553 [4+] 0.30553 [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.