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/ratmenu-2.3.22/ratmenu.c

FINAL RESULTS:

data/ratmenu-2.3.22/ratmenu.c:301:2:  [4] (shell) execl:
  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.
	execl(shell, sh_basename, "-c", com, NULL);
data/ratmenu-2.3.22/ratmenu.c:302:2:  [4] (shell) execl:
  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.
	execl("/bin/sh", "sh", "-c", com, NULL);
data/ratmenu-2.3.22/ratmenu.c:192:16:  [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).
			startitem = atoi(argv[++i]) - 1;
data/ratmenu-2.3.22/ratmenu.c:376:3:  [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 keystr[10];
data/ratmenu-2.3.22/ratmenu.c:338:38:  [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).
		wide = XTextWidth(font, labels[i], strlen(labels[i])) + 4;
data/ratmenu-2.3.22/ratmenu.c:528:59:  [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).
                	tx = (wide - XTextWidth(font, labels[j], strlen(labels[j]))) / 2;
data/ratmenu-2.3.22/ratmenu.c:530:58:  [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).
                	tx = wide - XTextWidth(font, labels[j], strlen(labels[j]));
data/ratmenu-2.3.22/ratmenu.c:533:74:  [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).
                XmbDrawString(dpy, menuwin, font, gc, tx, ty, labels[j], strlen(labels[j]));
data/ratmenu-2.3.22/ratmenu.c:555:64:  [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).
                		tx = (wide - XTextWidth(font, labels[i+off], strlen(labels[i+off]))) / 2;
data/ratmenu-2.3.22/ratmenu.c:557:63:  [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).
                		tx = wide - XTextWidth(font, labels[i+off], strlen(labels[i+off]));
data/ratmenu-2.3.22/ratmenu.c:560:79:  [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).
                	XmbDrawString(dpy, menuwin, font, gc, tx, ty, labels[i+off], strlen(labels[i+off]));

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 628 in approximately 0.03 seconds (25098 lines/second)
Physical Source Lines of Code (SLOC) = 480
Hits@level = [0]  13 [1]   7 [2]   2 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  24 [1+]  11 [2+]   4 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+]  50 [1+] 22.9167 [2+] 8.33333 [3+] 4.16667 [4+] 4.16667 [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.