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/dwm-6.1/drw.c
Examining data/dwm-6.1/drw.h
Examining data/dwm-6.1/dwm.c
Examining data/dwm-6.1/transient.c
Examining data/dwm-6.1/util.c
Examining data/dwm-6.1/util.h
Examining data/dwm-6.1/debian/local/config.maintainer.h
Examining data/dwm-6.1/debian/local/config.web.h
Examining data/dwm-6.1/debian/local/config.winkey.h
Examining data/dwm-6.1/config.def.h

FINAL RESULTS:

data/dwm-6.1/dwm.c:1641:3:  [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(((char **)arg->v)[0], (char **)arg->v);
data/dwm-6.1/dwm.c:1989:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(c->name, broken);
data/dwm-6.1/dwm.c:1996:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(stext, "dwm-"VERSION);
data/dwm-6.1/util.c:24:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/dwm-6.1/config.def.h:56:8:  [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.
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
data/dwm-6.1/debian/local/config.maintainer.h:63:8:  [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.
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
data/dwm-6.1/debian/local/config.web.h:38:8:  [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.
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
data/dwm-6.1/debian/local/config.winkey.h:56:8:  [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.
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
data/dwm-6.1/drw.c:14:23:  [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.
static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80,    0, 0xC0, 0xE0, 0xF0};
data/dwm-6.1/drw.c:15:23:  [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.
static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8};
data/dwm-6.1/drw.c:224: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 buf[1024];
data/dwm-6.1/drw.c:286: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(buf, utf8str, len);
data/dwm-6.1/dwm.c:88: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 name[256];
data/dwm-6.1/dwm.c:115: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 ltsymbol[16];
data/dwm-6.1/dwm.c:239:8:  [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.
static char stext[256];
data/dwm-6.1/dwm.c:274:18:  [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.
struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
data/dwm-6.1/dwm.c:1860: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(&unique[j++], &info[i], sizeof(XineramaScreenInfo));
data/dwm-6.1/dwm.c:396:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
data/dwm-6.1/dwm.c:652:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol);
data/dwm-6.1/dwm.c:929:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(text, (char *)name.value, size - 1);
data/dwm-6.1/dwm.c:932:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(text, *list, size - 1);
data/dwm-6.1/dwm.c:1524:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
data/dwm-6.1/util.c:27:20:  [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 (fmt[0] && fmt[strlen(fmt)-1] == ':') {

ANALYSIS SUMMARY:

Hits = 23
Lines analyzed = 3093 in approximately 0.11 seconds (29352 lines/second)
Physical Source Lines of Code (SLOC) = 2640
Hits@level = [0]   6 [1]   6 [2]  13 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  29 [1+]  23 [2+]  17 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 10.9848 [1+] 8.71212 [2+] 6.43939 [3+] 1.51515 [4+] 1.51515 [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.