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/hsetroot-1.0.2/src/hsetroot.c

FINAL RESULTS:

data/hsetroot-1.0.2/src/hsetroot.c:16:3:  [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.
  printf (PACKAGE_STRING " - " DESCRIPTION "\n"
data/hsetroot-1.0.2/src/hsetroot.c:155:8:  [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 ((strlen (arg) != 7) && (strlen (arg) != 9))
data/hsetroot-1.0.2/src/hsetroot.c:155:31:  [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 ((strlen (arg) != 7) && (strlen (arg) != 9))
data/hsetroot-1.0.2/src/hsetroot.c:162:7:  [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 (strlen (arg) == 9)

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 675 in approximately 0.06 seconds (10661 lines/second)
Physical Source Lines of Code (SLOC) = 613
Hits@level = [0]  47 [1]   3 [2]   0 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  51 [1+]   4 [2+]   1 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 83.1974 [1+] 6.52529 [2+] 1.63132 [3+] 1.63132 [4+] 1.63132 [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.