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-genmon-plugin-4.0.2/panel-plugin/cmdspawn.c
Examining data/xfce4-genmon-plugin-4.0.2/panel-plugin/cmdspawn.h
Examining data/xfce4-genmon-plugin-4.0.2/panel-plugin/config_gui.c
Examining data/xfce4-genmon-plugin-4.0.2/panel-plugin/config_gui.h
Examining data/xfce4-genmon-plugin-4.0.2/panel-plugin/main.c

FINAL RESULTS:

data/xfce4-genmon-plugin-4.0.2/panel-plugin/cmdspawn.c:98:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp (argv[0], argv);
data/xfce4-genmon-plugin-4.0.2/panel-plugin/main.c:241:17:  [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).
        value = atoi (buf);
data/xfce4-genmon-plugin-4.0.2/panel-plugin/cmdspawn.c:131:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((k = read (aaiPipe[i][RD], str + j, 255)) > 0)
data/xfce4-genmon-plugin-4.0.2/panel-plugin/cmdspawn.c:139:13:  [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).
        i = strlen (str) - 1;
data/xfce4-genmon-plugin-4.0.2/panel-plugin/main.c:472:57:  [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).
    gtk_css_provider_load_from_data (css_provider, css, strlen(css), NULL);
data/xfce4-genmon-plugin-4.0.2/panel-plugin/main.c:558:57:  [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).
    gtk_css_provider_load_from_data (css_provider, css, strlen(css), NULL);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 1438 in approximately 0.05 seconds (29471 lines/second)
Physical Source Lines of Code (SLOC) = 972
Hits@level = [0]   1 [1]   4 [2]   1 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   7 [1+]   6 [2+]   2 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 7.20165 [1+] 6.17284 [2+] 2.05761 [3+] 1.02881 [4+] 1.02881 [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.