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/picom-8.2/src/atom.c
Examining data/picom-8.2/src/atom.h
Examining data/picom-8.2/src/backend/backend.c
Examining data/picom-8.2/src/backend/backend.h
Examining data/picom-8.2/src/backend/backend_common.c
Examining data/picom-8.2/src/backend/backend_common.h
Examining data/picom-8.2/src/backend/driver.c
Examining data/picom-8.2/src/backend/driver.h
Examining data/picom-8.2/src/backend/dummy/dummy.c
Examining data/picom-8.2/src/backend/gl/gl_common.c
Examining data/picom-8.2/src/backend/gl/gl_common.h
Examining data/picom-8.2/src/backend/gl/glx.c
Examining data/picom-8.2/src/backend/gl/glx.h
Examining data/picom-8.2/src/backend/xrender/xrender.c
Examining data/picom-8.2/src/c2.c
Examining data/picom-8.2/src/c2.h
Examining data/picom-8.2/src/cache.c
Examining data/picom-8.2/src/cache.h
Examining data/picom-8.2/src/common.h
Examining data/picom-8.2/src/compiler.h
Examining data/picom-8.2/src/config.c
Examining data/picom-8.2/src/config.h
Examining data/picom-8.2/src/config_libconfig.c
Examining data/picom-8.2/src/dbus.c
Examining data/picom-8.2/src/dbus.h
Examining data/picom-8.2/src/diagnostic.c
Examining data/picom-8.2/src/diagnostic.h
Examining data/picom-8.2/src/err.h
Examining data/picom-8.2/src/event.c
Examining data/picom-8.2/src/event.h
Examining data/picom-8.2/src/file_watch.c
Examining data/picom-8.2/src/file_watch.h
Examining data/picom-8.2/src/kernel.c
Examining data/picom-8.2/src/kernel.h
Examining data/picom-8.2/src/list.h
Examining data/picom-8.2/src/log.c
Examining data/picom-8.2/src/log.h
Examining data/picom-8.2/src/meta.h
Examining data/picom-8.2/src/opengl.c
Examining data/picom-8.2/src/opengl.h
Examining data/picom-8.2/src/options.h
Examining data/picom-8.2/src/picom.c
Examining data/picom-8.2/src/picom.h
Examining data/picom-8.2/src/region.h
Examining data/picom-8.2/src/render.c
Examining data/picom-8.2/src/render.h
Examining data/picom-8.2/src/string_utils.c
Examining data/picom-8.2/src/string_utils.h
Examining data/picom-8.2/src/types.h
Examining data/picom-8.2/src/uthash_extra.h
Examining data/picom-8.2/src/utils.c
Examining data/picom-8.2/src/utils.h
Examining data/picom-8.2/src/vsync.c
Examining data/picom-8.2/src/vsync.h
Examining data/picom-8.2/src/win.c
Examining data/picom-8.2/src/win.h
Examining data/picom-8.2/src/win_defs.h
Examining data/picom-8.2/src/x.c
Examining data/picom-8.2/src/x.h
Examining data/picom-8.2/src/xrescheck.c
Examining data/picom-8.2/src/xrescheck.h
Examining data/picom-8.2/src/options.c
Examining data/picom-8.2/subprojects/test.h/test.h

FINAL RESULTS:

