tmux-3.6-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1]
tmux-3.6/arguments.c:500:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/arguments.c:499:9: acquire_resource: ‘va_start’ called here
tmux-3.6/arguments.c:500:16: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/arguments.c:500:16: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
tmux-3.6/cfg.c:123:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
tmux-3.6/cfg.c:109:18: acquire_resource: opened here
tmux-3.6/cfg.c:109:12: branch_false: following ‘false’ branch...
tmux-3.6/cfg.c:116:9: branch_false: ...to here
tmux-3.6/cfg.c:123:14: throw: if ‘cmd_parse_from_file’ throws an exception...
tmux-3.6/cfg.c:123:14: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
tmux-3.6/cfg.c:123:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
tmux-3.6/cfg.c:109:18: acquire_memory: allocated here
tmux-3.6/cfg.c:109:12: branch_false: following ‘false’ branch...
tmux-3.6/cfg.c:116:9: branch_false: ...to here
tmux-3.6/cfg.c:123:14: throw: if ‘cmd_parse_from_file’ throws an exception...
tmux-3.6/cfg.c:123:14: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
tmux-3.6/cfg.c:213:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cfg.c:212:9: acquire_resource: ‘va_start’ called here
tmux-3.6/cfg.c:213:9: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/cfg.c:213:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
tmux-3.6/client.c:125:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/client.c:115:12: branch_false: following ‘false’ branch (when ‘size <= 107’)...
tmux-3.6/client.c:119:9: branch_false: ...to here
tmux-3.6/client.c:122:19: acquire_resource: stream socket created here
tmux-3.6/client.c:122:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/client.c:125:9: branch_false: ...to here
tmux-3.6/client.c:125:9: throw: if ‘log_debug’ throws an exception...
tmux-3.6/client.c:125:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
tmux-3.6/client.c:126:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/client.c:115:12: branch_false: following ‘false’ branch (when ‘size <= 107’)...
tmux-3.6/client.c:119:9: branch_false: ...to here
tmux-3.6/client.c:122:19: acquire_resource: stream socket created here
tmux-3.6/client.c:122:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/client.c:125:9: branch_false: ...to here
tmux-3.6/client.c:126:13: throw: if ‘connect’ throws an exception...
tmux-3.6/client.c:126:13: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
tmux-3.6/client.c:479:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/client.c:477:19: acquire_resource: opened here
tmux-3.6/client.c:477:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/client.c:479:9: branch_false: ...to here
tmux-3.6/client.c:479:9: throw: if ‘proc_send’ throws an exception...
tmux-3.6/client.c:479:9: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
tmux-3.6/client.c:482:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/client.c:477:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/client.c:479:9: branch_false: ...to here
tmux-3.6/client.c:480:19: acquire_resource: opened here
tmux-3.6/client.c:480:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/client.c:482:9: branch_false: ...to here
tmux-3.6/client.c:482:9: throw: if ‘proc_send’ throws an exception...
tmux-3.6/client.c:482:9: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-252): [#def9]
tmux-3.6/client.c: scope_hint: In function ‘client_dispatch_attached’
tmux-3.6/client.c:805:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
tmux-3.6/cmd-capture-pane.c:69:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line’
tmux-3.6/cmd-capture-pane.c:75:1: enter_function: entry to ‘cmd_capture_pane_pending’
tmux-3.6/cmd-capture-pane.c:84:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-capture-pane.c:87:16: branch_false: ...to here
tmux-3.6/cmd-capture-pane.c:91:12: branch_true: following ‘true’ branch...
tmux-3.6/cmd-capture-pane.c:91:12: branch_true: ...to here
tmux-3.6/cmd-capture-pane.c:92:29: branch_true: following ‘true’ branch...
tmux-3.6/cmd-capture-pane.c:93:33: branch_true: ...to here
tmux-3.6/cmd-capture-pane.c:93:28: branch_true: following ‘true’ branch...
tmux-3.6/cmd-capture-pane.c:94:33: branch_true: ...to here
tmux-3.6/cmd-capture-pane.c:98:31: call_function: calling ‘cmd_capture_pane_append’ from ‘cmd_capture_pane_pending’
Error: COMPILER_WARNING (CWE-681): [#def11]
tmux-3.6/cmd-capture-pane.c: scope_hint: In function ‘cmd_capture_pane_pending’
tmux-3.6/cmd-capture-pane.c:87:14: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
Error: COMPILER_WARNING (CWE-457): [#def12]
tmux-3.6/cmd-display-menu.c:513:13: warning[-Wmaybe-uninitialized]: ‘h’ may be used uninitialized
tmux-3.6/cmd-display-menu.c:400:45: note: ‘h’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def13]
tmux-3.6/cmd-display-menu.c: scope_hint: In function ‘cmd_display_popup_exec’
tmux-3.6/cmd-display-menu.c:513:13: warning[-Wmaybe-uninitialized]: ‘w’ may be used uninitialized
tmux-3.6/cmd-display-menu.c:400:42: note: ‘w’ was declared here
Error: CPPCHECK_WARNING (CWE-562): [#def14]
tmux-3.6/cmd-find.c:979: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def15]
tmux-3.6/cmd-parse.y:1142:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd-parse.c:1543:1: enter_function: entry to ‘yyparse’
tmux-3.6/cmd-parse.c:1561:8: branch_true: following ‘true’ branch...
tmux-3.6/cmd-parse.c:2248:5: call_function: calling ‘yyerror’ from ‘yyparse’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
tmux-3.6/cmd-parse.y:1523:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tmp’
tmux-3.6/cmd-parse.c:1543:1: enter_function: entry to ‘yyparse’
tmux-3.6/cmd-parse.c:1561:8: branch_false: following ‘false’ branch...
tmux-3.6/cmd-parse.c:1562:5: branch_false: ...to here
tmux-3.6/cmd-parse.c:1567:8: branch_false: following ‘false’ branch (when ‘yyn == 0’)...
tmux-3.6/cmd-parse.c:1568:9: branch_false: ...to here
tmux-3.6/cmd-parse.c:1568:8: branch_true: following ‘true’ branch...
tmux-3.6/cmd-parse.c:1570:23: branch_true: ...to here
tmux-3.6/cmd-parse.c:1570:23: call_function: calling ‘yylex’ from ‘yyparse’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
tmux-3.6/cmd-pipe-pane.c:141:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fd[1], 0)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:140:20: branch_true: following ‘true’ branch (when ‘out != 0’)...
tmux-3.6/cmd-pipe-pane.c:141:29: branch_true: ...to here
tmux-3.6/cmd-pipe-pane.c:141:29: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:141:28: danger: ‘dup2(pipe_fd[1], 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
tmux-3.6/cmd-pipe-pane.c:141:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:140:20: branch_true: following ‘true’ branch (when ‘out != 0’)...
tmux-3.6/cmd-pipe-pane.c:141:29: branch_true: ...to here
tmux-3.6/cmd-pipe-pane.c:141:29: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
tmux-3.6/cmd-pipe-pane.c:144:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:140:20: branch_false: following ‘false’ branch (when ‘out == 0’)...
tmux-3.6/cmd-pipe-pane.c:144:29: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:144:28: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING: [#def20]
tmux-3.6/cmd-pipe-pane.c:144:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:140:20: branch_false: following ‘false’ branch (when ‘out == 0’)...
tmux-3.6/cmd-pipe-pane.c:144:29: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:144:29: danger: ‘open("/dev/null", 1)’ could be invalid: unchecked value from [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
tmux-3.6/cmd-pipe-pane.c:148:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fd[1], 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:144:28: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:147:20: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:147:20: branch_true: following ‘true’ branch (when ‘in != 0’)...
tmux-3.6/cmd-pipe-pane.c:148:29: branch_true: ...to here
tmux-3.6/cmd-pipe-pane.c:148:29: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:148:28: danger: ‘dup2(pipe_fd[1], 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
tmux-3.6/cmd-pipe-pane.c:148:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:144:28: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:147:20: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:147:20: branch_true: following ‘true’ branch (when ‘in != 0’)...
tmux-3.6/cmd-pipe-pane.c:148:29: branch_true: ...to here
tmux-3.6/cmd-pipe-pane.c:148:29: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING: [#def23]
tmux-3.6/cmd-pipe-pane.c:153:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:141:28: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:147:20: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:147:20: branch_false: following ‘false’ branch (when ‘in == 0’)...
tmux-3.6/cmd-pipe-pane.c:153:29: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:153:29: danger: ‘open("/dev/null", 1)’ could be invalid: unchecked value from [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING: [#def24]
tmux-3.6/cmd-pipe-pane.c:156:21: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
tmux-3.6/cmd-pipe-pane.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:77:9: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:90:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:112:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:118:14: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:139:27: acquire_resource: opened here
tmux-3.6/cmd-pipe-pane.c:141:28: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:147:20: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:153:28: branch_false: following ‘false’ branch...
tmux-3.6/cmd-pipe-pane.c:156:21: branch_false: ...to here
tmux-3.6/cmd-pipe-pane.c:156:21: danger: ‘open("/dev/null", 1)’ could be invalid: unchecked value from [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
tmux-3.6/cmd-queue.c:266:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd-queue.c:730:1: enter_function: entry to ‘cmdq_next’
tmux-3.6/cmd-queue.c:732:42: call_function: inlined call to ‘cmdq_get’ from ‘cmdq_next’
tmux-3.6/cmd-queue.c:732:42: call_function: inlined call to ‘cmdq_get’ from ‘cmdq_next’
tmux-3.6/cmd-queue.c:733:41: call_function: calling ‘cmdq_name’ from ‘cmdq_next’
tmux-3.6/cmd-queue.c:733:41: return_function: returning to ‘cmdq_next’ from ‘cmdq_name’
tmux-3.6/cmd-queue.c:739:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:743:13: branch_false: ...to here
tmux-3.6/cmd-queue.c:743:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:748:9: branch_false: ...to here
tmux-3.6/cmd-queue.c:751:20: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:753:17: branch_false: ...to here
tmux-3.6/cmd-queue.c:761:20: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:768:21: branch_false: ...to here
tmux-3.6/cmd-queue.c:768:20: branch_true: following ‘true’ branch...
tmux-3.6/cmd-queue.c:769:38: branch_true: ...to here
tmux-3.6/cmd-queue.c:774:42: call_function: calling ‘cmdq_fire_command’ from ‘cmdq_next’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def26]
tmux-3.6/cmd-queue.c:380:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd-queue.c:597:1: enter_function: entry to ‘cmdq_fire_command’
tmux-3.6/cmd-queue.c:610:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:612:13: branch_false: ...to here
tmux-3.6/cmd-queue.c:643:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:645:18: branch_false: ...to here
tmux-3.6/cmd-queue.c:646:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:649:18: branch_false: ...to here
tmux-3.6/cmd-queue.c:650:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:653:13: branch_false: ...to here
tmux-3.6/cmd-queue.c:653:12: branch_true: following ‘true’ branch...
tmux-3.6/cmd-queue.c:654:21: branch_true: ...to here
tmux-3.6/cmd-queue.c:654:20: branch_true: following ‘true’ branch...
tmux-3.6/cmd-queue.c:662:65: branch_true: ...to here
tmux-3.6/cmd-queue.c:662:17: call_function: calling ‘cmdq_insert_hook’ from ‘cmdq_fire_command’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
tmux-3.6/cmd-queue.c:854:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd-queue.c:850:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-queue.c:853:9: branch_false: ...to here
tmux-3.6/cmd-queue.c:853:9: acquire_resource: ‘va_start’ called here
tmux-3.6/cmd-queue.c:854:9: throw: if ‘evbuffer_add_vprintf’ throws an exception...
tmux-3.6/cmd-queue.c:854:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def28]
tmux-3.6/cmd-queue.c:873:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd-queue.c:872:9: acquire_resource: ‘va_start’ called here
tmux-3.6/cmd-queue.c:873:9: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/cmd-queue.c:873:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
tmux-3.6/cmd-rotate-window.c:74:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wp’
tmux-3.6/cmd-rotate-window.c:57:12: branch_true: following ‘true’ branch...
tmux-3.6/cmd-rotate-window.c:58:22: branch_true: ...to here
tmux-3.6/cmd-rotate-window.c:66:28: branch_false: following ‘false’ branch (when ‘wp2’ is non-NULL)...
tmux-3.6/cmd-rotate-window.c:68:43: branch_false: ...to here
tmux-3.6/cmd-rotate-window.c:74:17: danger: dereference of NULL ‘wp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
tmux-3.6/cmd-rotate-window.c:99:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wp’
tmux-3.6/cmd-rotate-window.c:57:12: branch_false: following ‘false’ branch...
tmux-3.6/cmd-rotate-window.c:83:17: branch_false: ...to here
tmux-3.6/cmd-rotate-window.c:85:17: release_memory: ‘*wp.entry.tqe_next’ is NULL
tmux-3.6/cmd-rotate-window.c:90:17: branch_false: following ‘false’ branch (when ‘wp’ is NULL)...
tmux-3.6/cmd-rotate-window.c:99:17: branch_false: ...to here
tmux-3.6/cmd-rotate-window.c:99:17: danger: dereference of NULL ‘wp’
Error: COMPILER_WARNING (CWE-457): [#def31]
tmux-3.6/cmd-run-shell.c: scope_hint: In function ‘cmd_run_shell_exec’
tmux-3.6/cmd-run-shell.c:172:33: warning[-Wmaybe-uninitialized]: ‘d’ may be used uninitialized
tmux-3.6/cmd-run-shell.c:118:42: note: ‘d’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def32]
tmux-3.6/cmd.c:241:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/cmd.c:240:9: acquire_resource: ‘va_start’ called here
tmux-3.6/cmd.c:241:9: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/cmd.c:241:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def33]
tmux-3.6/compat/getopt_long.c: scope_hint: In function ‘getopt_internal’
tmux-3.6/compat/getopt_long.c:472:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def34]
tmux-3.6/compat/getopt_long.c:472:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-681): [#def35]
tmux-3.6/compat/getpeereid.c: scope_hint: In function ‘getpeereid’
tmux-3.6/compat/getpeereid.c:36:57: warning[-Wpointer-sign]: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
tmux-3.6/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 *’
Error: COMPILER_WARNING (CWE-563): [#def36]
tmux-3.6/compat/imsg-buffer.c: scope_hint: In function ‘msgbuf_clear’
tmux-3.6/compat/imsg-buffer.c:702:26: warning[-Wunused-variable]: unused variable ‘buf’
Error: COMPILER_WARNING: [#def37]
tmux-3.6/compat/vis.c: scope_hint: In function ‘stravis’
tmux-3.6/compat/vis.c:222:23: warning[-Wuse-after-free]: pointer ‘buf_15’ may be used after ‘realloc’
tmux-3.6/compat/vis.c:220:17: note: call to ‘realloc’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def38]
tmux-3.6/control.c:394:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/control.c:1045:1: enter_function: entry to ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: call_function: inlined call to ‘control_subs_RB_MINMAX’ from ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: branch_true: following ‘true’ branch (when ‘csub’ is non-NULL)...
tmux-3.6/control.c:1055:9: branch_true: ...to here
tmux-3.6/control.c:1058:25: call_function: calling ‘control_check_subs_session’ from ‘control_check_subs_timer’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def39]
tmux-3.6/control.c:420:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/control.c:1045:1: enter_function: entry to ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: call_function: inlined call to ‘control_subs_RB_MINMAX’ from ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: branch_true: following ‘true’ branch (when ‘csub’ is non-NULL)...
tmux-3.6/control.c:1055:9: branch_true: ...to here
tmux-3.6/control.c:1058:25: call_function: calling ‘control_check_subs_session’ from ‘control_check_subs_timer’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def40]
tmux-3.6/control.c:421:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/control.c:1045:1: enter_function: entry to ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: call_function: inlined call to ‘control_subs_RB_MINMAX’ from ‘control_check_subs_timer’
tmux-3.6/control.c:1055:9: branch_true: following ‘true’ branch (when ‘csub’ is non-NULL)...
tmux-3.6/control.c:1055:9: branch_true: ...to here
tmux-3.6/control.c:1058:25: call_function: calling ‘control_check_subs_session’ from ‘control_check_subs_timer’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
tmux-3.6/environ.c:121:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/environ.c:249:1: enter_function: entry to ‘environ_for_session’
tmux-3.6/environ.c:256:9: call_function: calling ‘environ_copy’ from ‘environ_for_session’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
tmux-3.6/environ.c:122:32: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/environ.c:249:1: enter_function: entry to ‘environ_for_session’
tmux-3.6/environ.c:256:9: call_function: calling ‘environ_copy’ from ‘environ_for_session’
Error: COMPILER_WARNING (CWE-704): [#def43]
tmux-3.6/environ.c: scope_hint: In function ‘environ_put’
tmux-3.6/environ.c:154:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def44]
tmux-3.6/environ.c:154:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-252): [#def45]
tmux-3.6/environ.c: scope_hint: In function ‘environ_log’
tmux-3.6/environ.c:234:9: warning[-Wunused-result]: ignoring return value of ‘vasprintf’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
tmux-3.6/file.c:765:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor
tmux-3.6/file.c:725:1: enter_function: entry to ‘file_read_open’
tmux-3.6/file.c:737:12: branch_false: following ‘false’ branch (when ‘msglen > 7’)...
tmux-3.6/file.c:739:12: branch_false: ...to here
tmux-3.6/file.c:746:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:750:14: branch_false: ...to here
tmux-3.6/file.c:750:14: call_function: calling ‘file_create_with_peer’ from ‘file_read_open’
tmux-3.6/file.c:750:14: return_function: returning to ‘file_read_open’ from ‘file_create_with_peer’
tmux-3.6/file.c:751:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:756:9: branch_false: ...to here
tmux-3.6/file.c:757:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:759:17: branch_false: ...to here
tmux-3.6/file.c:759:17: branch_true: following ‘true’ branch (when ‘allow_streams != 0’)...
tmux-3.6/file.c:760:20: branch_true: ...to here
tmux-3.6/file.c:760:20: branch_false: following ‘false’ branch...
tmux-3.6/file.c:763:34: branch_false: ...to here
tmux-3.6/file.c:763:34: acquire_resource: opened here
tmux-3.6/file.c:764:28: branch_true: following ‘true’ branch (when ‘close_received != 0’)...
tmux-3.6/file.c:765:33: branch_true: ...to here
tmux-3.6/file.c:765:33: danger: leaks here; was opened at [(25)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
tmux-3.6/file.c:774:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
tmux-3.6/file.c:725:1: enter_function: entry to ‘file_read_open’
tmux-3.6/file.c:737:12: branch_false: following ‘false’ branch (when ‘msglen > 7’)...
tmux-3.6/file.c:739:12: branch_false: ...to here
tmux-3.6/file.c:746:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:750:14: branch_false: ...to here
tmux-3.6/file.c:750:14: call_function: calling ‘file_create_with_peer’ from ‘file_read_open’
tmux-3.6/file.c:750:14: return_function: returning to ‘file_read_open’ from ‘file_create_with_peer’
tmux-3.6/file.c:751:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:756:9: branch_false: ...to here
tmux-3.6/file.c:757:12: branch_true: following ‘true’ branch...
tmux-3.6/file.c:758:26: branch_true: ...to here
tmux-3.6/file.c:758:26: acquire_resource: opened here
tmux-3.6/file.c:769:12: branch_false: following ‘false’ branch...
tmux-3.6/file.c:774:21: branch_false: ...to here
tmux-3.6/file.c:774:21: danger: ‘*<unknown>.fd’ leaks here; was opened at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: COMPILER_WARNING (CWE-704): [#def48]
tmux-3.6/format.c: scope_hint: In function ‘format_table_get’
tmux-3.6/format.c:3579:17: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-681): [#def49]
tmux-3.6/grid.c: scope_hint: In function ‘grid_string_cells’
tmux-3.6/grid.c:1108:30: warning[-Wpointer-sign]: pointer targets in assignment from ‘u_char *’ {aka ‘unsigned char *’} to ‘const char *’ differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def50]
tmux-3.6/input-keys.c: scope_hint: In function ‘input_key_vt10x’
tmux-3.6/input-keys.c:509:50: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-704): [#def51]
tmux-3.6/input-keys.c:531:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def52]
tmux-3.6/input-keys.c:531:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-681): [#def53]
tmux-3.6/input-keys.c:545:40: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def54]
tmux-3.6/input-keys.c: scope_hint: In function ‘input_key’
tmux-3.6/input-keys.c:593:48: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def55]
tmux-3.6/input-keys.c:616:64: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def56]
tmux-3.6/input-keys.c:644:56: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def57]
tmux-3.6/input-keys.c:649:58: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘input_key_write’ differ in signedness
tmux-3.6/input-keys.c:420:72: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def58]
tmux-3.6/input-keys.c: scope_hint: In function ‘input_key_get_mouse’
tmux-3.6/input-keys.c:772:69: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
tmux-3.6/input-keys.c:357:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
Error: COMPILER_WARNING (CWE-681): [#def59]
tmux-3.6/input-keys.c:773:66: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
tmux-3.6/input-keys.c:357:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
Error: COMPILER_WARNING (CWE-681): [#def60]
tmux-3.6/input-keys.c:774:66: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_key_split2’ differ in signedness
tmux-3.6/input-keys.c:357:35: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
Error: COMPILER_WARNING (CWE-681): [#def61]
tmux-3.6/input.c: scope_hint: In function ‘input_table_compare’
tmux-3.6/input.c:774:28: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness
tmux-3.6/input.c:26: included_from: Included from here.
/usr/include/string.h:171:32: note: expected ‘const char *’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def62]
tmux-3.6/input.c: scope_hint: In function ‘input_split’
tmux-3.6/input.c:1081:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘u_char *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness
Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
tmux-3.6/input.c:1155:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/input.c:1154:9: acquire_resource: ‘va_start’ called here
tmux-3.6/input.c:1155:9: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/input.c:1155:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def64]
tmux-3.6/input.c: scope_hint: In function ‘input_esc_dispatch’
tmux-3.6/input.c:1369:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def65]
tmux-3.6/input.c:1369:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def66]
tmux-3.6/input.c: scope_hint: In function ‘input_csi_dispatch’
tmux-3.6/input.c:1453:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def67]
tmux-3.6/input.c:1453:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-681): [#def68]
tmux-3.6/input.c: scope_hint: In function ‘input_dcs_dispatch’
tmux-3.6/input.c:2561:34: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘sixel_parse’ differ in signedness
tmux-3.6/input.c:29: included_from: Included from here.
tmux-3.6/tmux.h:3644:33: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def69]
tmux-3.6/input.c:2585:41: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
/usr/include/string.h:174:33: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def70]
tmux-3.6/input.c: scope_hint: In function ‘input_exit_osc’
tmux-3.6/input.c:2634:47: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_title’ differ in signedness
tmux-3.6/tmux.h:3193:44: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def71]
tmux-3.6/input.c:2641:35: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_4’ differ in signedness
tmux-3.6/input.c:164:49: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def72]
tmux-3.6/input.c:2644:34: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘utf8_isvalid’ differ in signedness
tmux-3.6/tmux.h:3529:31: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def73]
tmux-3.6/input.c:2645:50: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_path’ differ in signedness
tmux-3.6/tmux.h:3194:43: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def74]
tmux-3.6/input.c:2653:35: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_8’ differ in signedness
tmux-3.6/input.c:165:49: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def75]
tmux-3.6/input.c:2656:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_10’ differ in signedness
tmux-3.6/input.c:166:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def76]
tmux-3.6/input.c:2659:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_11’ differ in signedness
tmux-3.6/input.c:167:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def77]
tmux-3.6/input.c:2662:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_12’ differ in signedness
tmux-3.6/input.c:168:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def78]
tmux-3.6/input.c:2665:36: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_52’ differ in signedness
tmux-3.6/input.c:169:50: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def79]
tmux-3.6/input.c:2668:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_104’ differ in signedness
tmux-3.6/input.c:170:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def80]
tmux-3.6/input.c:2671:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_110’ differ in signedness
tmux-3.6/input.c:171:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def81]
tmux-3.6/input.c:2674:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_111’ differ in signedness
tmux-3.6/input.c:172:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def82]
tmux-3.6/input.c:2677:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_112’ differ in signedness
tmux-3.6/input.c:173:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def83]
tmux-3.6/input.c:2680:37: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘input_osc_133’ differ in signedness
tmux-3.6/input.c:174:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def84]
tmux-3.6/input.c: scope_hint: In function ‘input_exit_apc’
tmux-3.6/input.c:2712:43: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘screen_set_title’ differ in signedness
tmux-3.6/tmux.h:3193:44: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def85]
tmux-3.6/input.c: scope_hint: In function ‘input_exit_rename’
tmux-3.6/input.c:2746:31: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘utf8_isvalid’ differ in signedness
tmux-3.6/tmux.h:3529:31: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def86]
tmux-3.6/input.c:2758:40: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘window_set_name’ differ in signedness
tmux-3.6/tmux.h:3293:51: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-704): [#def87]
tmux-3.6/input.c: scope_hint: In function ‘input_osc_52’
tmux-3.6/input.c:3094:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def88]
tmux-3.6/input.c:3094:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-681): [#def89]
tmux-3.6/input.c:3132:25: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘paste_add’ differ in signedness
tmux-3.6/tmux.h:2313:42: note: expected ‘char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def90]
tmux-3.6/input.c: scope_hint: In function ‘input_reply_clipboard’
tmux-3.6/input.c:3184:40: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘__b64_ntop’ differ in signedness
tmux-3.6/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 *’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
tmux-3.6/job.c:157:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out[1], 0)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:29: acquire_resource: opened here
tmux-3.6/job.c:157:28: danger: ‘dup2(out[1], 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
tmux-3.6/job.c:160:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out[1], 1)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:29: acquire_resource: opened here
tmux-3.6/job.c:160:28: danger: ‘dup2(out[1], 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
tmux-3.6/job.c:164:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out[1], 2)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:162:36: branch_false: ...to here
tmux-3.6/job.c:163:28: branch_true: following ‘true’ branch...
tmux-3.6/job.c:164:37: branch_true: ...to here
tmux-3.6/job.c:164:37: acquire_resource: opened here
tmux-3.6/job.c:164:36: danger: ‘dup2(out[1], 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
tmux-3.6/job.c:171:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:162:36: branch_false: ...to here
tmux-3.6/job.c:163:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:168:42: branch_false: ...to here
tmux-3.6/job.c:169:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:171:37: branch_false: ...to here
tmux-3.6/job.c:171:37: acquire_resource: opened here
tmux-3.6/job.c:171:36: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
tmux-3.6/job.c:171:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:162:36: branch_false: ...to here
tmux-3.6/job.c:163:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:168:42: branch_false: ...to here
tmux-3.6/job.c:168:42: acquire_resource: opened here
tmux-3.6/job.c:169:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:171:37: branch_false: ...to here
tmux-3.6/job.c:171:36: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
tmux-3.6/job.c:173:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:162:36: branch_false: ...to here
tmux-3.6/job.c:163:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:168:42: branch_false: ...to here
tmux-3.6/job.c:168:42: acquire_resource: opened here
tmux-3.6/job.c:169:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:171:37: branch_false: ...to here
tmux-3.6/job.c:171:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:173:36: branch_false: ...to here
tmux-3.6/job.c:173:36: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
tmux-3.6/job.c:174:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
tmux-3.6/job.c:118:20: branch_false: following ‘false’ branch...
tmux-3.6/job.c:120:23: branch_false: ...to here
tmux-3.6/job.c:156:20: branch_true: following ‘true’ branch...
tmux-3.6/job.c:157:29: branch_true: ...to here
tmux-3.6/job.c:157:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:159:48: branch_false: ...to here
tmux-3.6/job.c:160:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:162:36: branch_false: ...to here
tmux-3.6/job.c:163:28: branch_false: following ‘false’ branch...
tmux-3.6/job.c:168:42: branch_false: ...to here
tmux-3.6/job.c:168:42: acquire_resource: opened here
tmux-3.6/job.c:169:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:171:37: branch_false: ...to here
tmux-3.6/job.c:171:36: branch_false: following ‘false’ branch...
tmux-3.6/job.c:173:36: branch_false: ...to here
tmux-3.6/job.c:173:36: branch_true: following ‘true’ branch...
tmux-3.6/job.c:174:41: branch_true: ...to here
tmux-3.6/job.c:174:41: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
tmux-3.6/osdep-linux.c:46:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
tmux-3.6/osdep-linux.c:38:12: branch_false: following ‘false’ branch (when ‘pgrp != -1’)...
tmux-3.6/osdep-linux.c:41:9: branch_false: ...to here
tmux-3.6/osdep-linux.c:42:18: acquire_resource: opened here
tmux-3.6/osdep-linux.c:42:12: branch_false: following ‘false’ branch...
tmux-3.6/osdep-linux.c:46:9: branch_false: ...to here
tmux-3.6/osdep-linux.c:50:22: throw: if ‘fgetc’ throws an exception...
tmux-3.6/osdep-linux.c:46:9: danger: ‘fopen(path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
tmux-3.6/osdep-linux.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
tmux-3.6/osdep-linux.c:38:12: branch_false: following ‘false’ branch (when ‘pgrp != -1’)...
tmux-3.6/osdep-linux.c:41:9: branch_false: ...to here
tmux-3.6/osdep-linux.c:42:18: acquire_memory: allocated here
tmux-3.6/osdep-linux.c:42:12: branch_false: following ‘false’ branch...
tmux-3.6/osdep-linux.c:46:9: branch_false: ...to here
tmux-3.6/osdep-linux.c:50:22: throw: if ‘fgetc’ throws an exception...
tmux-3.6/osdep-linux.c:46:9: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
tmux-3.6/popup.c:810:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*(struct popup_editor *)arg.path, "r")’
tmux-3.6/popup.c:808:13: acquire_resource: opened here
tmux-3.6/popup.c:809:12: branch_true: following ‘true’ branch...
tmux-3.6/popup.c:810:17: branch_true: ...to here
tmux-3.6/popup.c:810:17: throw: if ‘fseeko’ throws an exception...
tmux-3.6/popup.c:810:17: danger: ‘fopen(*(struct popup_editor *)arg.path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
tmux-3.6/popup.c:810:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*(struct popup_editor *)arg.path, "r")’
tmux-3.6/popup.c:808:13: acquire_memory: allocated here
tmux-3.6/popup.c:809:12: branch_true: following ‘true’ branch...
tmux-3.6/popup.c:810:17: branch_true: ...to here
tmux-3.6/popup.c:810:17: throw: if ‘fseeko’ throws an exception...
tmux-3.6/popup.c:810:17: danger: ‘fopen(*(struct popup_editor *)arg.path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
tmux-3.6/popup.c:824:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
tmux-3.6/popup.c:809:12: branch_true: following ‘true’ branch...
tmux-3.6/popup.c:810:17: branch_true: ...to here
tmux-3.6/popup.c:814:20: branch_false: following ‘false’ branch...
tmux-3.6/popup.c:816:28: branch_false: ...to here
tmux-3.6/popup.c:816:28: acquire_memory: allocated here
tmux-3.6/popup.c:814:21: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
tmux-3.6/popup.c:817:21: branch_false: ...to here
tmux-3.6/popup.c:814:21: branch_false: following ‘false’ branch...
tmux-3.6/popup.c:822:17: branch_false: ...to here
tmux-3.6/popup.c:824:9: throw: if the called function throws an exception...
tmux-3.6/popup.c:824:9: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
tmux-3.6/regsub.c:116:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tmux-3.6/regsub.c:67:26: release_memory: ‘buf’ is NULL
tmux-3.6/regsub.c:69:12: branch_false: following ‘false’ branch...
tmux-3.6/regsub.c:71:13: branch_false: ...to here
tmux-3.6/regsub.c:71:12: branch_false: following ‘false’ branch...
tmux-3.6/regsub.c:76:15: branch_false: ...to here
tmux-3.6/regsub.c:78:16: branch_false: following ‘false’ branch (when ‘start > end’)...
tmux-3.6/regsub.c:116:12: branch_false: ...to here
tmux-3.6/regsub.c:116:12: release_memory: ‘buf’ is NULL
tmux-3.6/regsub.c:116:9: danger: dereference of NULL ‘buf + (sizetype)len’
Error: COMPILER_WARNING (CWE-681): [#def104]
tmux-3.6/screen-redraw.c: scope_hint: In function ‘screen_redraw_draw_pane_scrollbar’
tmux-3.6/screen-redraw.c:990:56: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘window_copy_get_current_offset’ differ in signedness
tmux-3.6/screen-redraw.c:24: included_from: Included from here.
tmux-3.6/tmux.h:3429:71: note: expected ‘u_int *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
Error: COMPILER_WARNING (CWE-681): [#def105]
tmux-3.6/screen-redraw.c:990:63: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘window_copy_get_current_offset’ differ in signedness
tmux-3.6/tmux.h:3430:22: note: expected ‘u_int *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
Error: COMPILER_WARNING (CWE-681): [#def106]
tmux-3.6/screen-write.c: scope_hint: In function ‘screen_write_strlen’
tmux-3.6/screen-write.c:365:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘u_char *’ {aka ‘unsigned char *’} differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def107]
tmux-3.6/screen-write.c:370:39: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
tmux-3.6/screen-write.c:22: included_from: Included from here.
/usr/include/string.h:439:35: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def108]
tmux-3.6/screen-write.c: scope_hint: In function ‘screen_write_vnputs’
tmux-3.6/screen-write.c:518:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘u_char *’ {aka ‘unsigned char *’} differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def109]
tmux-3.6/screen-write.c:523:39: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:439:35: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: GCC_ANALYZER_WARNING (CWE-457): [#def110]
tmux-3.6/server-client.c:616:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line’
tmux-3.6/server-client.c:610:12: branch_false: following ‘false’ branch (when ‘pane_status != 1’)...
tmux-3.6/server-client.c:612:17: branch_false: ...to here
tmux-3.6/server-client.c:612:17: branch_false: following ‘false’ branch (when ‘pane_status != 2’)...
tmux-3.6/server-client.c:616:15: branch_false: ...to here
tmux-3.6/server-client.c:616:49: danger: use of uninitialized value ‘line’ here
Error: COMPILER_WARNING (CWE-457): [#def111]
tmux-3.6/server-client.c:616:52: warning[-Wmaybe-uninitialized]: ‘line’ may be used uninitialized
tmux-3.6/server-client.c: scope_hint: In function ‘server_client_key_callback’
tmux-3.6/server-client.c:597:34: note: ‘line’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
tmux-3.6/server-client.c:2949:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
tmux-3.6/server-client.c:2897:1: enter_function: entry to ‘server_client_reset_state’
tmux-3.6/server-client.c:2901:39: call_function: calling ‘server_client_get_pane’ from ‘server_client_reset_state’
tmux-3.6/server-client.c:2901:39: return_function: returning to ‘server_client_reset_state’ from ‘server_client_get_pane’
tmux-3.6/server-client.c:2907:12: branch_false: following ‘false’ branch...
tmux-3.6/server-client.c:2911:18: branch_false: ...to here
tmux-3.6/server-client.c:2934:12: branch_false: following ‘false’ branch...
tmux-3.6/server-client.c:2946:20: branch_false: ...to here
tmux-3.6/server-client.c:2946:19: branch_true: following ‘true’ branch...
tmux-3.6/server-client.c:2948:17: branch_true: ...to here
tmux-3.6/server-client.c:2949:32: danger: dereference of NULL ‘s’
Error: COMPILER_WARNING (CWE-681): [#def113]
tmux-3.6/server-client.c: scope_hint: In function ‘server_client_print’
tmux-3.6/server-client.c:3894:29: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def114]
tmux-3.6/server-client.c:3936:30: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
tmux-3.6/server.c:140:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/server.c:117:12: branch_false: following ‘false’ branch (when ‘size <= 107’)...
tmux-3.6/server.c:121:9: branch_false: ...to here
tmux-3.6/server.c:123:19: acquire_resource: stream socket created here
tmux-3.6/server.c:123:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/server.c:126:13: branch_false: ...to here
tmux-3.6/server.c:130:12: branch_false: following ‘false’ branch...
tmux-3.6/server.c:136:9: branch_false: ...to here
tmux-3.6/server.c:138:12: branch_true: following ‘true’ branch...
tmux-3.6/server.c:139:31: branch_true: ...to here
tmux-3.6/server.c:140:17: throw: if ‘close’ throws an exception...
tmux-3.6/server.c:140:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
tmux-3.6/server.c:144:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
tmux-3.6/server.c:117:12: branch_false: following ‘false’ branch (when ‘size <= 107’)...
tmux-3.6/server.c:121:9: branch_false: ...to here
tmux-3.6/server.c:123:19: acquire_resource: stream socket created here
tmux-3.6/server.c:123:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
tmux-3.6/server.c:126:13: branch_false: ...to here
tmux-3.6/server.c:130:12: branch_false: following ‘false’ branch...
tmux-3.6/server.c:136:9: branch_false: ...to here
tmux-3.6/server.c:138:12: branch_false: following ‘false’ branch...
tmux-3.6/server.c:144:9: branch_false: ...to here
tmux-3.6/server.c:144:9: throw: if ‘setblocking’ throws an exception...
tmux-3.6/server.c:144:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
tmux-3.6/server.c:540:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/server.c:539:9: acquire_resource: ‘va_start’ called here
tmux-3.6/server.c:540:9: throw: if ‘xvasprintf’ throws an exception...
tmux-3.6/server.c:540:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
tmux-3.6/status.c:1691:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
tmux-3.6/status.c:1700:1: enter_function: entry to ‘status_prompt_complete_list’
tmux-3.6/status.c:1702:51: release_memory: ‘list’ is NULL
tmux-3.6/status.c:1742:12: branch_false: following ‘false’ branch (when ‘at_start == 0’)...
tmux-3.6/status.c:1742:12: branch_false: ...to here
tmux-3.6/status.c:1744:34: branch_true: following ‘true’ branch...
tmux-3.6/status.c:1745:21: branch_true: ...to here
tmux-3.6/status.c:1745:20: branch_true: following ‘true’ branch...
tmux-3.6/status.c:1746:25: branch_true: ...to here
tmux-3.6/status.c:1746:25: call_function: calling ‘status_prompt_add_list’ from ‘status_prompt_complete_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
tmux-3.6/status.c:2062:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tmux-3.6/status.c:2009:55: release_memory: ‘out’ is NULL
tmux-3.6/status.c:2043:12: branch_false: following ‘false’ branch...
tmux-3.6/status.c:2048:17: branch_false: ...to here
tmux-3.6/status.c:2051:12: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
tmux-3.6/status.c:2057:13: branch_false: ...to here
tmux-3.6/status.c:2057:12: branch_true: following ‘true’ branch...
tmux-3.6/status.c:2058:21: branch_true: ...to here
tmux-3.6/status.c:2058:20: branch_false: following ‘false’ branch...
tmux-3.6/status.c:2061:32: branch_false: ...to here
tmux-3.6/status.c:2062:25: danger: dereference of NULL ‘strchr(xstrdup(s), 58)’
Error: COMPILER_WARNING (CWE-681): [#def120]
tmux-3.6/tty-keys.c: scope_hint: In function ‘tty_keys_next’
tmux-3.6/tty-keys.c:745:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness
Error: COMPILER_WARNING (CWE-681): [#def121]
tmux-3.6/tty-keys.c: scope_hint: In function ‘tty_keys_clipboard’
tmux-3.6/tty-keys.c:1381:38: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘__b64_pton’ differ in signedness
tmux-3.6/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 *’
Error: COMPILER_WARNING (CWE-252): [#def122]
tmux-3.6/tty.c: scope_hint: In function ‘tty_add’
tmux-3.6/tty.c:636:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-681): [#def123]
tmux-3.6/tty.c: scope_hint: In function ‘tty_putc’
tmux-3.6/tty.c:664:38: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_add’ differ in signedness
tmux-3.6/tty.c:622:38: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def124]
tmux-3.6/tty.c:666:30: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_add’ differ in signedness
tmux-3.6/tty.c:622:38: note: expected ‘const char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def125]
tmux-3.6/tty.c: scope_hint: In function ‘tty_check_codeset’
tmux-3.6/tty.c:1407:46: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘tty_acs_reverse_get’ differ in signedness
tmux-3.6/tty.c:34: included_from: Included from here.
tmux-3.6/tmux.h:2615:52: note: expected ‘const char *’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def126]
tmux-3.6/tty.c: scope_hint: In function ‘tty_set_selection’
tmux-3.6/tty.c:2274:18: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘__b64_ntop’ differ in signedness
tmux-3.6/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 *’
Error: COMPILER_WARNING (CWE-681): [#def127]
tmux-3.6/utf8.c: scope_hint: In function ‘utf8_add_to_width_cache’
tmux-3.6/utf8.c:344:38: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘mbtowc’ differ in signedness
tmux-3.6/utf8.c:23: included_from: Included from here.
/usr/include/stdlib.h:1100:43: note: expected ‘const char * restrict’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def128]
tmux-3.6/utf8.c: scope_hint: In function ‘utf8_towc’
tmux-3.6/utf8.c:558:30: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘mbtowc’ differ in signedness
/usr/include/stdlib.h:1100:43: note: expected ‘const char * restrict’ but argument is of type ‘const u_char *’ {aka ‘const unsigned char *’}
Error: COMPILER_WARNING (CWE-681): [#def129]
tmux-3.6/utf8.c: scope_hint: In function ‘utf8_fromwc’
tmux-3.6/utf8.c:581:25: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘wctomb’ differ in signedness
/usr/include/features.h:540: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
tmux-3.6/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 *’}
Error: COMPILER_WARNING (CWE-252): [#def130]
tmux-3.6/utf8.c:585:17: warning[-Wunused-result]: ignoring return value of ‘wctomb’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def131]
tmux-3.6/window-client.c:189:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tmux-3.6/window-client.c:172:21: branch_false: following ‘false’ branch...
tmux-3.6/window-client.c:174:14: branch_false: ...to here
tmux-3.6/window-client.c:189:15: release_memory: using NULL here
tmux-3.6/window-client.c:189:9: danger: argument 1 (‘*(struct window_client_modedata *)modedata.item_list’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-252): [#def132]
tmux-3.6/window-copy.c: scope_hint: In function ‘window_copy_vadd’
tmux-3.6/window-copy.c:567:17: warning[-Wunused-result]: ignoring return value of ‘vasprintf’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-681): [#def133]
tmux-3.6/window-copy.c: scope_hint: In function ‘window_copy_vadd’
tmux-3.6/window-copy.c:569:27: warning[-Wpointer-sign]: pointer targets in passing argument 5 of ‘input_parse_screen’ differ in signedness
tmux-3.6/window-copy.c:27: included_from: Included from here.
tmux-3.6/tmux.h:2986:48: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
Error: COMPILER_WARNING (CWE-681): [#def134]
tmux-3.6/window-copy.c: scope_hint: In function ‘window_copy_cellstring’
tmux-3.6/window-copy.c:3491:25: warning[-Wpointer-sign]: pointer targets in returning ‘u_char *’ {aka ‘unsigned char *’} from a function with return type ‘const char *’ differ in signedness
Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
tmux-3.6/window-copy.c:3591:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tmux-3.6/window-copy.c:5679:1: enter_function: entry to ‘window_copy_scroll_up’
tmux-3.6/window-copy.c:5688:12: branch_false: following ‘false’ branch...
tmux-3.6/window-copy.c:5690:18: branch_false: ...to here
tmux-3.6/window-copy.c:5692:12: branch_true: following ‘true’ branch...
tmux-3.6/window-copy.c:5693:17: call_function: calling ‘window_copy_search_marks’ from ‘window_copy_scroll_up’
Error: COMPILER_WARNING (CWE-681): [#def136]
tmux-3.6/window-copy.c: scope_hint: In function ‘window_copy_append_selection’
tmux-3.6/window-copy.c:5006:53: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘screen_write_setselection’ differ in signedness
tmux-3.6/tmux.h:3168:14: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
tmux-3.6/window-tree.c:239:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wla’
tmux-3.6/window-tree.c:927:1: enter_function: entry to ‘window_tree_swap’
tmux-3.6/window-tree.c:941:9: call_function: calling ‘window_tree_pull_item’ from ‘window_tree_swap’
tmux-3.6/window-tree.c:941:9: return_function: returning to ‘window_tree_swap’ from ‘window_tree_pull_item’
tmux-3.6/window-tree.c:942:9: call_function: calling ‘window_tree_pull_item’ from ‘window_tree_swap’
tmux-3.6/window-tree.c:942:9: return_function: returning to ‘window_tree_swap’ from ‘window_tree_pull_item’
tmux-3.6/window-tree.c:945:12: branch_false: following ‘false’ branch...
tmux-3.6/window-tree.c:948:29: branch_false: ...to here
tmux-3.6/window-tree.c:948:12: branch_true: following ‘true’ branch...
tmux-3.6/window-tree.c:949:13: branch_true: ...to here
tmux-3.6/window-tree.c:949:13: call_function: calling ‘window_tree_cmp_window’ from ‘window_tree_swap’
Error: CPPCHECK_WARNING (CWE-476): [#def138]
tmux-3.6/window-tree.c:450: warning[nullPointer]: Possible null pointer dereference: l
Error: GCC_ANALYZER_WARNING (CWE-688): [#def139]
tmux-3.6/window-tree.c:450:9: warning[-Wanalyzer-null-argument]: use of NULL ‘l’ where non-null expected
tmux-3.6/window-tree.c:445:9: branch_false: following ‘false’ branch (when ‘wl’ is NULL)...
tmux-3.6/window-tree.c:449:9: branch_false: ...to here
tmux-3.6/window-tree.c:450:9: danger: argument 1 (‘l’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def140]
tmux-3.6/window-tree.c:496: warning[nullPointer]: Possible null pointer dereference: l
Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
tmux-3.6/window-tree.c:496:9: warning[-Wanalyzer-null-argument]: use of NULL ‘l’ where non-null expected
tmux-3.6/window-tree.c:477:21: branch_false: following ‘false’ branch...
tmux-3.6/window-tree.c:479:14: branch_false: ...to here
tmux-3.6/window-tree.c:496:9: danger: argument 1 (‘l’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
tmux-3.6/window-tree.c:957:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur_winlink’
tmux-3.6/window-tree.c:927:1: enter_function: entry to ‘window_tree_swap’
tmux-3.6/window-tree.c:941:9: call_function: calling ‘window_tree_pull_item’ from ‘window_tree_swap’
tmux-3.6/window-tree.c:941:9: return_function: returning to ‘window_tree_swap’ from ‘window_tree_pull_item’
tmux-3.6/window-tree.c:942:9: call_function: calling ‘window_tree_pull_item’ from ‘window_tree_swap’
tmux-3.6/window-tree.c:942:9: return_function: returning to ‘window_tree_swap’ from ‘window_tree_pull_item’
tmux-3.6/window-tree.c:945:12: branch_false: following ‘false’ branch...
tmux-3.6/window-tree.c:948:29: branch_false: ...to here
tmux-3.6/window-tree.c:948:12: branch_false: following ‘false’ branch...
tmux-3.6/window-tree.c:957:37: branch_false: ...to here
tmux-3.6/window-tree.c:957:37: release_memory: ‘cur_winlink’ is NULL
tmux-3.6/window-tree.c:957:9: danger: dereference of NULL ‘other_winlink’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def143]
tmux-3.6/xmalloc.c:153:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
tmux-3.6/xmalloc.c:135:1: enter_function: entry to ‘xsnprintf’
tmux-3.6/xmalloc.c:140:9: acquire_resource: ‘va_start’ called here
tmux-3.6/xmalloc.c:141:13: call_function: calling ‘xvsnprintf’ from ‘xsnprintf’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-109.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | tmux-3.6-1.fc44 |
| store-results-to | /tmp/tmpvkajpcdh/tmux-3.6-1.fc44.tar.xz |
| time-created | 2026-01-08 21:55:00 |
| time-finished | 2026-01-08 21:57:10 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpvkajpcdh/tmux-3.6-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvkajpcdh/tmux-3.6-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |