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/floatbg-1.0/floatbg.c

FINAL RESULTS:

data/floatbg-1.0/floatbg.c:219:9:  [4] (shell) system:
  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.
        system("gconftool --type string --set /desktop/gnome/background/color_shading_type \"solid\"");
data/floatbg-1.0/floatbg.c:220:9:  [4] (shell) system:
  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.
        system("gconftool --unset /desktop/gnome/background/picture_filename");
data/floatbg-1.0/floatbg.c:223:9:  [4] (shell) system:
  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.
        system("xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-show -n -s false");
data/floatbg-1.0/floatbg.c:224:9:  [4] (shell) system:
  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.
        system("xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/color-style -n -s 0");
data/floatbg-1.0/floatbg.c:274:2:  [4] (shell) system:
  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.
	system(cmd);
data/floatbg-1.0/floatbg.c:279:9:  [4] (shell) system:
  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.
        system(cmd);
data/floatbg-1.0/floatbg.c:195:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom( (int)time(NULL) );
data/floatbg-1.0/floatbg.c:196:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    ticks = (int)random() % MaxTime;
data/floatbg-1.0/floatbg.c:63:1:  [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 str[100];
data/floatbg-1.0/floatbg.c:270:2:  [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 cmd[120];
data/floatbg-1.0/floatbg.c:271:2:  [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(cmd,"gconftool --type string --set /desktop/gnome/background/primary_color \"#%04x%04x%04x\"",
data/floatbg-1.0/floatbg.c:277:9:  [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 cmd[200];
data/floatbg-1.0/floatbg.c:278:9:  [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(cmd,"xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/color1 -n -t uint16 -s %d -t uint16 -s %d -t uint16 -s %d -t uint16 -s 65535", red, green, blue);
data/floatbg-1.0/floatbg.c:290:9:  [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(str,"#%.4x%.4x%.4x",red,green,blue);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 364 in approximately 0.05 seconds (6884 lines/second)
Physical Source Lines of Code (SLOC) = 289
Hits@level = [0]  16 [1]   0 [2]   6 [3]   2 [4]   6 [5]   0
Hits@level+ = [0+]  30 [1+]  14 [2+]  14 [3+]   8 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 103.806 [1+] 48.4429 [2+] 48.4429 [3+] 27.6817 [4+] 20.7612 [5+]   0
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.