data/picom-8.2/src/backend/gl/gl_common.c:1058:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				pc += snprintf(pc, body_len - (ulong)(pc - shader_body),
data/picom-8.2/src/backend/gl/gl_common.c:1070:26:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		auto real_shader_len = snprintf(shader_str, shader_len, FRAG_SHADER_BLUR,
data/picom-8.2/src/compiler.h:30:50:  [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.
# define attr_printf(a, b) __attribute__((format(printf, a, b)))
data/picom-8.2/src/config_libconfig.c:51: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(xdgh, home);
data/picom-8.2/src/config_libconfig.c:52:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(xdgh, default_dir);
data/picom-8.2/src/config_libconfig.c:77:14:  [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).
	auto dirs = strcpy((char *)dir_list + sizeof(char *) * (count + 2), xdgd);
data/picom-8.2/src/opengl.c:347:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(pc, FRAG_SHADER_BLUR_PREFIX, extension, sampler_type);
data/picom-8.2/src/opengl.c:361:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf(pc, shader_add, val, texture_func,
data/picom-8.2/src/opengl.c:368:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(pc, FRAG_SHADER_BLUR_SUFFIX, texture_func, sum);
data/picom-8.2/src/options.c:342:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(f, usage_text, argv0);
data/picom-8.2/src/config_libconfig.c:40:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *xdgh = getenv("XDG_CONFIG_HOME");
data/picom-8.2/src/config_libconfig.c:41:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv("HOME");
data/picom-8.2/src/config_libconfig.c:61:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *xdgd = getenv("XDG_CONFIG_DIRS");
data/picom-8.2/src/config_libconfig.c:102:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	auto old_var = getenv("XDG_CONFIG_DIRS");
data/picom-8.2/src/config_libconfig.c:180:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *home = getenv("HOME");
data/picom-8.2/src/options.c:460:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (o = getopt_long(argc, argv, shortopts, longopts, &longopt_idx))) {
data/picom-8.2/src/options.c:524:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (o = getopt_long(argc, argv, shortopts, longopts, &longopt_idx))) {
data/picom-8.2/src/backend/gl/gl_common.c:80:5:  [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 log[log_len + 1];
data/picom-8.2/src/backend/gl/gl_common.c:120:5:  [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 log[log_len + 1];
data/picom-8.2/src/backend/gl/gl_common.c:487:3:  [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(&coord[i * 16],
data/picom-8.2/src/backend/gl/gl_common.c:501:3:  [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(&indices[i * 6],
data/picom-8.2/src/backend/gl/gl_common.c:890:3:  [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(&coord[i * 8],
data/picom-8.2/src/backend/gl/gl_common.c:1389:3:  [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(&coord[i * 8],
data/picom-8.2/src/backend/gl/gl_common.c:1398:3:  [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(&indices[i * 6],
data/picom-8.2/src/c2.c:261:3:  [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(pp, &C2_PTR_NULL, sizeof(c2_ptr_t));
data/picom-8.2/src/c2.c:362:3:  [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(plptr, &lptr_def, sizeof(c2_lptr_t));
data/picom-8.2/src/c2.c:570:2:  [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(pleaf, &leaf_def, sizeof(c2_l_t));
data/picom-8.2/src/c2.c:946:2:  [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(pleaf, &leaf_def, sizeof(c2_l_t));
data/picom-8.2/src/common.h:386:14:  [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.
extern const char *const WINTYPES[NUM_WINTYPES];
data/picom-8.2/src/config.h:242:14:  [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.
extern const char *const BACKEND_STRS[NUM_BKEND + 1];
data/picom-8.2/src/config_libconfig.c:137:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *ret = fopen(path, "r");
data/picom-8.2/src/config_libconfig.c:165:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *ret = fopen(cpath, "r");
data/picom-8.2/src/config_libconfig.c:183:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ret = fopen(path, "r");
data/picom-8.2/src/event.c:107: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.
	static char buf[128];
data/picom-8.2/src/event.c:137: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(buf, "Event %d", ev->response_type);
data/picom-8.2/src/file_watch.c:149:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	wd = open(filename, O_RDONLY);
data/picom-8.2/src/log.c:61:3:  [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 + total, vec[i].iov_base, vec[i].iov_len);
data/picom-8.2/src/log.c:164: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 time_buf[100];
data/picom-8.2/src/log.c:292:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "a");
data/picom-8.2/src/opengl.c:87:3:  [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(ps->psglx, &CGLX_SESSION_DEF, sizeof(glx_session_t));
data/picom-8.2/src/opengl.c:487:3:  [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(ptex, &GLX_TEX_DEF, sizeof(glx_texture_t));
data/picom-8.2/src/options.c:836:23:  [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).
			opt->blur_radius = atoi(optarg);
data/picom-8.2/src/picom.c:79:7:  [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.
const char *const WINTYPES[NUM_WINTYPES] = {
data/picom-8.2/src/picom.c:992:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(ps->o.write_pid_path, "w");
data/picom-8.2/src/utils.c:14: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[11];
data/picom-8.2/src/vsync.c:57:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (ps->drm_fd < 0 && (ps->drm_fd = open("/dev/dri/card0", O_RDWR)) < 0) {
data/picom-8.2/src/x.c:417:22:  [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.
	thread_local static char buffer[256];
data/picom-8.2/subprojects/test.h/test.h:121:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cmdlinef = fopen("/proc/self/cmdline", "r");
data/picom-8.2/src/atom.c:12:46:  [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).
	    c, xcb_intern_atom(c, 0, to_u16_checked(strlen(atom_name)), atom_name), NULL);
data/picom-8.2/src/backend/gl/gl_common.c:1045:22:  [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).
		size_t body_len = (strlen(shader_add) + 42) * (uint)nele;
data/picom-8.2/src/backend/gl/gl_common.c:1066:23:  [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).
		size_t shader_len = strlen(FRAG_SHADER_BLUR) + strlen(extension) +
data/picom-8.2/src/backend/gl/gl_common.c:1066:50:  [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).
		size_t shader_len = strlen(FRAG_SHADER_BLUR) + strlen(extension) +
data/picom-8.2/src/backend/gl/gl_common.c:1067:23:  [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).
		                    strlen(shader_body) + 10 /* sum */ +
data/picom-8.2/src/backend/gl/glx.c:516:15:  [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).
	auto inlen = strlen(ext);
data/picom-8.2/src/backend/xrender/xrender.c:196:61:  [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).
		xcb_render_set_picture_filter(c, src_pict, to_u16_checked(strlen(filter)),
data/picom-8.2/src/backend/xrender/xrender.c:227:35:  [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).
		    c, src_pict, to_u16_checked(strlen(filter0)), filter0, 0, NULL);
data/picom-8.2/src/c2.c:242:15:  [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).
	char c = src[strlen(needle)];
data/picom-8.2/src/c2.c:348:6:  [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(pattern) >= 2 && ':' == pattern[1])
data/picom-8.2/src/c2.c:858:27:  [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).
		auto tptnstr = ccalloc((strlen(pattern + offset) + 1), char);
data/picom-8.2/src/c2.c:937:6:  [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(pattern + offset) < 4 || pattern[offset + 1] != ':' ||
data/picom-8.2/src/c2.c:1439:27:  [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).
					                     strlen(pleaf->ptnstr));
data/picom-8.2/src/c2.c:1442:23:  [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).
					                 strlen(pleaf->ptnstr));
data/picom-8.2/src/c2.c:1452:12:  [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).
				assert(strlen(tgt) <= INT_MAX);
data/picom-8.2/src/c2.c:1455:30:  [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).
				               tgt, (int)strlen(tgt), 0, 0, NULL, 0) >= 0);
data/picom-8.2/src/config_libconfig.c:49:18:  [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).
		xdgh = cvalloc(strlen(home) + strlen(default_dir) + 1);
data/picom-8.2/src/config_libconfig.c:49:33:  [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).
		xdgh = cvalloc(strlen(home) + strlen(default_dir) + 1);
data/picom-8.2/src/config_libconfig.c:76: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).
	char **dir_list = cvalloc(sizeof(char *) * (count + 2) + strlen(xdgd) + 1);
data/picom-8.2/src/config_libconfig.c:181:14:  [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 (home && strlen(home)) {
data/picom-8.2/src/dbus.c:124:24:  [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).
		size_t service_len = strlen(CDBUS_SERVICE_NAME) + strlen(uniq) + 2;
data/picom-8.2/src/dbus.c:124:53:  [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).
		size_t service_len = strlen(CDBUS_SERVICE_NAME) + strlen(uniq) + 2;
data/picom-8.2/src/dbus.c:130:25:  [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).
		char *tmp = service + strlen(CDBUS_SERVICE_NAME) + 1;
data/picom-8.2/src/file_watch.c:45:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto ret = read(w->fd, &inotify_event, sizeof(struct inotify_event));
data/picom-8.2/src/log.c:176:16:  [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).
	size_t llen = strlen(log_level_str);
data/picom-8.2/src/log.c:177:16:  [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).
	size_t flen = strlen(func);
data/picom-8.2/src/log.c:187:11:  [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).
			plen = strlen(p);
data/picom-8.2/src/log.c:190:12:  [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).
				slen = strlen(s);
data/picom-8.2/src/opengl.c:341: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).
			    strlen(FRAG_SHADER_BLUR_PREFIX) + strlen(sampler_type) +
data/picom-8.2/src/opengl.c:341:42:  [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).
			    strlen(FRAG_SHADER_BLUR_PREFIX) + strlen(sampler_type) +
data/picom-8.2/src/opengl.c:342: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).
			    strlen(extension) +
data/picom-8.2/src/opengl.c:343:9:  [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).
			    (strlen(shader_add) + strlen(texture_func) + 42) * (uint)nele +
data/picom-8.2/src/opengl.c:343:30:  [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).
			    (strlen(shader_add) + strlen(texture_func) + 42) * (uint)nele +
data/picom-8.2/src/opengl.c:344: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).
			    strlen(FRAG_SHADER_BLUR_SUFFIX) + strlen(texture_func) + 12 + 1;
data/picom-8.2/src/opengl.c:344:42:  [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).
			    strlen(FRAG_SHADER_BLUR_SUFFIX) + strlen(texture_func) + 12 + 1;
data/picom-8.2/src/opengl.c:348:10:  [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).
			pc += strlen(pc);
data/picom-8.2/src/opengl.c:349:11:  [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).
			assert(strlen(shader_str) < len);
data/picom-8.2/src/opengl.c:363:12:  [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).
					pc += strlen(pc);
data/picom-8.2/src/opengl.c:364: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).
					assert(strlen(shader_str) < len);
data/picom-8.2/src/opengl.c:369:11:  [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).
			assert(strlen(shader_str) < len);
data/picom-8.2/src/picom.c:2390:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(pfds[0], &tmp, sizeof tmp) <= 0) {
data/picom-8.2/src/render.c:147:42:  [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).
	xcb_render_set_picture_filter(ps->c, p, strlen(FILTER), FILTER, 0, NULL);
data/picom-8.2/src/render.c:665:24:  [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).
		    ps->c, src_pict, strlen(XRFILTER_CONVOLUTION), XRFILTER_CONVOLUTION,
data/picom-8.2/src/render.c:1056: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(XRFILTER_CONVOLUTION) == len &&
data/picom-8.2/src/render.c:1057:44:  [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).
			    !memcmp(XRFILTER_CONVOLUTION, name, strlen(XRFILTER_CONVOLUTION)))
data/picom-8.2/src/string_utils.c:26:14:  [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).
	auto len1 = strlen(src1);
data/picom-8.2/src/string_utils.c:27:14:  [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).
	auto len2 = strlen(src2);
data/picom-8.2/src/string_utils.c:31:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str, src1, len1);
data/picom-8.2/src/string_utils.c:32:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str + len1, src2, len2);
data/picom-8.2/src/string_utils.c:61:14:  [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).
	auto len1 = strlen(*psrc1);
data/picom-8.2/src/string_utils.c:62:14:  [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).
	auto len2 = strlen(src2);
data/picom-8.2/src/string_utils.c:66:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*psrc1 + len1, src2, len2);
data/picom-8.2/src/string_utils.h:9:46:  [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).
#define mstrncmp(s1, s2) strncmp((s1), (s2), strlen(s1))
data/picom-8.2/src/utils.c:19:44:  [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).
	    {.iov_base = (void *)func, .iov_len = strlen(func)},
data/picom-8.2/src/utils.c:23:44:  [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).
	    {.iov_base = (void *)file, .iov_len = strlen(file)},
data/picom-8.2/subprojects/test.h/test.h:127:51:  [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).
	for (char *pos = arg; pos < arg + arglen; pos += strlen(pos) + 1) {

ANALYSIS SUMMARY:

Hits = 104
Lines analyzed = 22941 in approximately 0.51 seconds (44800 lines/second)
Physical Source Lines of Code (SLOC) = 15935
Hits@level = [0]  44 [1]  56 [2]  31 [3]   7 [4]  10 [5]   0
Hits@level+ = [0+] 148 [1+] 104 [2+]  48 [3+]  17 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 9.28773 [1+] 6.52651 [2+] 3.01224 [3+] 1.06683 [4+] 0.627549 [5+]   0
Dot directories skipped = 3 (--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.