tmux-3.5a-2.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
tmux-3.5a-build/tmux-3.5a/arguments.c: scope_hint: In function ‘args_make_commands_now’
tmux-3.5a-build/tmux-3.5a/arguments.c:750:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘error’
#  748|   	cmdlist = args_make_commands(state, 0, NULL, &error);
#  749|   	if (cmdlist == NULL) {
#  750|-> 		cmdq_error(item, "%s", error);
#  751|   		free(error);
#  752|   	}

Error: COMPILER_WARNING (CWE-252): [#def2]
tmux-3.5a-build/tmux-3.5a/client.c: scope_hint: In function ‘client_dispatch_attached’
tmux-3.5a-build/tmux-3.5a/client.c:805:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
#  805 |                 system(data);
#      |                 ^~~~~~~~~~~~
#  803|   			fatalx("bad MSG_LOCK string");
#  804|   
#  805|-> 		system(data);
#  806|   		proc_send(client_peer, MSG_UNLOCK, -1, NULL, 0);
#  807|   		break;

Error: COMPILER_WARNING (CWE-681): [#def3]
tmux-3.5a-build/tmux-3.5a/cmd-capture-pane.c: scope_hint: In function ‘cmd_capture_pane_pending’
tmux-3.5a-build/tmux-3.5a/cmd-capture-pane.c:87:14: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   87 |         line = EVBUFFER_DATA(pending);
#      |              ^
#   85|   		return (xstrdup(""));
#   86|   
#   87|-> 	line = EVBUFFER_DATA(pending);
#   88|   	linelen = EVBUFFER_LENGTH(pending);
#   89|   

Error: CPPCHECK_WARNING (CWE-562): [#def4]
tmux-3.5a-build/tmux-3.5a/cmd-find.c:979: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  977|   	} else if (cmd_find_from_client(&current, cmdq_get_client(item),
#  978|   	    flags) == 0) {
#  979|-> 		fs->current = &current;
#  980|   		log_debug("%s: current is from client", __func__);
#  981|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
tmux-3.5a-build/tmux-3.5a/cmd-parse.y: scope_hint: In function ‘yylex_token_escape’
tmux-3.5a-build/tmux-3.5a/cmd-parse.y:1510:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tmp’
tmux-3.5a-build/tmux-3.5a/cmd-parse.y:23: included_from: Included from here.
# 1508|   		return (0);
# 1509|   	}
# 1510|-> 	mlen = wctomb(m, tmp);
# 1511|   	if (mlen <= 0 || mlen > (int)sizeof m) {
# 1512|   		yyerror("invalid \\%c argument", type);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c: scope_hint: In function ‘cmd_pipe_pane_exec’
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:141:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fd[1], 0)’
#  139|   		null_fd = open(_PATH_DEVNULL, O_WRONLY);
#  140|   		if (out) {
#  141|-> 			if (dup2(pipe_fd[1], STDIN_FILENO) == -1)
#  142|   				_exit(1);
#  143|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:141:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
#  139|   		null_fd = open(_PATH_DEVNULL, O_WRONLY);
#  140|   		if (out) {
#  141|-> 			if (dup2(pipe_fd[1], STDIN_FILENO) == -1)
#  142|   				_exit(1);
#  143|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:144:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
#  142|   				_exit(1);
#  143|   		} else {
#  144|-> 			if (dup2(null_fd, STDIN_FILENO) == -1)
#  145|   				_exit(1);
#  146|   		}

Error: GCC_ANALYZER_WARNING: [#def9]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:144:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
#  142|   				_exit(1);
#  143|   		} else {
#  144|-> 			if (dup2(null_fd, STDIN_FILENO) == -1)
#  145|   				_exit(1);
#  146|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:148:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fd[1], 1)’
#  146|   		}
#  147|   		if (in) {
#  148|-> 			if (dup2(pipe_fd[1], STDOUT_FILENO) == -1)
#  149|   				_exit(1);
#  150|   			if (pipe_fd[1] != STDOUT_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:148:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
#  146|   		}
#  147|   		if (in) {
#  148|-> 			if (dup2(pipe_fd[1], STDOUT_FILENO) == -1)
#  149|   				_exit(1);
#  150|   			if (pipe_fd[1] != STDOUT_FILENO)

Error: GCC_ANALYZER_WARNING: [#def12]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:153:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
#  151|   				close(pipe_fd[1]);
#  152|   		} else {
#  153|-> 			if (dup2(null_fd, STDOUT_FILENO) == -1)
#  154|   				_exit(1);
#  155|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:156:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
#  154|   				_exit(1);
#  155|   		}
#  156|-> 		if (dup2(null_fd, STDERR_FILENO) == -1)
#  157|   			_exit(1);
#  158|   		closefrom(STDERR_FILENO + 1);

Error: GCC_ANALYZER_WARNING: [#def14]
tmux-3.5a-build/tmux-3.5a/cmd-pipe-pane.c:156:21: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
#  154|   				_exit(1);
#  155|   		}
#  156|-> 		if (dup2(null_fd, STDERR_FILENO) == -1)
#  157|   			_exit(1);
#  158|   		closefrom(STDERR_FILENO + 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c: scope_hint: In function ‘cmd_rotate_window_exec’
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:74:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wp’
tmux-3.5a-build/tmux-3.5a/compat.h:142: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:35: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:21: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:58:22: note: in expansion of macro ‘TAILQ_LAST’
#   72|   			window_pane_resize(wp, wp2->sx, wp2->sy);
#   73|   		}
#   74|-> 		wp->layout_cell = lc;
#   75|   		if (wp->layout_cell != NULL)
#   76|   			wp->layout_cell->wp = wp;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:99:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wp’
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:85:17: note: in expansion of macro ‘TAILQ_INSERT_TAIL’
tmux-3.5a-build/tmux-3.5a/cmd-rotate-window.c:90:17: note: in expansion of macro ‘TAILQ_FOREACH_REVERSE’
#   97|   			window_pane_resize(wp, wp2->sx, wp2->sy);
#   98|   		}
#   99|-> 		wp->layout_cell = lc;
#  100|   		if (wp->layout_cell != NULL)
#  101|   			wp->layout_cell->wp = wp;

Error: COMPILER_WARNING (CWE-457): [#def17]
tmux-3.5a-build/tmux-3.5a/cmd-run-shell.c: scope_hint: In function ‘cmd_run_shell_exec’
tmux-3.5a-build/tmux-3.5a/cmd-run-shell.c:169:33: warning[-Wmaybe-uninitialized]: ‘d’ may be used uninitialized
#  169 |                 tv.tv_usec = (d - (double)tv.tv_sec) * 1000000U;
#      |                              ~~~^~~~~~~~~~~~~~~~~~~~
tmux-3.5a-build/tmux-3.5a/cmd-run-shell.c:118:42: note: ‘d’ was declared here
#  118 |         double                           d;
#      |                                          ^
#  167|   		timerclear(&tv);
#  168|   		tv.tv_sec = (time_t)d;
#  169|-> 		tv.tv_usec = (d - (double)tv.tv_sec) * 1000000U;
#  170|   		evtimer_add(&cdata->timer, &tv);
#  171|   	} else

Error: COMPILER_WARNING (CWE-681): [#def18]
tmux-3.5a-build/tmux-3.5a/compat/getpeereid.c: scope_hint: In function ‘getpeereid’
tmux-3.5a-build/tmux-3.5a/compat/getpeereid.c:36:57: warning[-Wpointer-sign]: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
#   36 |         if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &len) == -1)
#      |                                                         ^~~~
#      |                                                         |
#      |                                                         int *
tmux-3.5a-build/tmux-3.5a/compat/getpeereid.c:18: included_from: Included from here.
/usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
#  257 |                        socklen_t *__restrict __optlen) __THROW;
#      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
#   34|   	int		len = sizeof uc;
#   35|   
#   36|-> 	if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &len) == -1)
#   37|   		return (-1);
#   38|   	*uid = uc.uid;

Error: COMPILER_WARNING: [#def19]
tmux-3.5a-build/tmux-3.5a/compat/vis.c: scope_hint: In function ‘stravis’
tmux-3.5a-build/tmux-3.5a/compat/vis.c:222:23: warning[-Wuse-after-free]: pointer ‘buf_15’ may be used after ‘realloc’
#  222 |                 *outp = buf;
#      |                 ~~~~~~^~~~~
tmux-3.5a-build/tmux-3.5a/compat/vis.c:220:17: note: call to ‘realloc’ here
#  220 |         *outp = realloc(buf, len + 1);
#      |                 ^~~~~~~~~~~~~~~~~~~~~
#  220|   	*outp = realloc(buf, len + 1);
#  221|   	if (*outp == NULL) {
#  222|-> 		*outp = buf;
#  223|   		errno = serrno;
#  224|   	}

Error: COMPILER_WARNING (CWE-252): [#def20]
tmux-3.5a-build/tmux-3.5a/environ.c: scope_hint: In function ‘environ_log’
tmux-3.5a-build/tmux-3.5a/environ.c:234:9: warning[-Wunused-result]: ignoring return value of ‘vasprintf’ declared with attribute ‘warn_unused_result’
#  234 |         vasprintf(&prefix, fmt, ap);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  232|   
#  233|   	va_start(ap, fmt);
#  234|-> 	vasprintf(&prefix, fmt, ap);
#  235|   	va_end(ap);
#  236|   

Error: COMPILER_WARNING (CWE-681): [#def21]
tmux-3.5a-build/tmux-3.5a/grid.c: scope_hint: In function ‘grid_string_cells’
tmux-3.5a-build/tmux-3.5a/grid.c:1080:22: warning[-Wpointer-sign]: pointer targets in assignment from ‘u_char *’ {aka ‘unsigned char *’} to ‘const char *’ differ in signedness
# 1080 |                 data = gc.data.data;
#      |                      ^
# 1078|   			codelen = 0;
# 1079|   
# 1080|-> 		data = gc.data.data;
# 1081|   		size = gc.data.size;
# 1082|   		if ((flags & GRID_STRING_ESCAPE_SEQUENCES) &&

Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
tmux-3.5a-build/tmux-3.5a/image-sixel.c: scope_hint: In function ‘sixel_print’
tmux-3.5a-build/tmux-3.5a/image-sixel.c:549:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
#  547|   					count++;
#  548|   			}
#  549|-> 			sixel_print_repeat(&buf, &len, &used, count, data);
#  550|   			sixel_print_add(&buf, &len, &used, "$", 1);
#  551|   		}

Error: COMPILER_WARNING (CWE-457): [#def23]
tmux-3.5a-build/tmux-3.5a/image-sixel.c: scope_hint: In function ‘sixel_print’
tmux-3.5a-build/tmux-3.5a/image-sixel.c:549:25: warning[-Wmaybe-uninitialized]: ‘data’ may be used uninitialized
#  549 |                         sixel_print_repeat(&buf, &len, &used, count, data);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmux-3.5a-build/tmux-3.5a/image-sixel.c:480:59: note: ‘data’ was declared here
#  480 |         char                    *buf, tmp[64], *contains, data, last = 0;
#      |                                                           ^~~~
#  547|   					count++;
#  548|   			}
#  549|-> 			sixel_print_repeat(&buf, &len, &used, count, data);
#  550|   			sixel_print_add(&buf, &len, &used, "$", 1);
#  551|   		}

Error: COMPILER_WARNING (CWE-681): [#def24]
tmux-3.5a-build/tmux-3.5a/input-keys.c: scope_hint: In function ‘input_key_vt10x’
tmux-3.5a-build/tmux-3.5a/input-keys.c:497:50: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
#  497 |                 input_key_write(__func__, bev, ud.data, ud.size);
#      |                                                ~~^~~~~
#      |                                                  |
#      |                                                  u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input-keys.c:408:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  408 | input_key_write(const char *from, struct bufferevent *bev, const char *data,
#      |                                                            ~~~~~~~~~~~~^~~~
#  495|   	if (KEYC_IS_UNICODE(key)) {
#  496|   		utf8_to_data(key, &ud);
#  497|->                 input_key_write(__func__, bev, ud.data, ud.size);
#  498|   		return (0);
#  499|   	}

Error: COMPILER_WARNING (CWE-681): [#def25]
tmux-3.5a-build/tmux-3.5a/input-keys.c:530:40: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
#  530 |         input_key_write(__func__, bev, &ud.data[0], 1);
#      |                                        ^~~~~~~~~~~
#      |                                        |
#      |                                        u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input-keys.c:408:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  408 | input_key_write(const char *from, struct bufferevent *bev, const char *data,
#      |                                                            ~~~~~~~~~~~~^~~~
#  528|   
#  529|   	ud.data[0] = key & 0x7f;
#  530|-> 	input_key_write(__func__, bev, &ud.data[0], 1);
#  531|   	return (0);
#  532|   }

Error: COMPILER_WARNING (CWE-681): [#def26]
tmux-3.5a-build/tmux-3.5a/input-keys.c: scope_hint: In function ‘input_key’
tmux-3.5a-build/tmux-3.5a/input-keys.c:581:48: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
#  581 |                 input_key_write(__func__, bev, &ud.data[0], 1);
#      |                                                ^~~~~~~~~~~
#      |                                                |
#      |                                                u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input-keys.c:408:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  408 | input_key_write(const char *from, struct bufferevent *bev, const char *data,
#      |                                                            ~~~~~~~~~~~~^~~~
#  579|   	if (key & KEYC_LITERAL) {
#  580|   		ud.data[0] = (u_char)key;
#  581|-> 		input_key_write(__func__, bev, &ud.data[0], 1);
#  582|   		return (0);
#  583|   	}

Error: COMPILER_WARNING (CWE-681): [#def27]
tmux-3.5a-build/tmux-3.5a/input-keys.c:615:56: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
#  615 |                         input_key_write(__func__, bev, &ud.data[0], 1);
#      |                                                        ^~~~~~~~~~~
#      |                                                        |
#      |                                                        u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input-keys.c:408:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  408 | input_key_write(const char *from, struct bufferevent *bev, const char *data,
#      |                                                            ~~~~~~~~~~~~^~~~
#  613|   		    (key >= 0x20 && key <= 0x7f)) {
#  614|   			ud.data[0] = key;
#  615|-> 			input_key_write(__func__, bev, &ud.data[0], 1);
#  616|   			return (0);
#  617|   		}

Error: COMPILER_WARNING (CWE-681): [#def28]
tmux-3.5a-build/tmux-3.5a/input-keys.c:620:58: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
#  620 |                         input_key_write(__func__, bev, ud.data, ud.size);
#      |                                                        ~~^~~~~
#      |                                                          |
#      |                                                          u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input-keys.c:408:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  408 | input_key_write(const char *from, struct bufferevent *bev, const char *data,
#      |                                                            ~~~~~~~~~~~~^~~~
#  618|   		if (KEYC_IS_UNICODE(key)) {
#  619|   			utf8_to_data(key, &ud);
#  620|-> 			input_key_write(__func__, bev, ud.data, ud.size);
#  621|   			return (0);
#  622|   		}

Error: COMPILER_WARNING (CWE-681): [#def29]
tmux-3.5a-build/tmux-3.5a/input-keys.c: scope_hint: In function ‘input_key_get_mouse’
tmux-3.5a-build/tmux-3.5a/input-keys.c:744:69: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
#  744 |                 len += input_key_split2(m->b + MOUSE_PARAM_BTN_OFF, &buf[len]);
#      |                                                                     ^~~~~~~~~
#      |                                                                     |
#      |                                                                     char *
tmux-3.5a-build/tmux-3.5a/input-keys.c:345:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
#  345 | input_key_split2(u_int c, u_char *dst)
#      |                           ~~~~~~~~^~~
#  742|   			return (0);
#  743|   		len = xsnprintf(buf, sizeof buf, "\033[M");
#  744|-> 		len += input_key_split2(m->b + MOUSE_PARAM_BTN_OFF, &buf[len]);
#  745|   		len += input_key_split2(x + MOUSE_PARAM_POS_OFF, &buf[len]);
#  746|   		len += input_key_split2(y + MOUSE_PARAM_POS_OFF, &buf[len]);

Error: COMPILER_WARNING (CWE-681): [#def30]
tmux-3.5a-build/tmux-3.5a/input-keys.c:745:66: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
#  745 |                 len += input_key_split2(x + MOUSE_PARAM_POS_OFF, &buf[len]);
#      |                                                                  ^~~~~~~~~
#      |                                                                  |
#      |                                                                  char *
tmux-3.5a-build/tmux-3.5a/input-keys.c:345:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
#  345 | input_key_split2(u_int c, u_char *dst)
#      |                           ~~~~~~~~^~~
#  743|   		len = xsnprintf(buf, sizeof buf, "\033[M");
#  744|   		len += input_key_split2(m->b + MOUSE_PARAM_BTN_OFF, &buf[len]);
#  745|-> 		len += input_key_split2(x + MOUSE_PARAM_POS_OFF, &buf[len]);
#  746|   		len += input_key_split2(y + MOUSE_PARAM_POS_OFF, &buf[len]);
#  747|   	} else {

Error: COMPILER_WARNING (CWE-681): [#def31]
tmux-3.5a-build/tmux-3.5a/input-keys.c:746:66: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
#  746 |                 len += input_key_split2(y + MOUSE_PARAM_POS_OFF, &buf[len]);
#      |                                                                  ^~~~~~~~~
#      |                                                                  |
#      |                                                                  char *
tmux-3.5a-build/tmux-3.5a/input-keys.c:345:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
#  345 | input_key_split2(u_int c, u_char *dst)
#      |                           ~~~~~~~~^~~
#  744|   		len += input_key_split2(m->b + MOUSE_PARAM_BTN_OFF, &buf[len]);
#  745|   		len += input_key_split2(x + MOUSE_PARAM_POS_OFF, &buf[len]);
#  746|-> 		len += input_key_split2(y + MOUSE_PARAM_POS_OFF, &buf[len]);
#  747|   	} else {
#  748|   		if (m->b + MOUSE_PARAM_BTN_OFF > MOUSE_PARAM_MAX)

Error: COMPILER_WARNING (CWE-681): [#def32]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_table_compare’
tmux-3.5a-build/tmux-3.5a/input.c:741:28: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness
#  741 |         return (strcmp(ictx->interm_buf, entry->interm));
#      |                        ~~~~^~~~~~~~~~~~
#      |                            |
#      |                            const u_char * {aka const unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:26: included_from: Included from here.
/usr/include/string.h:156:32: note: expected ‘const char *’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
#  156 | extern int strcmp (const char *__s1, const char *__s2)
#      |                    ~~~~~~~~~~~~^~~~
#  739|   	if (ictx->ch != entry->ch)
#  740|   		return (ictx->ch - entry->ch);
#  741|-> 	return (strcmp(ictx->interm_buf, entry->interm));
#  742|   }
#  743|   

Error: COMPILER_WARNING (CWE-681): [#def33]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_split’
tmux-3.5a-build/tmux-3.5a/input.c:1028:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘u_char *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness
# 1028 |         ptr = ictx->param_buf;
#      |             ^
# 1026|   	ip = &ictx->param_list[0];
# 1027|   
# 1028|-> 	ptr = ictx->param_buf;
# 1029|   	while ((out = strsep(&ptr, ";")) != NULL) {
# 1030|   		if (*out == '\0')

Error: COMPILER_WARNING (CWE-681): [#def34]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_dcs_dispatch’
tmux-3.5a-build/tmux-3.5a/input.c:2336:34: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘sixel_parse’ differ in signedness
# 2336 |                 si = sixel_parse(buf, len, w->xpixel, w->ypixel);
#      |                                  ^~~
#      |                                  |
#      |                                  u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:29: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:3485:33: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3485 | struct sixel_image *sixel_parse(const char *, size_t, u_int, u_int);
#      |                                 ^~~~~~~~~~~~
# 2334|   	w = wp->window;
# 2335|   	if (buf[0] == 'q') {
# 2336|-> 		si = sixel_parse(buf, len, w->xpixel, w->ypixel);
# 2337|   		if (si != NULL)
# 2338|   			screen_write_sixelimage(sctx, si, ictx->cell.cell.bg);

Error: COMPILER_WARNING (CWE-681): [#def35]
tmux-3.5a-build/tmux-3.5a/input.c:2347:41: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
# 2347 |         if (len >= prefixlen && strncmp(buf, prefix, prefixlen) == 0) {
#      |                                         ^~~
#      |                                         |
#      |                                         u_char * {aka unsigned char *}
/usr/include/string.h:159:33: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
#      |                     ~~~~~~~~~~~~^~~~
# 2345|   	log_debug("%s: \"%s\"", __func__, buf);
# 2346|   
# 2347|-> 	if (len >= prefixlen && strncmp(buf, prefix, prefixlen) == 0) {
# 2348|   		screen_write_rawstring(sctx, buf + prefixlen, len - prefixlen,
# 2349|   		    allow_passthrough == 2);

Error: COMPILER_WARNING (CWE-681): [#def36]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_exit_osc’
tmux-3.5a-build/tmux-3.5a/input.c:2396:47: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_title’ differ in signedness
# 2396 |                     screen_set_title(sctx->s, p)) {
#      |                                               ^
#      |                                               |
#      |                                               u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3061:44: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3061 | int      screen_set_title(struct screen *, const char *);
#      |                                            ^~~~~~~~~~~~
# 2394|   		if (wp != NULL &&
# 2395|   		    options_get_number(wp->options, "allow-set-title") &&
# 2396|-> 		    screen_set_title(sctx->s, p)) {
# 2397|   			notify_pane("pane-title-changed", wp);
# 2398|   			server_redraw_window_borders(wp->window);

Error: COMPILER_WARNING (CWE-681): [#def37]
tmux-3.5a-build/tmux-3.5a/input.c:2403:35: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_4’ differ in signedness
# 2403 |                 input_osc_4(ictx, p);
#      |                                   ^
#      |                                   |
#      |                                   u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:138:49: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  138 | static void     input_osc_4(struct input_ctx *, const char *);
#      |                                                 ^~~~~~~~~~~~
# 2401|   		break;
# 2402|   	case 4:
# 2403|-> 		input_osc_4(ictx, p);
# 2404|   		break;
# 2405|   	case 7:

Error: COMPILER_WARNING (CWE-681): [#def38]
tmux-3.5a-build/tmux-3.5a/input.c:2406:34: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘utf8_isvalid’ differ in signedness
# 2406 |                 if (utf8_isvalid(p)) {
#      |                                  ^
#      |                                  |
#      |                                  u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3376:31: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3376 | int              utf8_isvalid(const char *);
#      |                               ^~~~~~~~~~~~
# 2404|   		break;
# 2405|   	case 7:
# 2406|-> 		if (utf8_isvalid(p)) {
# 2407|   			screen_set_path(sctx->s, p);
# 2408|   			if (wp != NULL) {

Error: COMPILER_WARNING (CWE-681): [#def39]
tmux-3.5a-build/tmux-3.5a/input.c:2407:50: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_path’ differ in signedness
# 2407 |                         screen_set_path(sctx->s, p);
#      |                                                  ^
#      |                                                  |
#      |                                                  u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3062:43: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3062 | void     screen_set_path(struct screen *, const char *);
#      |                                           ^~~~~~~~~~~~
# 2405|   	case 7:
# 2406|   		if (utf8_isvalid(p)) {
# 2407|-> 			screen_set_path(sctx->s, p);
# 2408|   			if (wp != NULL) {
# 2409|   				server_redraw_window_borders(wp->window);

Error: COMPILER_WARNING (CWE-681): [#def40]
tmux-3.5a-build/tmux-3.5a/input.c:2415:35: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_8’ differ in signedness
# 2415 |                 input_osc_8(ictx, p);
#      |                                   ^
#      |                                   |
#      |                                   u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:139:49: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  139 | static void     input_osc_8(struct input_ctx *, const char *);
#      |                                                 ^~~~~~~~~~~~
# 2413|   		break;
# 2414|   	case 8:
# 2415|-> 		input_osc_8(ictx, p);
# 2416|   		break;
# 2417|   	case 10:

Error: COMPILER_WARNING (CWE-681): [#def41]
tmux-3.5a-build/tmux-3.5a/input.c:2418:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_10’ differ in signedness
# 2418 |                 input_osc_10(ictx, p);
#      |                                    ^
#      |                                    |
#      |                                    u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:140:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  140 | static void     input_osc_10(struct input_ctx *, const char *);
#      |                                                  ^~~~~~~~~~~~
# 2416|   		break;
# 2417|   	case 10:
# 2418|-> 		input_osc_10(ictx, p);
# 2419|   		break;
# 2420|   	case 11:

Error: COMPILER_WARNING (CWE-681): [#def42]
tmux-3.5a-build/tmux-3.5a/input.c:2421:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_11’ differ in signedness
# 2421 |                 input_osc_11(ictx, p);
#      |                                    ^
#      |                                    |
#      |                                    u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:141:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  141 | static void     input_osc_11(struct input_ctx *, const char *);
#      |                                                  ^~~~~~~~~~~~
# 2419|   		break;
# 2420|   	case 11:
# 2421|-> 		input_osc_11(ictx, p);
# 2422|   		break;
# 2423|   	case 12:

Error: COMPILER_WARNING (CWE-681): [#def43]
tmux-3.5a-build/tmux-3.5a/input.c:2424:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_12’ differ in signedness
# 2424 |                 input_osc_12(ictx, p);
#      |                                    ^
#      |                                    |
#      |                                    u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:142:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  142 | static void     input_osc_12(struct input_ctx *, const char *);
#      |                                                  ^~~~~~~~~~~~
# 2422|   		break;
# 2423|   	case 12:
# 2424|-> 		input_osc_12(ictx, p);
# 2425|   		break;
# 2426|   	case 52:

Error: COMPILER_WARNING (CWE-681): [#def44]
tmux-3.5a-build/tmux-3.5a/input.c:2427:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_52’ differ in signedness
# 2427 |                 input_osc_52(ictx, p);
#      |                                    ^
#      |                                    |
#      |                                    u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:143:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  143 | static void     input_osc_52(struct input_ctx *, const char *);
#      |                                                  ^~~~~~~~~~~~
# 2425|   		break;
# 2426|   	case 52:
# 2427|-> 		input_osc_52(ictx, p);
# 2428|   		break;
# 2429|   	case 104:

Error: COMPILER_WARNING (CWE-681): [#def45]
tmux-3.5a-build/tmux-3.5a/input.c:2430:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_104’ differ in signedness
# 2430 |                 input_osc_104(ictx, p);
#      |                                     ^
#      |                                     |
#      |                                     u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:144:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  144 | static void     input_osc_104(struct input_ctx *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2428|   		break;
# 2429|   	case 104:
# 2430|-> 		input_osc_104(ictx, p);
# 2431|   		break;
# 2432|   	case 110:

Error: COMPILER_WARNING (CWE-681): [#def46]
tmux-3.5a-build/tmux-3.5a/input.c:2433:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_110’ differ in signedness
# 2433 |                 input_osc_110(ictx, p);
#      |                                     ^
#      |                                     |
#      |                                     u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:145:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  145 | static void     input_osc_110(struct input_ctx *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2431|   		break;
# 2432|   	case 110:
# 2433|-> 		input_osc_110(ictx, p);
# 2434|   		break;
# 2435|   	case 111:

Error: COMPILER_WARNING (CWE-681): [#def47]
tmux-3.5a-build/tmux-3.5a/input.c:2436:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_111’ differ in signedness
# 2436 |                 input_osc_111(ictx, p);
#      |                                     ^
#      |                                     |
#      |                                     u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:146:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  146 | static void     input_osc_111(struct input_ctx *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2434|   		break;
# 2435|   	case 111:
# 2436|-> 		input_osc_111(ictx, p);
# 2437|   		break;
# 2438|   	case 112:

Error: COMPILER_WARNING (CWE-681): [#def48]
tmux-3.5a-build/tmux-3.5a/input.c:2439:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_112’ differ in signedness
# 2439 |                 input_osc_112(ictx, p);
#      |                                     ^
#      |                                     |
#      |                                     u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:147:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  147 | static void     input_osc_112(struct input_ctx *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2437|   		break;
# 2438|   	case 112:
# 2439|-> 		input_osc_112(ictx, p);
# 2440|   		break;
# 2441|   	case 133:

Error: COMPILER_WARNING (CWE-681): [#def49]
tmux-3.5a-build/tmux-3.5a/input.c:2442:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_133’ differ in signedness
# 2442 |                 input_osc_133(ictx, p);
#      |                                     ^
#      |                                     |
#      |                                     u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/input.c:148:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  148 | static void     input_osc_133(struct input_ctx *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2440|   		break;
# 2441|   	case 133:
# 2442|-> 		input_osc_133(ictx, p);
# 2443|   		break;
# 2444|   	default:

Error: COMPILER_WARNING (CWE-681): [#def50]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_exit_apc’
tmux-3.5a-build/tmux-3.5a/input.c:2472:43: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_title’ differ in signedness
# 2472 |         if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
#      |                                       ~~~~^~~~~~~~~~~
#      |                                           |
#      |                                           u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3061:44: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3061 | int      screen_set_title(struct screen *, const char *);
#      |                                            ^~~~~~~~~~~~
# 2470|   	log_debug("%s: \"%s\"", __func__, ictx->input_buf);
# 2471|   
# 2472|-> 	if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
# 2473|   		notify_pane("pane-title-changed", wp);
# 2474|   		server_redraw_window_borders(wp->window);

Error: COMPILER_WARNING (CWE-681): [#def51]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_exit_rename’
tmux-3.5a-build/tmux-3.5a/input.c:2506:31: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘utf8_isvalid’ differ in signedness
# 2506 |         if (!utf8_isvalid(ictx->input_buf))
#      |                           ~~~~^~~~~~~~~~~
#      |                               |
#      |                               u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3376:31: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3376 | int              utf8_isvalid(const char *);
#      |                               ^~~~~~~~~~~~
# 2504|   	log_debug("%s: \"%s\"", __func__, ictx->input_buf);
# 2505|   
# 2506|-> 	if (!utf8_isvalid(ictx->input_buf))
# 2507|   		return;
# 2508|   	w = wp->window;

Error: COMPILER_WARNING (CWE-681): [#def52]
tmux-3.5a-build/tmux-3.5a/input.c:2518:40: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘window_set_name’ differ in signedness
# 2518 |                 window_set_name(w, ictx->input_buf);
#      |                                    ~~~~^~~~~~~~~~~
#      |                                        |
#      |                                        u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:3159:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 3159 | void             window_set_name(struct window *, const char *);
#      |                                                   ^~~~~~~~~~~~
# 2516|   	} else {
# 2517|   		options_set_number(w->options, "automatic-rename", 0);
# 2518|-> 		window_set_name(w, ictx->input_buf);
# 2519|   	}
# 2520|   	server_redraw_window_borders(w);

Error: COMPILER_WARNING (CWE-681): [#def53]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_osc_52’
tmux-3.5a-build/tmux-3.5a/input.c:2962:25: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘paste_add’ differ in signedness
# 2962 |         paste_add(NULL, out, outlen);
#      |                         ^~~
#      |                         |
#      |                         u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tmux.h:2197:42: note: expected ‘char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
# 2197 | void             paste_add(const char *, char *, size_t);
#      |                                          ^~~~~~
# 2960|   	notify_pane("pane-set-clipboard", wp);
# 2961|   
# 2962|-> 	paste_add(NULL, out, outlen);
# 2963|   }
# 2964|   

Error: COMPILER_WARNING (CWE-681): [#def54]
tmux-3.5a-build/tmux-3.5a/input.c: scope_hint: In function ‘input_reply_clipboard’
tmux-3.5a-build/tmux-3.5a/input.c:3014:40: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘__b64_ntop’ differ in signedness
# 3014 |                 if ((outlen = b64_ntop(buf, len, out, outlen)) == -1) {
#      |                                        ^~~
#      |                                        |
#      |                                        const char *
tmux-3.5a-build/tmux-3.5a/input.c:24: included_from: Included from here.
/usr/include/resolv.h:245:27: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
#  245 | int             b64_ntop (const unsigned char *, size_t, char *, size_t)
#      |                           ^~~~~~~~~~~~~~~~~~~~~
# 3012|   		outlen = 4 * ((len + 2) / 3) + 1;
# 3013|   		out = xmalloc(outlen);
# 3014|-> 		if ((outlen = b64_ntop(buf, len, out, outlen)) == -1) {
# 3015|   			free(out);
# 3016|   			return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
tmux-3.5a-build/tmux-3.5a/job.c: scope_hint: In function ‘job_run’
tmux-3.5a-build/tmux-3.5a/job.c:151:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out[1], 0)’
#  149|   
#  150|   		if (~flags & JOB_PTY) {
#  151|-> 			if (dup2(out[1], STDIN_FILENO) == -1)
#  152|   				fatal("dup2 failed");
#  153|   			if (dup2(out[1], STDOUT_FILENO) == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
tmux-3.5a-build/tmux-3.5a/job.c:153:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out[1], 1)’
#  151|   			if (dup2(out[1], STDIN_FILENO) == -1)
#  152|   				fatal("dup2 failed");
#  153|-> 			if (dup2(out[1], STDOUT_FILENO) == -1)
#  154|   				fatal("dup2 failed");
#  155|   			if (out[1] != STDIN_FILENO && out[1] != STDOUT_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
tmux-3.5a-build/tmux-3.5a/job.c:162:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
#  160|   			if (nullfd == -1)
#  161|   				fatal("open failed");
#  162|-> 			if (dup2(nullfd, STDERR_FILENO) == -1)
#  163|   				fatal("dup2 failed");
#  164|   			if (nullfd != STDERR_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
tmux-3.5a-build/tmux-3.5a/job.c:162:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
#  160|   			if (nullfd == -1)
#  161|   				fatal("open failed");
#  162|-> 			if (dup2(nullfd, STDERR_FILENO) == -1)
#  163|   				fatal("dup2 failed");
#  164|   			if (nullfd != STDERR_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
tmux-3.5a-build/tmux-3.5a/job.c:164:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
#  162|   			if (dup2(nullfd, STDERR_FILENO) == -1)
#  163|   				fatal("dup2 failed");
#  164|-> 			if (nullfd != STDERR_FILENO)
#  165|   				close(nullfd);
#  166|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
tmux-3.5a-build/tmux-3.5a/regsub.c: scope_hint: In function ‘regsub’
tmux-3.5a-build/tmux-3.5a/regsub.c:116:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  114|   		}
#  115|   	}
#  116|-> 	buf[len] = '\0';
#  117|   
#  118|   	regfree(&r);

Error: COMPILER_WARNING (CWE-681): [#def61]
tmux-3.5a-build/tmux-3.5a/screen-write.c: scope_hint: In function ‘screen_write_strlen’
tmux-3.5a-build/tmux-3.5a/screen-write.c:365:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘u_char *’ {aka ‘unsigned char *’} differ in signedness
#  365 |         ptr = msg;
#      |             ^
#  363|   	va_end(ap);
#  364|   
#  365|-> 	ptr = msg;
#  366|   	while (*ptr != '\0') {
#  367|   		if (*ptr > 0x7f && utf8_open(&ud, *ptr) == UTF8_MORE) {

Error: COMPILER_WARNING (CWE-681): [#def62]
tmux-3.5a-build/tmux-3.5a/screen-write.c:370:39: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
#  370 |                         left = strlen(ptr);
#      |                                       ^~~
#      |                                       |
#      |                                       u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/screen-write.c:22: included_from: Included from here.
/usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  407 | extern size_t strlen (const char *__s)
#      |                       ~~~~~~~~~~~~^~~
#  368|   			ptr++;
#  369|   
#  370|-> 			left = strlen(ptr);
#  371|   			if (left < (size_t)ud.size - 1)
#  372|   				break;

Error: COMPILER_WARNING (CWE-681): [#def63]
tmux-3.5a-build/tmux-3.5a/screen-write.c: scope_hint: In function ‘screen_write_vnputs’
tmux-3.5a-build/tmux-3.5a/screen-write.c:518:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘u_char *’ {aka ‘unsigned char *’} differ in signedness
#  518 |         ptr = msg;
#      |             ^
#  516|   	xvasprintf(&msg, fmt, ap);
#  517|   
#  518|-> 	ptr = msg;
#  519|   	while (*ptr != '\0') {
#  520|   		if (*ptr > 0x7f && utf8_open(ud, *ptr) == UTF8_MORE) {

Error: COMPILER_WARNING (CWE-681): [#def64]
tmux-3.5a-build/tmux-3.5a/screen-write.c:523:39: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
#  523 |                         left = strlen(ptr);
#      |                                       ^~~
#      |                                       |
#      |                                       u_char * {aka unsigned char *}
/usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  407 | extern size_t strlen (const char *__s)
#      |                       ~~~~~~~~~~~~^~~
#  521|   			ptr++;
#  522|   
#  523|-> 			left = strlen(ptr);
#  524|   			if (left < (size_t)ud->size - 1)
#  525|   				break;

Error: CPPCHECK_WARNING (CWE-457): [#def65]
tmux-3.5a-build/tmux-3.5a/screen-write.c:1860: warning[uninitvar]: Uninitialized variable: gc.data.width
# 1858|   			    &grid_default_cell);
# 1859|   		}
# 1860|-> 		if (gc.data.width > 1) {
# 1861|   			grid_view_set_cell(s->grid, xx, s->cy,
# 1862|   			    &grid_default_cell);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
tmux-3.5a-build/tmux-3.5a/server-client.c: scope_hint: In function ‘server_client_reset_state’
tmux-3.5a-build/tmux-3.5a/server-client.c:2448:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
# 2446|   		cursor = 0;
# 2447|   		tty_window_offset(tty, &ox, &oy, &sx, &sy);
# 2448|-> 		if (wp->xoff + s->cx >= ox && wp->xoff + s->cx <= ox + sx &&
# 2449|   		    wp->yoff + s->cy >= oy && wp->yoff + s->cy <= oy + sy) {
# 2450|   			cursor = 1;

Error: COMPILER_WARNING (CWE-681): [#def67]
tmux-3.5a-build/tmux-3.5a/server-client.c: scope_hint: In function ‘server_client_print’
tmux-3.5a-build/tmux-3.5a/server-client.c:3343:21: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
# 3343 |                 msg = EVBUFFER_DATA(evb);
#      |                     ^
# 3341|   		log_debug("%s: %s", __func__, msg);
# 3342|   	} else {
# 3343|-> 		msg = EVBUFFER_DATA(evb);
# 3344|   		if (msg[size - 1] != '\0')
# 3345|   			evbuffer_add(evb, "", 1);

Error: COMPILER_WARNING (CWE-681): [#def68]
tmux-3.5a-build/tmux-3.5a/server-client.c:3383:30: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
# 3383 |                         line = EVBUFFER_DATA(evb);
#      |                              ^
# 3381|   		size = EVBUFFER_LENGTH(evb);
# 3382|   		if (size != 0) {
# 3383|-> 			line = EVBUFFER_DATA(evb);
# 3384|   			window_copy_add(wp, 1, "%.*s", (int)size, line);
# 3385|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
tmux-3.5a-build/tmux-3.5a/spawn.c: scope_hint: In function ‘spawn_window’
tmux-3.5a-build/tmux-3.5a/spawn.c:181:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘w’
#  179|   	/* Set the name of the new window. */
#  180|   	if (~sc->flags & SPAWN_RESPAWN) {
#  181|-> 		free(w->name);
#  182|   		if (sc->name != NULL) {
#  183|   			w->name = format_single(item, sc->name, c, s, NULL,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
tmux-3.5a-build/tmux-3.5a/status.c: scope_hint: In function ‘status_prompt_add_list’
tmux-3.5a-build/tmux-3.5a/status.c:1612:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
# 1610|   
# 1611|   	for (i = 0; i < *size; i++) {
# 1612|-> 		if (strcmp((*list)[i], s) == 0)
# 1613|   			return;
# 1614|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
tmux-3.5a-build/tmux-3.5a/status.c: scope_hint: In function ‘status_prompt_complete_window_menu’
tmux-3.5a-build/tmux-3.5a/status.c:1828:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
tmux-3.5a-build/tmux-3.5a/compat.h:148: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:35: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/status.c:30: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/status.c:1813:9: note: in expansion of macro ‘RB_FOREACH’
# 1826|   			xasprintf(&list[size++], "%d", wl->idx);
# 1827|   		} else {
# 1828|-> 			xasprintf(&tmp, "%s:%d (%s)", s->name, wl->idx,
# 1829|   			    wl->window->name);
# 1830|   			xasprintf(&list[size++], "%s:%d", s->name, wl->idx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
tmux-3.5a-build/tmux-3.5a/status.c: scope_hint: In function ‘status_prompt_complete’
tmux-3.5a-build/tmux-3.5a/status.c:1983:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1981|   		else {
# 1982|   			copy = xstrdup(s);
# 1983|-> 			*strchr(copy, ':') = '\0';
# 1984|   			session = session_find(copy);
# 1985|   			free(copy);

Error: COMPILER_WARNING (CWE-681): [#def73]
tmux-3.5a-build/tmux-3.5a/tty-keys.c: scope_hint: In function ‘tty_keys_next’
tmux-3.5a-build/tmux-3.5a/tty-keys.c:672:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness
#  672 |         buf = EVBUFFER_DATA(tty->in);
#      |             ^
#  670|   
#  671|   	/* Get key buffer. */
#  672|-> 	buf = EVBUFFER_DATA(tty->in);
#  673|   	len = EVBUFFER_LENGTH(tty->in);
#  674|   	if (len == 0)

Error: COMPILER_WARNING (CWE-681): [#def74]
tmux-3.5a-build/tmux-3.5a/tty-keys.c: scope_hint: In function ‘tty_keys_clipboard’
tmux-3.5a-build/tmux-3.5a/tty-keys.c:1269:38: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘__b64_pton’ differ in signedness
# 1269 |         if ((outlen = b64_pton(copy, out, len)) == -1) {
#      |                                      ^~~
#      |                                      |
#      |                                      char *
tmux-3.5a-build/tmux-3.5a/tty-keys.c:26: included_from: Included from here.
/usr/include/resolv.h:247:41: note: expected ‘unsigned char *’ but argument is of type ‘char *’
#  247 | int             b64_pton (char const *, unsigned char *, size_t) __THROW;
#      |                                         ^~~~~~~~~~~~~~~
# 1267|   	needed = (end / 4) * 3;
# 1268|   	out = xmalloc(needed);
# 1269|-> 	if ((outlen = b64_pton(copy, out, len)) == -1) {
# 1270|   		free(out);
# 1271|   		free(copy);

Error: COMPILER_WARNING (CWE-252): [#def75]
tmux-3.5a-build/tmux-3.5a/tty.c: scope_hint: In function ‘tty_add’
tmux-3.5a-build/tmux-3.5a/tty.c:600:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  600 |                 write(tty_log_fd, buf, len);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  598|   
#  599|   	if (tty_log_fd != -1)
#  600|-> 		write(tty_log_fd, buf, len);
#  601|   	if (tty->flags & TTY_STARTED)
#  602|   		event_add(&tty->event_out, NULL);

Error: COMPILER_WARNING (CWE-681): [#def76]
tmux-3.5a-build/tmux-3.5a/tty.c: scope_hint: In function ‘tty_putc’
tmux-3.5a-build/tmux-3.5a/tty.c:628:38: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_add’ differ in signedness
#  628 |                         tty_add(tty, &ch, 1);
#      |                                      ^~~
#      |                                      |
#      |                                      u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tty.c:586:38: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  586 | tty_add(struct tty *tty, const char *buf, size_t len)
#      |                          ~~~~~~~~~~~~^~~
#  626|   			tty_add(tty, acs, strlen(acs));
#  627|   		else
#  628|-> 			tty_add(tty, &ch, 1);
#  629|   	} else
#  630|   		tty_add(tty, &ch, 1);

Error: COMPILER_WARNING (CWE-681): [#def77]
tmux-3.5a-build/tmux-3.5a/tty.c:630:30: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_add’ differ in signedness
#  630 |                 tty_add(tty, &ch, 1);
#      |                              ^~~
#      |                              |
#      |                              u_char * {aka unsigned char *}
tmux-3.5a-build/tmux-3.5a/tty.c:586:38: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#  586 | tty_add(struct tty *tty, const char *buf, size_t len)
#      |                          ~~~~~~~~~~~~^~~
#  628|   			tty_add(tty, &ch, 1);
#  629|   	} else
#  630|-> 		tty_add(tty, &ch, 1);
#  631|   
#  632|   	if (ch >= 0x20 && ch != 0x7f) {

Error: COMPILER_WARNING (CWE-681): [#def78]
tmux-3.5a-build/tmux-3.5a/tty.c: scope_hint: In function ‘tty_check_codeset’
tmux-3.5a-build/tmux-3.5a/tty.c:1369:46: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_acs_reverse_get’ differ in signedness
# 1369 |         c = tty_acs_reverse_get(tty, gc->data.data, gc->data.size);
#      |                                      ~~~~~~~~^~~~~
#      |                                              |
#      |                                              const u_char * {aka const unsigned char *}
tmux-3.5a-build/tmux-3.5a/tty.c:34: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:2493:52: note: expected ‘const char *’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
# 2493 | int              tty_acs_reverse_get(struct tty *, const char *, size_t);
#      |                                                    ^~~~~~~~~~~~
# 1367|   
# 1368|   	/* See if this can be mapped to an ACS character. */
# 1369|-> 	c = tty_acs_reverse_get(tty, gc->data.data, gc->data.size);
# 1370|   	if (c != -1) {
# 1371|   		utf8_set(&new.data, c);

Error: COMPILER_WARNING (CWE-681): [#def79]
tmux-3.5a-build/tmux-3.5a/tty.c: scope_hint: In function ‘tty_set_selection’
tmux-3.5a-build/tmux-3.5a/tty.c:2236:18: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘__b64_ntop’ differ in signedness
# 2236 |         b64_ntop(buf, len, encoded, size);
#      |                  ^~~
#      |                  |
#      |                  const char *
tmux-3.5a-build/tmux-3.5a/tty.c:27: included_from: Included from here.
/usr/include/resolv.h:245:27: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
#  245 | int             b64_ntop (const unsigned char *, size_t, char *, size_t)
#      |                           ^~~~~~~~~~~~~~~~~~~~~
# 2234|   	encoded = xmalloc(size);
# 2235|   
# 2236|-> 	b64_ntop(buf, len, encoded, size);
# 2237|   	tty->flags |= TTY_NOBLOCK;
# 2238|   	tty_putcode_ss(tty, TTYC_MS, flags, encoded);

Error: COMPILER_WARNING (CWE-681): [#def80]
tmux-3.5a-build/tmux-3.5a/utf8.c: scope_hint: In function ‘utf8_towc’
tmux-3.5a-build/tmux-3.5a/utf8.c:439:30: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘mbtowc’ differ in signedness
#  439 |         switch (mbtowc(wc, ud->data, ud->size)) {
#      |                            ~~^~~~~~
#      |                              |
#      |                              const u_char * {aka const unsigned char *}
tmux-3.5a-build/tmux-3.5a/utf8.c:23: included_from: Included from here.
/usr/include/stdlib.h:1066:43: note: expected ‘const char * restrict’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
# 1066 |                    const char *__restrict __s, size_t __n) __THROW;
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~
#  437|   	switch (utf8proc_mbtowc(wc, ud->data, ud->size)) {
#  438|   #else
#  439|-> 	switch (mbtowc(wc, ud->data, ud->size)) {
#  440|   #endif
#  441|   	case -1:

Error: COMPILER_WARNING (CWE-681): [#def81]
tmux-3.5a-build/tmux-3.5a/utf8.c: scope_hint: In function ‘utf8_fromwc’
tmux-3.5a-build/tmux-3.5a/utf8.c:462:25: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘wctomb’ differ in signedness
#  462 |         size = wctomb(ud->data, wc);
#      |                       ~~^~~~~~
#      |                         |
#      |                         u_char * {aka unsigned char *}
/usr/include/features.h:511: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/utf8.c:19: included_from: Included from here.
/usr/include/bits/stdlib.h:91:16: note: expected ‘char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
#   91 | __NTH (wctomb (__fortify_clang_overload_arg (char *, ,__s), wchar_t __wchar))
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  460|   	size = utf8proc_wctomb(ud->data, wc);
#  461|   #else
#  462|-> 	size = wctomb(ud->data, wc);
#  463|   #endif
#  464|   	if (size < 0) {

Error: COMPILER_WARNING (CWE-252): [#def82]
tmux-3.5a-build/tmux-3.5a/utf8.c:466:17: warning[-Wunused-result]: ignoring return value of ‘wctomb’ declared with attribute ‘warn_unused_result’
#  466 |                 wctomb(NULL, 0);
#      |                 ^~~~~~~~~~~~~~~
#  464|   	if (size < 0) {
#  465|   		log_debug("UTF-8 %d, wctomb() %d", wc, errno);
#  466|-> 		wctomb(NULL, 0);
#  467|   		return (UTF8_ERROR);
#  468|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
tmux-3.5a-build/tmux-3.5a/window-client.c: scope_hint: In function ‘window_client_build’
tmux-3.5a-build/tmux-3.5a/window-client.c:193:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tmux-3.5a-build/tmux-3.5a/window-client.c:22: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  191|   
#  192|   	window_client_sort = sort_crit;
#  193|-> 	qsort(data->item_list, data->item_size, sizeof *data->item_list,
#  194|   	    window_client_cmp);
#  195|   

Error: COMPILER_WARNING (CWE-252): [#def84]
tmux-3.5a-build/tmux-3.5a/window-copy.c: scope_hint: In function ‘window_copy_vadd’
tmux-3.5a-build/tmux-3.5a/window-copy.c:553:17: warning[-Wunused-result]: ignoring return value of ‘vasprintf’ declared with attribute ‘warn_unused_result’
#  553 |                 vasprintf(&text, fmt, ap);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
#  551|   
#  552|   	if (parse) {
#  553|-> 		vasprintf(&text, fmt, ap);
#  554|   		screen_write_start(&writing_ctx, writing);
#  555|   		screen_write_reset(&writing_ctx);

Error: COMPILER_WARNING (CWE-681): [#def85]
tmux-3.5a-build/tmux-3.5a/window-copy.c: scope_hint: In function ‘window_copy_vadd’
tmux-3.5a-build/tmux-3.5a/window-copy.c:557:27: warning[-Wpointer-sign]: pointer targets in passing argument 5 of ‘input_parse_screen’ differ in signedness
#  557 |                     data, text, strlen(text));
#      |                           ^~~~
#      |                           |
#      |                           char *
tmux-3.5a-build/tmux-3.5a/window-copy.c:27: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:2861:48: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
# 2861 |              screen_write_init_ctx_cb, void *, u_char *, size_t);
#      |                                                ^~~~~~~~
#  555|   		screen_write_reset(&writing_ctx);
#  556|   		input_parse_screen(data->ictx, writing, window_copy_init_ctx_cb,
#  557|-> 		    data, text, strlen(text));
#  558|   		free(text);
#  559|   	}

Error: COMPILER_WARNING (CWE-681): [#def86]
tmux-3.5a-build/tmux-3.5a/window-copy.c: scope_hint: In function ‘window_copy_cellstring’
tmux-3.5a-build/tmux-3.5a/window-copy.c:3354:25: warning[-Wpointer-sign]: pointer targets in returning ‘u_char *’ {aka ‘unsigned char *’} from a function with return type ‘const char *’ differ in signedness
# 3354 |                 return (&gce->data.data);
#      |                        ~^~~~~~~~~~~~~~~~
# 3352|   		*size = 1;
# 3353|   		*allocated = 0;
# 3354|-> 		return (&gce->data.data);
# 3355|   	}
# 3356|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def87]
tmux-3.5a-build/tmux-3.5a/window-copy.c: scope_hint: In function ‘window_copy_stringify’
tmux-3.5a-build/tmux-3.5a/window-copy.c:3449:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 3447|   			buf[bx++] = *d;
# 3448|   		else {
# 3449|-> 			memcpy(buf + bx, d, dlen);
# 3450|   			bx += dlen;
# 3451|   		}

Error: COMPILER_WARNING (CWE-681): [#def88]
tmux-3.5a-build/tmux-3.5a/window-copy.c: scope_hint: In function ‘window_copy_append_selection’
tmux-3.5a-build/tmux-3.5a/window-copy.c:4810:53: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘screen_write_setselection’ differ in signedness
# 4810 |                 screen_write_setselection(&ctx, "", buf, len);
#      |                                                     ^~~
#      |                                                     |
#      |                                                     char *
tmux-3.5a-build/tmux-3.5a/tmux.h:3037:14: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
# 3037 |              u_char *, u_int);
#      |              ^~~~~~~~
# 4808|   	if (options_get_number(global_options, "set-clipboard") != 0) {
# 4809|   		screen_write_start_pane(&ctx, wp, NULL);
# 4810|-> 		screen_write_setselection(&ctx, "", buf, len);
# 4811|   		screen_write_stop(&ctx);
# 4812|   		notify_pane("pane-set-clipboard", wp);

Error: CPPCHECK_WARNING (CWE-476): [#def89]
tmux-3.5a-build/tmux-3.5a/window-tree.c:440: warning[nullPointer]: Possible null pointer dereference: l
#  438|   	}
#  439|   	window_tree_sort = sort_crit;
#  440|-> 	qsort(l, n, sizeof *l, window_tree_cmp_window);
#  441|   
#  442|   	empty = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def90]
tmux-3.5a-build/tmux-3.5a/window-tree.c: scope_hint: In function ‘window_tree_build_session’
tmux-3.5a-build/tmux-3.5a/window-tree.c:440:9: warning[-Wanalyzer-null-argument]: use of NULL ‘l’ where non-null expected
tmux-3.5a-build/tmux-3.5a/compat.h:148: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/tmux.h:35: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/window-tree.c:25: included_from: Included from here.
tmux-3.5a-build/tmux-3.5a/window-tree.c:435:9: note: in expansion of macro ‘RB_FOREACH’
tmux-3.5a-build/tmux-3.5a/window-tree.c:22: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  438|   	}
#  439|   	window_tree_sort = sort_crit;
#  440|-> 	qsort(l, n, sizeof *l, window_tree_cmp_window);
#  441|   
#  442|   	empty = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def91]
tmux-3.5a-build/tmux-3.5a/window-tree.c:486: warning[nullPointer]: Possible null pointer dereference: l
#  484|   	}
#  485|   	window_tree_sort = sort_crit;
#  486|-> 	qsort(l, n, sizeof *l, window_tree_cmp_session);
#  487|   
#  488|   	for (i = 0; i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def92]
tmux-3.5a-build/tmux-3.5a/window-tree.c: scope_hint: In function ‘window_tree_build’
tmux-3.5a-build/tmux-3.5a/window-tree.c:486:9: warning[-Wanalyzer-null-argument]: use of NULL ‘l’ where non-null expected
tmux-3.5a-build/tmux-3.5a/window-tree.c:475:9: note: in expansion of macro ‘RB_FOREACH’
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  484|   	}
#  485|   	window_tree_sort = sort_crit;
#  486|-> 	qsort(l, n, sizeof *l, window_tree_cmp_session);
#  487|   
#  488|   	for (i = 0; i < n; i++)

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-82.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nametmux-3.5a-2.fc42
store-results-to/tmp/tmpk4ermvz4/tmux-3.5a-2.fc42.tar.xz
time-created2024-11-13 03:21:33
time-finished2024-11-13 03:23:47
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpk4ermvz4/tmux-3.5a-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpk4ermvz4/tmux-3.5a-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9