vim-9.2.530-1.fc45

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/vim-default-editor.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # Ensure vim is set as EDITOR if it isn't already set
#    2|   
#    3|   if [ -z "$EDITOR" ]; then

Error: SHELLCHECK_WARNING (CWE-758): [#def2]
/etc/profile.d/vim.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then
#    2|     # This will avoid user defined aliases and possibly stuff defined earlier in the PATH.
#    3|     case "$(command -v vim)-$(command -v vi)" in

Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/etc/profile.d/vim.sh:1:28: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#    1|-> if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then
#    2|     # This will avoid user defined aliases and possibly stuff defined earlier in the PATH.
#    3|     case "$(command -v vim)-$(command -v vi)" in

Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/etc/profile.d/vim.sh:1:52: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#    1|-> if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then
#    2|     # This will avoid user defined aliases and possibly stuff defined earlier in the PATH.
#    3|     case "$(command -v vim)-$(command -v vi)" in

Error: SHELLCHECK_WARNING (CWE-156): [#def5]
/usr/bin/gvimtutor:8:6: warning[SC2046]: Quote this to prevent word splitting.
#    6|   # See vimtutor for usage.
#    7|   
#    8|-> exec $(dirname $0)/vimtutor -g "$@"

Error: COMPILER_WARNING: [#def6]
vim92/src/alloc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def7]
vim92/src/arabic.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def8]
vim92/src/arglist.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def9]
vim92/src/auto/if_perl.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def10]
vim92/src/auto/pathdef.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def11]
vim92/src/auto/wayland/ext-data-control-v1.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def12]
vim92/src/auto/wayland/wlr-data-control-unstable-v1.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def13]
vim92/src/autocmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def14]
vim92/src/beval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
vim92/src/beval.c:82:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘spos’
vim92/src/beval.c:42:8: branch_false: following ‘false’ branch...
vim92/src/beval.c:47:8: branch_false: following ‘false’ branch...
vim92/src/beval.c:51:12: branch_false: ...to here
vim92/src/beval.c:52:8: branch_false: following ‘false’ branch...
vim92/src/beval.c:56:8: branch_false: ...to here
vim92/src/beval.c:56:8: branch_true: following ‘true’ branch (when ‘getword != 0’)...
vim92/src/beval.c:63:13: branch_true: ...to here
vim92/src/beval.c:63:12: branch_false: following ‘false’ branch...
vim92/src/beval.c:77:15: branch_false: ...to here
vim92/src/beval.c:80:12: branch_true: following ‘true’ branch...
vim92/src/beval.c:81:20: branch_true: ...to here
vim92/src/beval.c:80:13: branch_true: following ‘true’ branch...
vim92/src/beval.c:82:29: branch_true: ...to here
vim92/src/beval.c:82:29: danger: dereference of NULL ‘spos’
#   80|   	if (VIsual_active
#   81|   		&& wp->w_buffer == curwin->w_buffer
#   82|-> 		&& (lnum == spos->lnum
#   83|   		    ? col >= (int)spos->col
#   84|   		    : lnum > spos->lnum)

Error: COMPILER_WARNING: [#def16]
vim92/src/blob.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def17]
vim92/src/blowfish.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def18]
vim92/src/buffer.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
vim92/src/buffer.c:684:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘win’
vim92/src/buffer.c:6569:1: enter_function: entry to ‘wipe_buffer’
vim92/src/buffer.c:6579:5: call_function: calling ‘close_buffer’ from ‘wipe_buffer’
#  682|   
#  683|       // When the buffer is no longer in a window, trigger BufWinLeave
#  684|->     if ((win_valid || closed_popup) && win->w_buffer == buf
#  685|   	    && buf->b_nwindows == 1)
#  686|       {

Error: COMPILER_WARNING: [#def20]
vim92/src/bufwrite.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def21]
vim92/src/change.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def22]
vim92/src/channel.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
vim92/src/channel.c:2478:24: warning[-Wanalyzer-null-argument]: use of NULL ‘reader.js_buf’ where non-null expected
vim92/src/channel.c:2535:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2548:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2548:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2554:8: branch_false: following ‘false’ branch (when ‘socketserver == 0’)...
vim92/src/channel.c:2554:27: branch_false: ...to here
vim92/src/channel.c:2554:9: branch_true: following ‘true’ branch...
vim92/src/channel.c:2556:18: branch_true: ...to here
vim92/src/channel.c:2556:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
# 2476|   
# 2477|       // We find the end once, to avoid calling strlen() many times.
# 2478|->     jsbuf_len = (int_u)STRLEN(reader->js_buf);
# 2479|       reader->js_end = reader->js_buf + jsbuf_len;
# 2480|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
vim92/src/channel.c:2624:25: warning[-Wanalyzer-null-argument]: use of NULL ‘reader.js_buf’ where non-null expected
vim92/src/channel.c:2535:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2548:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2548:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2554:8: branch_false: following ‘false’ branch (when ‘socketserver == 0’)...
vim92/src/channel.c:2554:27: branch_false: ...to here
vim92/src/channel.c:2554:9: branch_true: following ‘true’ branch...
vim92/src/channel.c:2556:18: branch_true: ...to here
vim92/src/channel.c:2556:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
vim92/src/channel.c:2556:18: return_function: returning to ‘channel_parse_json’ from ‘channel_process_lspdap_http_hdr’
vim92/src/channel.c:2562:8: branch_false: following ‘false’ branch...
vim92/src/channel.c:2622:13: branch_false: ...to here
vim92/src/channel.c:2622:13: branch_true: following ‘true’ branch (when ‘status == 2’)...
vim92/src/channel.c:2624:25: branch_true: ...to here
vim92/src/channel.c:2624:25: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2624:25: danger: argument 1 (‘reader.js_buf’) NULL where non-null expected
# 2622|       else if (status == MAYBE)
# 2623|       {
# 2624|-> 	size_t buflen = STRLEN(reader.js_buf);
# 2625|   
# 2626|   	if (chanpart->ch_wait_len < buflen)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
vim92/src/channel.c:2682:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reader.js_buf’
vim92/src/channel.c:2535:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2548:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2548:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2554:8: branch_false: following ‘false’ branch (when ‘socketserver == 0’)...
vim92/src/channel.c:2554:27: branch_false: ...to here
vim92/src/channel.c:2554:9: branch_true: following ‘true’ branch...
vim92/src/channel.c:2556:18: branch_true: ...to here
vim92/src/channel.c:2556:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
vim92/src/channel.c:2556:18: return_function: returning to ‘channel_parse_json’ from ‘channel_process_lspdap_http_hdr’
vim92/src/channel.c:2562:8: branch_false: following ‘false’ branch...
vim92/src/channel.c:2622:13: branch_false: ...to here
vim92/src/channel.c:2622:13: branch_true: following ‘true’ branch (when ‘status == 2’)...
vim92/src/channel.c:2624:25: branch_true: ...to here
vim92/src/channel.c:2624:25: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2676:8: branch_false: following ‘false’ branch (when ‘status != 0’)...
vim92/src/channel.c:2682:14: branch_false: ...to here
vim92/src/channel.c:2682:14: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2682:14: danger: dereference of NULL ‘reader.js_buf + (sizetype)reader.js_used’
# 2680|   	chanpart->ch_wait_len = 0;
# 2681|       }
# 2682|->     else if (reader.js_buf[reader.js_used] != NUL)
# 2683|       {
# 2684|   	// Put the unread part back into the channel.

Error: COMPILER_WARNING: [#def26]
vim92/src/charset.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def27]
vim92/src/charset.c:449: warning[uninitvar]: Uninitialized variable: ga.ga_data
#  447|       // Make each character lower case.
#  448|       i = 0;
#  449|->     while (STR_CHAR(i) != NUL)
#  450|       {
#  451|   	if (enc_utf8 || (has_mbyte && MB_BYTE2LEN(STR_CHAR(i)) > 1))

Error: COMPILER_WARNING: [#def28]
vim92/src/cindent.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-909): [#def29]
vim92/src/cindent.c:2536: error[uninitStructMember]: Uninitialized struct member: our_paren_pos.lnum
# 2534|   	    }
# 2535|   
# 2536|-> 	    amount = skip_label(our_paren_pos.lnum, &look);
# 2537|   	    look = skipwhite(look);
# 2538|   	    if (*look == '(')

Error: CPPCHECK_WARNING (CWE-909): [#def30]
vim92/src/cindent.c:2604: error[uninitStructMember]: Uninitialized struct member: our_paren_pos.col
# 2602|   		    else
# 2603|   		    {
# 2604|-> 			col = our_paren_pos.col + 1;
# 2605|   			while (VIM_ISWHITE(l[col]))
# 2606|   			    col++;

Error: COMPILER_WARNING: [#def31]
vim92/src/clientserver.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def32]
vim92/src/clipboard.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
vim92/src/clipboard.c:284:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cbd’
vim92/src/clipboard.c:2820:1: enter_function: entry to ‘vwl_data_source_listener_event_cancelled’
vim92/src/clipboard.c:2825:32: call_function: inlined call to ‘clip_wl_get_cbd_from_selection’ from ‘vwl_data_source_listener_event_cancelled’
vim92/src/clipboard.c:2827:5: call_function: calling ‘clip_lose_selection’ from ‘vwl_data_source_listener_event_cancelled’
#  282|   
#  283|       clip_free_selection(cbd);
#  284|->     cbd->owned = FALSE;
#  285|       if (visual_selection)
#  286|   	clip_clear_selection(cbd);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
vim92/src/clipboard.c:2362:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:2353:1: enter_function: entry to ‘vwl_data_device_listener_event_selection’
vim92/src/clipboard.c:2359:32: call_function: inlined call to ‘clip_wl_get_selection’ from ‘vwl_data_device_listener_event_selection’
vim92/src/clipboard.c:2362:5: danger: dereference of NULL ‘<unknown>’
# 2360|   
# 2361|       // Destroy previous offer if any, it is now invalid
# 2362|->     vwl_data_offer_destroy(sel->offer);
# 2363|   
# 2364|       // There are two cases when sel->offer is NULL

Error: CPPCHECK_WARNING (CWE-457): [#def35]
vim92/src/clipboard.c:2596: error[uninitvar]: Uninitialized variable: tv
# 2594|       while (poll(&pfd, 1, p_wtm) > 0)
# 2595|   #  else
# 2596|->     while (tv.tv_sec = p_wtm / 1000, tv.tv_usec = (p_wtm % 1000) * 1000,
# 2597|   	    select(fd + 1, &rfds, NULL, NULL, &tv) > 0)
# 2598|   #  endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
vim92/src/clipboard.c:2687:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:2679:1: enter_function: entry to ‘clip_wl_request_selection’
vim92/src/clipboard.c:2681:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_request_selection’
vim92/src/clipboard.c:2687:10: danger: dereference of NULL ‘<unknown>’
# 2685|       const char		*chosen_mime = NULL;
# 2686|   
# 2687|->     if (!sel->available)
# 2688|   	goto clear;
# 2689|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
vim92/src/clipboard.c:2857:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:2852:1: enter_function: entry to ‘clip_wl_own_selection’
vim92/src/clipboard.c:2854:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_own_selection’
vim92/src/clipboard.c:2855:36: call_function: inlined call to ‘clip_wl_get_selection_type’ from ‘clip_wl_own_selection’
vim92/src/clipboard.c:2857:10: danger: dereference of NULL ‘<unknown>’
# 2855|       wayland_selection_T sel_type = clip_wl_get_selection_type(sel);
# 2856|   
# 2857|->     if (!sel->available || vwl_connection_roundtrip(wayland_ct) == FAIL)
# 2858|   	return FAIL;
# 2859|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
vim92/src/clipboard.c:2914:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:2910:1: enter_function: entry to ‘clip_wl_lose_selection’
vim92/src/clipboard.c:2912:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_lose_selection’
vim92/src/clipboard.c:2914:10: danger: dereference of NULL ‘<unknown>’
# 2912|       clip_wl_selection_T *sel = clip_wl_get_selection_from_cbd(cbd);
# 2913|   
# 2914|->     if (!sel->available)
# 2915|   	return;
# 2916|   

Error: COMPILER_WARNING: [#def39]
vim92/src/cmdexpand.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-131): [#def40]
vim92/src/cmdexpand.c:3478:5: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 3476|   								options);
# 3477|   
# 3478|->     *matches = (char_u **)"";
# 3479|       *numMatches = 0;
# 3480|       if (xp->xp_context == EXPAND_HELP)

Error: COMPILER_WARNING: [#def41]
vim92/src/cmdhist.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
vim92/src/cmdhist.c:171:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temp’
vim92/src/cmdhist.c:132:8: branch_false: following ‘false’ branch...
vim92/src/cmdhist.c:132:8: branch_false: ...to here
vim92/src/cmdhist.c:136:20: branch_true: following ‘true’ branch (when ‘type <= 4’)...
vim92/src/cmdhist.c:138:12: branch_true: ...to here
vim92/src/cmdhist.c:138:12: branch_false: following ‘false’ branch (when ‘newlen <= 0’)...
vim92/src/cmdhist.c:158:13: branch_false: ...to here
vim92/src/cmdhist.c:158:12: branch_false: following ‘false’ branch...
vim92/src/cmdhist.c:165:18: branch_false: ...to here
vim92/src/cmdhist.c:165:17: branch_true: following ‘true’ branch...
vim92/src/cmdhist.c:165:17: branch_true: ...to here
vim92/src/cmdhist.c:170:25: branch_true: following ‘true’ branch...
vim92/src/cmdhist.c:171:27: branch_true: ...to here
vim92/src/cmdhist.c:171:17: danger: dereference of NULL ‘temp + (long unsigned int)i * 32’
#  169|   
#  170|   	    for (i = 0; i <= hisidx[type]; ++i)
#  171|-> 		temp[i] = history[type][i];
#  172|   	    j = i;
#  173|   	    for ( ; i <= newlen - (hislen - hisidx[type]); ++i)

Error: COMPILER_WARNING: [#def43]
vim92/src/crypt.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def44]
vim92/src/crypt_zip.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def45]
vim92/src/debugger.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def46]
vim92/src/dict.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def47]
vim92/src/diff.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def48]
vim92/src/diff.c:2417: warning[uninitvar]: Uninitialized variable: diff_length
# 2415|       const int iwhite = (diff_flags & (DIFF_IWHITEALL | DIFF_IWHITE)) > 0 ? 1 : 0;
# 2416|       size_t decisions_length =
# 2417|-> 	linematch_nbuffers(diffbufs, diff_length, ndiffs, &decisions, iwhite);
# 2418|   
# 2419|       for (size_t i = 0; i < ndiffs; i++)

Error: COMPILER_WARNING: [#def49]
vim92/src/digraph.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def50]
vim92/src/drawline.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def51]
vim92/src/drawscreen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def52]
vim92/src/edit.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def53]
vim92/src/eval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def54]
vim92/src/evalbuffer.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def55]
vim92/src/evalfunc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def56]
vim92/src/evalfunc.c:4831:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘save_ga.ga_len’
vim92/src/evalfunc.c:4754:13: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4763:15: branch_false: ...to here
vim92/src/evalfunc.c:4764:12: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4768:17: branch_false: ...to here
vim92/src/evalfunc.c:4789:8: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4791:5: branch_false: ...to here
vim92/src/evalfunc.c:4800:8: branch_true: following ‘true’ branch (when ‘cmd’ is non-NULL)...
vim92/src/evalfunc.c:4801:9: branch_true: ...to here
vim92/src/evalfunc.c:4830:8: branch_true: following ‘true’ branch (when ‘save_redir_execute != 0’)...
vim92/src/evalfunc.c:4831:9: branch_true: ...to here
vim92/src/evalfunc.c:4831:9: danger: use of uninitialized value ‘save_ga.ga_len’ here
# 4829|       redir_execute = save_redir_execute;
# 4830|       if (redir_execute)
# 4831|-> 	redir_execute_ga = save_ga;
# 4832|       redir_off = save_redir_off;
# 4833|   

Error: COMPILER_WARNING: [#def57]
vim92/src/evalvars.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def58]
vim92/src/evalwindow.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def59]
vim92/src/ex_cmds.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
vim92/src/ex_cmds.c:4354:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub’
vim92/src/ex_cmds.c:4137:13: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4205:9: branch_false: ...to here
vim92/src/ex_cmds.c:4317:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4323:10: branch_false: ...to here
vim92/src/ex_cmds.c:4331:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4340:9: branch_false: ...to here
vim92/src/ex_cmds.c:4340:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4342:13: branch_false: ...to here
vim92/src/ex_cmds.c:4342:13: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4354:9: branch_false: ...to here
vim92/src/ex_cmds.c:4354:9: danger: dereference of NULL ‘sub’
# 4352|        * again.
# 4353|        */
# 4354|->     if (sub[0] == '\\' && sub[1] == '=')
# 4355|       {
# 4356|   	p = vim_strsave(sub);

Error: COMPILER_WARNING: [#def61]
vim92/src/ex_cmds2.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
vim92/src/ex_cmds2.c:648:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tp’
vim92/src/ex_cmds2.c:519:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:519:9: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:546:9: branch_false: ...to here
vim92/src/ex_cmds2.c:574:12: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:609:13: branch_false: ...to here
vim92/src/ex_cmds2.c:612:16: branch_true: following ‘true’ branch...
vim92/src/ex_cmds2.c:614:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:632:21: branch_false: ...to here
vim92/src/ex_cmds2.c:632:21: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:642:21: branch_false: ...to here
vim92/src/ex_cmds2.c:642:21: branch_true: following ‘true’ branch...
vim92/src/ex_cmds2.c:645:22: branch_true: ...to here
vim92/src/ex_cmds2.c:645:20: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:647:17: branch_false: ...to here
vim92/src/ex_cmds2.c:648:17: danger: dereference of NULL ‘tp’
#  646|   		    break;
#  647|   		goto_tabpage_tp(tp, TRUE, TRUE);
#  648|-> 		tp = tp->tp_next;
#  649|   	    }
#  650|   	    else if (eap->cmdidx == CMD_bufdo)

Error: COMPILER_WARNING: [#def63]
vim92/src/ex_docmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-786): [#def64]
vim92/src/ex_docmd.c:3972: error[negativeIndex]: Array 'cmdidxs2[26][26]' accessed at index cmdidxs2[*][-97], which is out of bounds.
# 3970|   	    eap->cmdidx = cmdidxs1[CharOrdLow(c1)];
# 3971|   	    if (ASCII_ISLOWER(c2))
# 3972|-> 		eap->cmdidx += cmdidxs2[CharOrdLow(c1)][CharOrdLow(c2)];
# 3973|   	}
# 3974|   	else if (ASCII_ISUPPER(eap->cmd[0]))

Error: CPPCHECK_WARNING (CWE-562): [#def65]
vim92/src/ex_docmd.c:7284: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 7282|   	    // Edit the directory.
# 7283|   	    if (*eap->arg == NUL || !mch_isdir(eap->arg))
# 7284|-> 		eap->arg = dot_path;
# 7285|   	}
# 7286|   	else

Error: COMPILER_WARNING: [#def66]
vim92/src/ex_eval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
vim92/src/ex_eval.c:865:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
vim92/src/ex_eval.c:2505:1: enter_function: entry to ‘cleanup_conditionals’
vim92/src/ex_eval.c:2513:32: branch_true: following ‘true’ branch (when ‘idx >= 0’)...
vim92/src/ex_eval.c:2515:13: branch_true: ...to here
vim92/src/ex_eval.c:2515:12: branch_true: following ‘true’ branch...
vim92/src/ex_eval.c:2523:17: branch_true: ...to here
vim92/src/ex_eval.c:2533:25: call_function: calling ‘report_discard_pending’ from ‘cleanup_conditionals’
#  863|   		mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4);
#  864|   		STRCAT(mesg, ": %s");
#  865|-> 		s = (char *)((except_T *)value)->value;
#  866|   	    }
#  867|   	    else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))

Error: COMPILER_WARNING: [#def68]
vim92/src/ex_getln.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def69]
vim92/src/fileio.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def70]
vim92/src/filepath.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def71]
vim92/src/findfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def72]
vim92/src/float.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def73]
vim92/src/fold.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def74]
vim92/src/fuzzy.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def75]
vim92/src/gc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def76]
vim92/src/getchar.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def77]
vim92/src/gui.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
vim92/src/gui.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
vim92/src/gui.c:5036:1: enter_function: entry to ‘ex_gui’
vim92/src/gui.c:5052:8: branch_false: following ‘false’ branch...
vim92/src/gui.c:5063:9: branch_false: ...to here
vim92/src/gui.c:5069:13: call_function: calling ‘gui_start’ from ‘ex_gui’
#  260|       {
#  261|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  262|-> 	return;
#  263|       }
#  264|       else if (pid > 0)	    // Parent

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
vim92/src/gui.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
vim92/src/gui.c:5036:1: enter_function: entry to ‘ex_gui’
vim92/src/gui.c:5052:8: branch_false: following ‘false’ branch...
vim92/src/gui.c:5063:9: branch_false: ...to here
vim92/src/gui.c:5069:13: call_function: calling ‘gui_start’ from ‘ex_gui’
#  260|       {
#  261|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  262|-> 	return;
#  263|       }
#  264|       else if (pid > 0)	    // Parent

Error: CPPCHECK_WARNING (CWE-457): [#def80]
vim92/src/gui.c:2352: warning[uninitvar]: Uninitialized variable: *s
# 2350|   
# 2351|   #ifdef FEAT_SIGN_ICONS
# 2352|->     if (*s == SIGN_BYTE
# 2353|   # ifdef FEAT_NETBEANS_INTG
# 2354|   	  || *s == MULTISIGN_BYTE

Error: COMPILER_WARNING: [#def81]
vim92/src/gui_gtk4.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING (CWE-457): [#def82]
vim92/src/gui_gtk4.c: scope_hint: In function ‘gui_mch_open’
vim92/src/gui_gtk4.c:655:21: warning[-Wmaybe-uninitialized]: ‘w’ may be used uninitialized
#  655 |             Columns = w;
#      |             ~~~~~~~~^~~
vim92/src/gui_gtk4.c:648:25: note: ‘w’ was declared here
#  648 |         unsigned int    w, h;
#      |                         ^
#  653|   
#  654|   	if (mask & WidthValue)
#  655|-> 	    Columns = w;
#  656|   	if (mask & HeightValue)
#  657|   	{

Error: COMPILER_WARNING (CWE-457): [#def83]
vim92/src/gui_gtk4.c:658:28: warning[-Wmaybe-uninitialized]: ‘h’ may be used uninitialized
#  658 |             if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
#      |                            ^~~~~~~
vim92/src/gui_gtk4.c:648:28: note: ‘h’ was declared here
#  648 |         unsigned int    w, h;
#      |                            ^
#  656|   	if (mask & HeightValue)
#  657|   	{
#  658|-> 	    if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
#  659|   		p_window = h - 1;
#  660|   	    Rows = h;

Error: COMPILER_WARNING (CWE-563): [#def84]
vim92/src/gui_gtk4.c: scope_hint: At top level
vim92/src/gui_gtk4.c:781:12: warning[-Wunused-variable]: ‘in_set_shellsize’ defined but not used
#  781 | static int in_set_shellsize = FALSE;
#      |            ^~~~~~~~~~~~~~~~
#  779|   }
#  780|   
#  781|-> static int in_set_shellsize = FALSE;
#  782|   
#  783|       void

Error: COMPILER_WARNING (CWE-477): [#def85]
vim92/src/gui_gtk4.c: scope_hint: In function ‘gui_mch_drawsign’
vim92/src/gui_gtk4.c:2410:13: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2410 |             gdk_cairo_set_source_pixbuf(cr, scaled,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/gdk.h:30: included_from: Included from here.
/usr/include/gtk-4.0/gtk/svg/gtksvg.h:28: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:30: included_from: Included from here.
vim92/src/beval.h:15: included_from: Included from here.
vim92/src/vim.h:2057: included_from: Included from here.
vim92/src/gui_gtk4.c:24: included_from: Included from here.
/usr/include/gtk-4.0/gdk/gdkcairo.h:34:12: note: declared here
#   34 | void       gdk_cairo_set_source_pixbuf  (cairo_t              *cr,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2408|   	if (scaled != NULL)
# 2409|   	{
# 2410|-> 	    gdk_cairo_set_source_pixbuf(cr, scaled,
# 2411|   		    FILL_X(col), FILL_Y(row));
# 2412|   	    g_object_unref(scaled);

Error: COMPILER_WARNING (CWE-477): [#def86]
vim92/src/gui_gtk4.c:2410:13: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2408|   	if (scaled != NULL)
# 2409|   	{
# 2410|-> 	    gdk_cairo_set_source_pixbuf(cr, scaled,
# 2411|   		    FILL_X(col), FILL_Y(row));
# 2412|   	    g_object_unref(scaled);

Error: COMPILER_WARNING (CWE-477): [#def87]
vim92/src/gui_gtk4.c:2415:13: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2415 |             gdk_cairo_set_source_pixbuf(cr, sign,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/gdkcairo.h:34:12: note: declared here
#   34 | void       gdk_cairo_set_source_pixbuf  (cairo_t              *cr,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2413|   	}
# 2414|   	else
# 2415|-> 	    gdk_cairo_set_source_pixbuf(cr, sign,
# 2416|   		    FILL_X(col), FILL_Y(row));
# 2417|       }

Error: COMPILER_WARNING (CWE-477): [#def88]
vim92/src/gui_gtk4.c:2415:13: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2413|   	}
# 2414|   	else
# 2415|-> 	    gdk_cairo_set_source_pixbuf(cr, sign,
# 2416|   		    FILL_X(col), FILL_Y(row));
# 2417|       }

Error: COMPILER_WARNING (CWE-477): [#def89]
vim92/src/gui_gtk4.c:2419:9: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2419 |         gdk_cairo_set_source_pixbuf(cr, sign,
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/gdkcairo.h:34:12: note: declared here
#   34 | void       gdk_cairo_set_source_pixbuf  (cairo_t              *cr,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2417|       }
# 2418|       else
# 2419|-> 	gdk_cairo_set_source_pixbuf(cr, sign,
# 2420|   		FILL_X(col), FILL_Y(row));
# 2421|   

Error: COMPILER_WARNING (CWE-477): [#def90]
vim92/src/gui_gtk4.c:2419:9: warning[-Wdeprecated-declarations]: ‘gdk_cairo_set_source_pixbuf’ is deprecated
# 2417|       }
# 2418|       else
# 2419|-> 	gdk_cairo_set_source_pixbuf(cr, sign,
# 2420|   		FILL_X(col), FILL_Y(row));
# 2421|   

Error: COMPILER_WARNING (CWE-477): [#def91]
vim92/src/gui_gtk4.c: scope_hint: In function ‘create_toolbar_icon’
vim92/src/gui_gtk4.c:3435:25: warning[-Wdeprecated-declarations]: ‘gdk_texture_new_for_pixbuf’ is deprecated
# 3435 |                         gdk_texture_new_for_pixbuf(pixbuf);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/gdkdmabuftexture.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gdk/gdk.h:48: included_from: Included from here.
/usr/include/gtk-4.0/gdk/gdktexture.h:66:25: note: declared here
#   66 | GdkTexture *            gdk_texture_new_for_pixbuf             (GdkPixbuf       *pixbuf);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 3433|   	    {
# 3434|   		GdkTexture *texture =
# 3435|-> 			gdk_texture_new_for_pixbuf(pixbuf);
# 3436|   		image = gtk_image_new_from_paintable(
# 3437|   			GDK_PAINTABLE(texture));

Error: COMPILER_WARNING (CWE-477): [#def92]
vim92/src/gui_gtk4.c:3435:25: warning[-Wdeprecated-declarations]: ‘gdk_texture_new_for_pixbuf’ is deprecated
# 3433|   	    {
# 3434|   		GdkTexture *texture =
# 3435|-> 			gdk_texture_new_for_pixbuf(pixbuf);
# 3436|   		image = gtk_image_new_from_paintable(
# 3437|   			GDK_PAINTABLE(texture));

Error: COMPILER_WARNING: [#def93]
vim92/src/gui_gtk4.c: scope_hint: In function ‘print_draw_page_cb’
vim92/src/gui_gtk4.c:4443:21: warning[-Wunused-but-set-variable=]: variable ‘page_line’ set but not used
# 4443 |     int             page_line;
#      |                     ^~~~~~~~~
# 4441|       linenr_T	    first;
# 4442|       linenr_T	    last;
# 4443|->     int		    page_line;
# 4444|       double	    y;
# 4445|   

Error: COMPILER_WARNING: [#def94]
vim92/src/gui_gtk4_f.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def95]
vim92/src/gui_xim.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING (CWE-563): [#def96]
vim92/src/gui_xim.c:193:22: warning[-Wunused-variable]: ‘im_activatekey_keyval’ defined but not used
#  193 | static unsigned int  im_activatekey_keyval = GDK_KEY_VoidSymbol;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
#  191|   static unsigned long im_commit_handler_id  = 0;
#  192|   #  ifdef USE_GTK4
#  193|-> static unsigned int  im_activatekey_keyval = GDK_KEY_VoidSymbol;
#  194|   #  else
#  195|   static unsigned int  im_activatekey_keyval = GDK_VoidSymbol;

Error: COMPILER_WARNING (CWE-563): [#def97]
vim92/src/gui_xim.c:197:22: warning[-Wunused-variable]: ‘im_activatekey_state’ defined but not used
#  197 | static unsigned int  im_activatekey_state  = 0;
#      |                      ^~~~~~~~~~~~~~~~~~~~
#  195|   static unsigned int  im_activatekey_keyval = GDK_VoidSymbol;
#  196|   #  endif
#  197|-> static unsigned int  im_activatekey_state  = 0;
#  198|   
#  199|   static GtkWidget *preedit_window = NULL;

Error: COMPILER_WARNING: [#def98]
vim92/src/hardcopy.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def99]
vim92/src/hashtab.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def100]
vim92/src/help.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-131): [#def101]
vim92/src/help.c:554:5: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  552|       }
#  553|   
#  554|->     *matches = (char_u **)"";
#  555|       *num_matches = 0;
#  556|       flags = TAG_HELP | TAG_REGEXP | TAG_NAMES | TAG_VERBOSE | TAG_NO_TAGFUNC;

Error: COMPILER_WARNING: [#def102]
vim92/src/highlight.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def103]
vim92/src/if_cscope.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def104]
vim92/src/if_lua.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
vim92/src/if_lua.c:1014:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1011:1: enter_function: entry to ‘luaV_list_add’
vim92/src/if_lua.c:1013:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_list_add’
vim92/src/if_lua.c:1013:22: return_function: returning to ‘luaV_list_add’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1014:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_LIST)’
# 1012|   {
# 1013|       luaV_List *lis = luaV_checkudata(L, 1, LUAVIM_LIST);
# 1014|->     list_T *l = (list_T *) luaV_checkcache(L, (void *) *lis);
# 1015|       typval_T v;
# 1016|       if (l->lv_lock)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
vim92/src/if_lua.c:1031:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1028:1: enter_function: entry to ‘luaV_list_insert’
vim92/src/if_lua.c:1030:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_list_insert’
vim92/src/if_lua.c:1030:22: return_function: returning to ‘luaV_list_insert’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1031:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_LIST)’
# 1029|   {
# 1030|       luaV_List *lis = luaV_checkudata(L, 1, LUAVIM_LIST);
# 1031|->     list_T *l = (list_T *) luaV_checkcache(L, (void *) *lis);
# 1032|       long pos = (long) luaL_optinteger(L, 3, 0);
# 1033|       listitem_T *li = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
vim92/src/if_lua.c:1300:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1297:1: enter_function: entry to ‘luaV_blob_add’
vim92/src/if_lua.c:1299:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_blob_add’
vim92/src/if_lua.c:1299:22: return_function: returning to ‘luaV_blob_add’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1300:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_BLOB)’
# 1298|   {
# 1299|       luaV_Blob *blo = luaV_checkudata(L, 1, LUAVIM_BLOB);
# 1300|->     blob_T *b = (blob_T *) luaV_checkcache(L, (void *) *blo);
# 1301|       if (b->bv_lock)
# 1302|   	luaL_error(L, "blob is locked");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
vim92/src/if_lua.c:1553:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1550:1: enter_function: entry to ‘luaV_buffer_insert’
vim92/src/if_lua.c:1552:23: call_function: calling ‘luaV_checkudata’ from ‘luaV_buffer_insert’
vim92/src/if_lua.c:1552:23: return_function: returning to ‘luaV_buffer_insert’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1553:26: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_BUFFER)’
# 1551|   {
# 1552|       luaV_Buffer *lb = luaV_checkudata(L, 1, LUAVIM_BUFFER);
# 1553|->     buf_T *b = (buf_T *) luaV_checkcache(L, (void *) *lb);
# 1554|       linenr_T last = b->b_ml.ml_line_count;
# 1555|       linenr_T n = (linenr_T) luaL_optinteger(L, 3, last);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
vim92/src/if_lua.c:1588:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1585:1: enter_function: entry to ‘luaV_buffer_next’
vim92/src/if_lua.c:1587:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_buffer_next’
vim92/src/if_lua.c:1587:22: return_function: returning to ‘luaV_buffer_next’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1588:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_BUFFER)’
# 1586|   {
# 1587|       luaV_Buffer *b = luaV_checkudata(L, 1, LUAVIM_BUFFER);
# 1588|->     buf_T *buf = (buf_T *) luaV_checkcache(L, (void *) *b);
# 1589|       luaV_pushbuffer(L, buf->b_next);
# 1590|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
vim92/src/if_lua.c:1597:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1594:1: enter_function: entry to ‘luaV_buffer_previous’
vim92/src/if_lua.c:1596:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_buffer_previous’
vim92/src/if_lua.c:1596:22: return_function: returning to ‘luaV_buffer_previous’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1597:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_BUFFER)’
# 1595|   {
# 1596|       luaV_Buffer *b = luaV_checkudata(L, 1, LUAVIM_BUFFER);
# 1597|->     buf_T *buf = (buf_T *) luaV_checkcache(L, (void *) *b);
# 1598|       luaV_pushbuffer(L, buf->b_prev);
# 1599|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
vim92/src/if_lua.c:1606:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1603:1: enter_function: entry to ‘luaV_buffer_isvalid’
vim92/src/if_lua.c:1605:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_buffer_isvalid’
vim92/src/if_lua.c:1605:22: return_function: returning to ‘luaV_buffer_isvalid’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1606:5: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_BUFFER)’
# 1604|   {
# 1605|       luaV_Buffer *b = luaV_checkudata(L, 1, LUAVIM_BUFFER);
# 1606|->     luaV_getudata(L, *b);
# 1607|       lua_pushboolean(L, !lua_isnil(L, -1));
# 1608|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
vim92/src/if_lua.c:1722:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1719:1: enter_function: entry to ‘luaV_window_next’
vim92/src/if_lua.c:1721:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_window_next’
vim92/src/if_lua.c:1721:22: return_function: returning to ‘luaV_window_next’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1722:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_WINDOW)’
# 1720|   {
# 1721|       luaV_Window *w = luaV_checkudata(L, 1, LUAVIM_WINDOW);
# 1722|->     win_T *win = (win_T *) luaV_checkcache(L, (void *) *w);
# 1723|       luaV_pushwindow(L, win->w_next);
# 1724|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
vim92/src/if_lua.c:1731:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1728:1: enter_function: entry to ‘luaV_window_previous’
vim92/src/if_lua.c:1730:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_window_previous’
vim92/src/if_lua.c:1730:22: return_function: returning to ‘luaV_window_previous’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1731:28: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_WINDOW)’
# 1729|   {
# 1730|       luaV_Window *w = luaV_checkudata(L, 1, LUAVIM_WINDOW);
# 1731|->     win_T *win = (win_T *) luaV_checkcache(L, (void *) *w);
# 1732|       luaV_pushwindow(L, win->w_prev);
# 1733|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
vim92/src/if_lua.c:1740:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/if_lua.c:1737:1: enter_function: entry to ‘luaV_window_isvalid’
vim92/src/if_lua.c:1739:22: call_function: calling ‘luaV_checkudata’ from ‘luaV_window_isvalid’
vim92/src/if_lua.c:1739:22: return_function: returning to ‘luaV_window_isvalid’ from ‘luaV_checkudata’
vim92/src/if_lua.c:1740:5: danger: dereference of NULL ‘luaV_checkudata(L, 1, & LUAVIM_WINDOW)’
# 1738|   {
# 1739|       luaV_Window *w = luaV_checkudata(L, 1, LUAVIM_WINDOW);
# 1740|->     luaV_getudata(L, *w);
# 1741|       lua_pushboolean(L, !lua_isnil(L, -1));
# 1742|       return 1;

Error: CPPCHECK_WARNING (CWE-562): [#def115]
vim92/src/if_py_both.h:236: error[returnDanglingLifetime]: Returning pointer to local variable 'type_spec' that will be invalid when returning.
#  234|   
#  235|       PyObject* newtype = PyType_FromSpec(&type_spec);
#  236|->     return (PyTypeObject*)newtype;
#  237|   }
#  238|   

Error: CPPCHECK_WARNING (CWE-562): [#def116]
vim92/src/if_py_both.h:1192: error[returnDanglingLifetime]: Returning pointer to local variable 'buf' that will be invalid when returning.
# 1190|       }
# 1191|   
# 1192|->     return ret;
# 1193|   }
# 1194|   

Error: COMPILER_WARNING: [#def117]
vim92/src/if_python3.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def118]
vim92/src/if_ruby.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def119]
vim92/src/if_xcmdsrv.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def120]
vim92/src/indent.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def121]
vim92/src/insexpand.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def122]
vim92/src/job.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def123]
vim92/src/json.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def124]
vim92/src/libvterm/src/encoding.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def125]
vim92/src/libvterm/src/keyboard.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-787): [#def126]
vim92/src/libvterm/src/keyboard.c:168:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
vim92/src/libvterm/src/keyboard.c:156:5: branch_false: following ‘false’ branch (when ‘key != 0’)...
vim92/src/libvterm/src/keyboard.c:160:5: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:160:5: branch_false: following ‘false’ branch (when ‘key > 255’)...
vim92/src/libvterm/src/keyboard.c:165:11: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:165:10: branch_true: following ‘true’ branch...
vim92/src/libvterm/src/keyboard.c:166:7: branch_true: ...to here
vim92/src/libvterm/src/keyboard.c:166:7: branch_false: following ‘false’ branch...
vim92/src/libvterm/src/keyboard.c:168:5: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:168:5: danger: read of 4 bytes at offset ‘key * 12 + 51539604480’ exceeds ‘keycodes_fn’
#  166|       if((key - VTERM_KEY_FUNCTION_0) >= sizeof(keycodes_fn)/sizeof(keycodes_fn[0]))
#  167|         return;
#  168|->     k = keycodes_fn[key - VTERM_KEY_FUNCTION_0];
#  169|     }
#  170|     else if(key >= VTERM_KEY_KP_0) {

Error: GCC_ANALYZER_WARNING (CWE-787): [#def127]
vim92/src/libvterm/src/keyboard.c:173:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
vim92/src/libvterm/src/keyboard.c:156:5: branch_false: following ‘false’ branch (when ‘key != 0’)...
vim92/src/libvterm/src/keyboard.c:160:5: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:160:5: branch_false: following ‘false’ branch (when ‘key > 255’)...
vim92/src/libvterm/src/keyboard.c:165:11: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:165:10: branch_false: following ‘false’ branch...
vim92/src/libvterm/src/keyboard.c:171:8: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:171:7: branch_false: following ‘false’ branch...
vim92/src/libvterm/src/keyboard.c:173:5: branch_false: ...to here
vim92/src/libvterm/src/keyboard.c:173:5: danger: read of 4 bytes at offset ‘key * 12 + 51539601408’ exceeds ‘keycodes_kp’
#  171|       if((key - VTERM_KEY_KP_0) >= sizeof(keycodes_kp)/sizeof(keycodes_kp[0]))
#  172|         return;
#  173|->     k = keycodes_kp[key - VTERM_KEY_KP_0];
#  174|     }
#  175|   

Error: CPPCHECK_WARNING (CWE-909): [#def128]
vim92/src/libvterm/src/keyboard.c:176: error[uninitStructMember]: Uninitialized struct member: k.type
#  174|     }
#  175|   
#  176|->   switch(k.type) {
#  177|     case KEYCODE_NONE:
#  178|       break;

Error: COMPILER_WARNING: [#def129]
vim92/src/libvterm/src/mouse.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def130]
vim92/src/libvterm/src/parser.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def131]
vim92/src/libvterm/src/pen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def132]
vim92/src/libvterm/src/screen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def133]
vim92/src/libvterm/src/state.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def134]
vim92/src/libvterm/src/unicode.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def135]
vim92/src/libvterm/src/vterm.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def136]
vim92/src/linematch.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def137]
vim92/src/linematch.c:321: warning[uninitvar]: Uninitialized variable: df_iters
#  319|   
#  320|   	int choice = 0;
#  321|-> 	size_t unwrapper_idx_to = unwrap_indexes(df_iters, diff_len, ndiffs);
#  322|   
#  323|   	diffcmppath[unwrapper_idx_to].df_lev_score = -1;

Error: CPPCHECK_WARNING (CWE-457): [#def138]
vim92/src/linematch.c:324: warning[uninitvar]: Uninitialized variable: paths
#  322|   
#  323|   	diffcmppath[unwrapper_idx_to].df_lev_score = -1;
#  324|-> 	try_possible_paths(df_iters, paths, npaths, 0, &choice, diffcmppath,
#  325|   					diff_len, ndiffs, diff_blk, iwhite);
#  326|   	return;

Error: COMPILER_WARNING: [#def139]
vim92/src/list.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
vim92/src/list.c:587:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
vim92/src/list.c:2572:1: enter_function: entry to ‘list_filter_map’
vim92/src/list.c:2589:8: branch_false: following ‘false’ branch (when ‘filtermap != 2’)...
vim92/src/list.c:2594:8: branch_false: ...to here
vim92/src/list.c:2594:8: branch_false: following ‘false’ branch (when ‘l’ is non-NULL)...
vim92/src/list.c:2594:9: branch_false: ...to here
vim92/src/list.c:2600:8: branch_false: following ‘false’ branch (when ‘filtermap != 2’)...
vim92/src/list.c:2607:5: branch_false: ...to here
vim92/src/list.c:2615:8: branch_true: following ‘true’ branch...
vim92/src/list.c:2617:25: branch_true: ...to here
vim92/src/list.c:2631:23: branch_true: following ‘true’ branch (when ‘idx < len’)...
vim92/src/list.c:2635:13: branch_true: ...to here
vim92/src/list.c:2639:17: call_function: calling ‘filter_map_one’ from ‘list_filter_map’
vim92/src/list.c:2639:17: return_function: returning to ‘list_filter_map’ from ‘filter_map_one’
vim92/src/list.c:2639:16: branch_false: following ‘false’ branch...
vim92/src/list.c:2641:17: branch_false: ...to here
vim92/src/list.c:2641:16: branch_false: following ‘false’ branch...
vim92/src/list.c:2646:16: branch_false: ...to here
vim92/src/list.c:2646:16: branch_true: following ‘true’ branch (when ‘filtermap != 3’)...
vim92/src/list.c:2648:20: branch_true: ...to here
vim92/src/list.c:2648:20: branch_true: following ‘true’ branch (when ‘filtermap != 0’)...
vim92/src/list.c:2650:25: branch_true: ...to here
vim92/src/list.c:2650:24: branch_false: following ‘false’ branch...
vim92/src/list.c:2660:25: branch_false: ...to here
vim92/src/list.c:2660:25: branch_false: following ‘false’ branch (when ‘filtermap != 1’)...
vim92/src/list.c:2660:25: branch_false: ...to here
vim92/src/list.c:2660:25: call_function: calling ‘list_append_tv_move’ from ‘list_filter_map’
#  585|   list_append(list_T *l, listitem_T *item)
#  586|   {
#  587|->     CHECK_LIST_MATERIALIZE(l);
#  588|       if (l->lv_u.mat.lv_last == NULL)
#  589|       {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def141]
vim92/src/list.c:2166:15: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vim92/src/list.c:2443:1: enter_function: entry to ‘do_sort_uniq’
vim92/src/list.c:2457:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2465:5: branch_false: ...to here
vim92/src/list.c:2469:9: branch_false: following ‘false’ branch...
vim92/src/list.c:2473:5: call_function: inlined call to ‘rettv_list_set’ from ‘do_sort_uniq’
vim92/src/list.c:2479:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2482:9: branch_false: ...to here
vim92/src/list.c:2482:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2485:8: branch_false: ...to here
vim92/src/list.c:2485:8: branch_false: following ‘false’ branch (when ‘sort == 0’)...
vim92/src/list.c:2488:9: branch_false: ...to here
vim92/src/list.c:2488:9: call_function: calling ‘do_uniq’ from ‘do_sort_uniq’
# 2164|       // sort stable.
# 2165|       if (res == 0 && !sortinfo->item_compare_keep_zero)
# 2166|-> 	res = si1->idx > si2->idx ? 1 : -1;
# 2167|   
# 2168|       vim_free(tofree1);

Error: COMPILER_WARNING: [#def142]
vim92/src/locale.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def143]
vim92/src/logfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def144]
vim92/src/main.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
vim92/src/main.c:2784:17: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
vim92/src/main.c:2111:12: branch_true: following ‘true’ branch (when ‘argc > 0’)...
vim92/src/main.c:2116:13: branch_true: ...to here
vim92/src/main.c:2777:16: branch_true: following ‘true’ branch...
vim92/src/main.c:2777:17: branch_true: following ‘true’ branch...
vim92/src/main.c:2783:44: branch_true: ...to here
vim92/src/main.c:2784:17: danger: argument 1 (‘p’) NULL where non-null expected
# 2782|   
# 2783|   		tail = gettail(alist_name(&GARGLIST[0]));
# 2784|-> 		concat_fnames(p, STRLEN(p), tail, STRLEN(tail), TRUE, &ret);
# 2785|   		if (ret.string != NULL)
# 2786|   		{

Error: COMPILER_WARNING: [#def146]
vim92/src/map.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def147]
vim92/src/map.c:1091: warning[uninitvar]: Uninitialized variable: *mpp
# 1089|   		mpp = &maphash[hash];
# 1090|   	}
# 1091|-> 	while (*mpp != NULL)
# 1092|   	{
# 1093|   	    mp = *mpp;

Error: COMPILER_WARNING: [#def148]
vim92/src/mark.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def149]
vim92/src/match.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
vim92/src/match.c:46:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘grp’
vim92/src/match.c:1372:1: enter_function: entry to ‘ex_match’
vim92/src/match.c:1380:8: branch_true: following ‘true’ branch...
vim92/src/match.c:1381:9: branch_true: ...to here
vim92/src/match.c:1392:8: branch_false: following ‘false’ branch...
vim92/src/match.c:1394:15: branch_false: ...to here
vim92/src/match.c:1401:12: branch_false: following ‘false’ branch...
vim92/src/match.c:1403:13: branch_false: ...to here
vim92/src/match.c:1404:12: branch_false: following ‘false’ branch...
vim92/src/match.c:1411:15: branch_false: ...to here
vim92/src/match.c:1412:12: branch_true: following ‘true’ branch...
vim92/src/match.c:1414:17: branch_true: ...to here
vim92/src/match.c:1414:17: branch_false: following ‘false’ branch...
vim92/src/match.c:1420:17: branch_false: ...to here
vim92/src/match.c:1420:16: branch_false: following ‘false’ branch...
vim92/src/match.c:1428:13: branch_false: ...to here
vim92/src/match.c:1429:13: call_function: calling ‘match_add’ from ‘ex_match’
#   44|       int		rtype = UPD_SOME_VALID;
#   45|   
#   46|->     if (*grp == NUL || (pat != NULL && *pat == NUL))
#   47|   	return -1;
#   48|       if (id < -1 || id == 0)

Error: COMPILER_WARNING: [#def151]
vim92/src/mbyte.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-835): [#def152]
vim92/src/mbyte.c:4089:12: warning[-Wanalyzer-infinite-loop]: infinite loop
vim92/src/mbyte.c:4089:12: danger: infinite loop here
vim92/src/mbyte.c:4089:12: branch_true: when ‘q < p’: always following ‘true’ branch...
vim92/src/mbyte.c:4090:14: call_function: inlined call to ‘dbcs_ptr2len’ from ‘dbcs_head_off’
vim92/src/mbyte.c:4090:14: branch_true: ...to here
# 4087|       // byte we are looking for.  Return 1 when we went past it, 0 otherwise.
# 4088|       q = base;
# 4089|->     while (q < p)
# 4090|   	q += dbcs_ptr2len(q);
# 4091|       return (q == p) ? 0 : 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
vim92/src/mbyte.c:4982:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(enc_skip(to), enc_skip(from))’
vim92/src/mbyte.c:4980:10: acquire_memory: allocated here
vim92/src/mbyte.c:4982:8: danger: ‘iconv_open(enc_skip(to), enc_skip(from))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 4980|       fd = iconv_open((char *)enc_skip(to), (char *)enc_skip(from));
# 4981|   
# 4982|->     if (fd != (iconv_t)-1 && iconv_ok == -1)
# 4983|       {
# 4984|   	/*

Error: COMPILER_WARNING: [#def154]
vim92/src/memfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def155]
vim92/src/memline.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def156]
vim92/src/menu.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def157]
vim92/src/message.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def158]
vim92/src/misc1.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def159]
vim92/src/misc2.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def160]
vim92/src/misc2.c:1775: error[uninitvar]: Uninitialized variable: &target.is_alt
# 1773|   
# 1774|   	entry = (struct key_name_entry *)bsearch(
# 1775|-> 	    &target,
# 1776|   	    &key_names_table,
# 1777|   	    ARRAY_LENGTH(key_names_table),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def161]
vim92/src/misc2.c:2384:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
vim92/src/misc2.c:2197:21: branch_true: following ‘true’ branch (when ‘round != 3’)...
vim92/src/misc2.c:2207:13: branch_true: ...to here
vim92/src/misc2.c:2213:16: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2215:16: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2215:16: branch_false: ...to here
vim92/src/misc2.c:2223:20: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2384:13: branch_false: ...to here
vim92/src/misc2.c:2384:13: danger: use of uninitialized value ‘p’ here
# 2382|   		}
# 2383|   	    }
# 2384|-> 	    modep = p;
# 2385|   	    if (*modep == ',')
# 2386|   		++modep;

Error: COMPILER_WARNING: [#def162]
vim92/src/mouse.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def163]
vim92/src/move.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def164]
vim92/src/move.c:3404: warning[nullPointer]: Possible null pointer dereference: curwin
# 3402|       static pos_T	prev_cursor = {0, 0, 0};
# 3403|   
# 3404|->     if (curwin == prev_curwin && EQUAL_POS(curwin->w_cursor, prev_cursor))
# 3405|   	return;
# 3406|       prev_curwin = curwin;

Error: COMPILER_WARNING: [#def165]
vim92/src/netbeans.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
vim92/src/netbeans.c:1235:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/netbeans.c:1002:1: enter_function: entry to ‘nb_do_cmd’
vim92/src/netbeans.c:1011:24: call_function: calling ‘nb_get_buf’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1011:24: return_function: returning to ‘nb_do_cmd’ from ‘nb_get_buf’
vim92/src/netbeans.c:1019:8: branch_true: following ‘true’ branch (when ‘func != 0’)...
vim92/src/netbeans.c:1022:13: branch_true: ...to here
vim92/src/netbeans.c:1022:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1033:18: branch_false: ...to here
vim92/src/netbeans.c:1033:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1042:18: branch_false: ...to here
vim92/src/netbeans.c:1042:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1057:18: branch_false: ...to here
vim92/src/netbeans.c:1057:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1080:18: branch_false: ...to here
vim92/src/netbeans.c:1080:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1097:18: branch_false: ...to here
vim92/src/netbeans.c:1097:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1151:18: branch_false: ...to here
vim92/src/netbeans.c:1151:17: branch_true: following ‘true’ branch (when the strings are equal)...
vim92/src/netbeans.c:1158:17: branch_true: ...to here
vim92/src/netbeans.c:1162:16: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1169:16: branch_false: ...to here
vim92/src/netbeans.c:1169:16: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1187:23: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1187:23: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1188:20: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1196:17: branch_false: ...to here
vim92/src/netbeans.c:1199:23: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1199:23: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1200:20: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1208:17: branch_false: ...to here
vim92/src/netbeans.c:1218:24: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1218:24: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1221:20: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
vim92/src/netbeans.c:1224:24: branch_true: ...to here
vim92/src/netbeans.c:1224:24: branch_true: following ‘true’ branch (when ‘<unknown> != <unknown>’)...
vim92/src/netbeans.c:1228:25: branch_true: ...to here
vim92/src/netbeans.c:1228:25: call_function: calling ‘nb_partialremove’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1228:25: return_function: returning to ‘nb_do_cmd’ from ‘nb_partialremove’
vim92/src/netbeans.c:1230:28: branch_true: following ‘true’ branch (when ‘<unknown> == <unknown>’)...
vim92/src/netbeans.c:1235:29: branch_true: ...to here
vim92/src/netbeans.c:1235:29: danger: dereference of NULL ‘off2pos(*<unknown>.bufp,  off + count)’
# 1233|   			    // line.  Join the line with the next one, have
# 1234|   			    // the next line deleted below.
# 1235|-> 			    nb_joinlines(first.lnum, next->lnum);
# 1236|   			    del_to_lnum = next->lnum;
# 1237|   			}

Error: COMPILER_WARNING: [#def167]
vim92/src/normal.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def168]
vim92/src/ops.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def169]
vim92/src/ops.c:1976:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bd.textcol’
vim92/src/ops.c:3879:1: enter_function: entry to ‘do_pending_operator’
vim92/src/ops.c:3911:9: branch_true: following ‘true’ branch...
vim92/src/ops.c:3915:29: branch_true: ...to here
vim92/src/ops.c:4395:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4406:21: branch_false: ...to here
vim92/src/ops.c:4419:21: call_function: calling ‘op_change’ from ‘do_pending_operator’
# 1974|   	// the indent, exclude that indent change from the inserted text.
# 1975|   	firstline = ml_get(oap->start.lnum);
# 1976|-> 	if (bd.textcol > (colnr_T)pre_indent)
# 1977|   	{
# 1978|   	    long new_indent = (long)getwhitecols(firstline);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def170]
vim92/src/ops.c:2214:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘prev_was_comment’
vim92/src/ops.c:3879:1: enter_function: entry to ‘do_pending_operator’
vim92/src/ops.c:3911:9: branch_true: following ‘true’ branch...
vim92/src/ops.c:3915:29: branch_true: ...to here
vim92/src/ops.c:4343:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4345:23: branch_false: ...to here
vim92/src/ops.c:4345:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4350:23: branch_false: ...to here
vim92/src/ops.c:4350:23: call_function: calling ‘do_join’ from ‘do_pending_operator’
# 2212|   	    // We don't want to remove the comment leader if the
# 2213|   	    // previous line is not a comment.
# 2214|-> 	    if (t > 0 && prev_was_comment)
# 2215|   	    {
# 2216|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def171]
vim92/src/ops.c:2483:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*oap.start_vcol’
vim92/src/ops.c:3353:1: enter_function: entry to ‘cursor_pos_info’
vim92/src/ops.c:3376:8: branch_false: following ‘false’ branch...
vim92/src/ops.c:3386:13: branch_false: ...to here
vim92/src/ops.c:3391:12: branch_true: following ‘true’ branch...
vim92/src/ops.c:3393:17: branch_true: ...to here
vim92/src/ops.c:3403:16: branch_true: following ‘true’ branch...
vim92/src/ops.c:3406:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:3435:35: branch_false: ...to here
vim92/src/ops.c:3438:24: branch_true: following ‘true’ branch...
vim92/src/ops.c:3441:16: branch_true: ...to here
vim92/src/ops.c:3441:16: branch_false: following ‘false’ branch (when ‘byte_count <= last_check’)...
vim92/src/ops.c:3450:17: branch_false: ...to here
vim92/src/ops.c:3450:16: branch_true: following ‘true’ branch...
vim92/src/ops.c:3451:32: branch_true: ...to here
vim92/src/ops.c:3450:17: branch_true: following ‘true’ branch...
vim92/src/ops.c:3460:25: call_function: calling ‘block_prep’ from ‘cursor_pos_info’
# 2481|       prev_pstart = line;
# 2482|       init_chartabsize_arg(&cts, curwin, lnum, bdp->start_vcol, line, line);
# 2483|->     while (cts.cts_vcol < oap->start_vcol && *cts.cts_ptr != NUL)
# 2484|       {
# 2485|   	// Count a tab for what it's worth (if list mode not on)

Error: COMPILER_WARNING: [#def172]
vim92/src/option.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
vim92/src/option.c:832:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:9063:1: enter_function: entry to ‘compatible_set’
vim92/src/option.c:9067:24: call_function: inlined call to ‘istermoption_idx’ from ‘compatible_set’
vim92/src/option.c:9068:22: branch_false: ...to here
vim92/src/option.c:9068:12: branch_true: following ‘true’ branch...
vim92/src/option.c:9070:13: call_function: calling ‘set_option_default’ from ‘compatible_set’
vim92/src/option.c:9070:13: return_function: returning to ‘compatible_set’ from ‘set_option_default’
vim92/src/option.c:9067:24: call_function: inlined call to ‘istermoption_idx’ from ‘compatible_set’
vim92/src/option.c:9068:22: branch_false: ...to here
vim92/src/option.c:9068:12: branch_true: following ‘true’ branch...
vim92/src/option.c:9070:13: call_function: calling ‘set_option_default’ from ‘compatible_set’
#  830|   	    // May also set global value for local option.
#  831|   	    if (both)
#  832|-> 		*(int *)get_varp_scope(&(options[opt_idx]), OPT_GLOBAL) =
#  833|   								*(int *)varp;
#  834|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
vim92/src/option.c:8755:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:8745:1: enter_function: entry to ‘ExpandSettingSubtract’
vim92/src/option.c:8751:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8755:27: branch_false: ...to here
vim92/src/option.c:8755:37: call_function: inlined call to ‘get_option_varp_scope’ from ‘ExpandSettingSubtract’
vim92/src/option.c:8755:37: call_function: inlined call to ‘get_option_varp_scope’ from ‘ExpandSettingSubtract’
vim92/src/option.c:8755:13: danger: dereference of NULL ‘get_varp_scope(&options[<unknown>], expand_option_flags)’
# 8753|   	return ExpandOldSetting(numMatches, matches);
# 8754|   
# 8755|->     char_u *option_val = *(char_u**)get_option_varp_scope(
# 8756|   	expand_option_idx, expand_option_flags);
# 8757|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
vim92/src/option.c:8907:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:8890:1: enter_function: entry to ‘option_value2string’
vim92/src/option.c:8896:12: call_function: calling ‘get_varp_scope’ from ‘option_value2string’
vim92/src/option.c:8896:12: return_function: returning to ‘option_value2string’ from ‘get_varp_scope’
vim92/src/option.c:8898:8: branch_true: following ‘true’ branch...
vim92/src/option.c:8900:14: branch_true: ...to here
vim92/src/option.c:8902:13: call_function: calling ‘wc_use_keyname’ from ‘option_value2string’
vim92/src/option.c:8902:13: return_function: returning to ‘option_value2string’ from ‘wc_use_keyname’
vim92/src/option.c:8902:12: branch_false: following ‘false’ branch...
vim92/src/option.c:8904:18: branch_false: ...to here
vim92/src/option.c:8904:17: branch_false: following ‘false’ branch...
vim92/src/option.c:8907:13: branch_false: ...to here
vim92/src/option.c:8907:13: danger: dereference of NULL ‘get_varp_scope(opp,  scope)’
# 8905|   	    STRCPY(NameBuff, transchar((int)wc));
# 8906|   	else
# 8907|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8908|       }
# 8909|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
vim92/src/option.c:8907:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
vim92/src/option.c:8697:1: enter_function: entry to ‘ExpandStringSetting’
vim92/src/option.c:8706:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8707:13: branch_false: ...to here
vim92/src/option.c:8706:9: branch_false: following ‘false’ branch...
vim92/src/option.c:8715:20: branch_false: ...to here
vim92/src/option.c:8715:20: call_function: calling ‘get_varp_scope’ from ‘ExpandStringSetting’
vim92/src/option.c:8715:20: return_function: returning to ‘ExpandStringSetting’ from ‘get_varp_scope’
vim92/src/option.c:8727:5: call_function: calling ‘option_value2string’ from ‘ExpandStringSetting’
# 8905|   	    STRCPY(NameBuff, transchar((int)wc));
# 8906|   	else
# 8907|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8908|       }
# 8909|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
vim92/src/option.c:8911:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:8890:1: enter_function: entry to ‘option_value2string’
vim92/src/option.c:8896:12: call_function: calling ‘get_varp_scope’ from ‘option_value2string’
vim92/src/option.c:8896:12: return_function: returning to ‘option_value2string’ from ‘get_varp_scope’
vim92/src/option.c:8898:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8911:9: branch_false: ...to here
vim92/src/option.c:8911:9: danger: dereference of NULL ‘get_varp_scope(opp,  scope)’
# 8909|       else    // P_STRING
# 8910|       {
# 8911|-> 	varp = *(char_u **)(varp);
# 8912|   	if (varp == NULL)		    // just in case
# 8913|   	    NameBuff[0] = NUL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
vim92/src/option.c:8911:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
vim92/src/option.c:8697:1: enter_function: entry to ‘ExpandStringSetting’
vim92/src/option.c:8706:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8707:13: branch_false: ...to here
vim92/src/option.c:8706:9: branch_false: following ‘false’ branch...
vim92/src/option.c:8715:20: branch_false: ...to here
vim92/src/option.c:8715:20: call_function: calling ‘get_varp_scope’ from ‘ExpandStringSetting’
vim92/src/option.c:8715:20: return_function: returning to ‘ExpandStringSetting’ from ‘get_varp_scope’
vim92/src/option.c:8727:5: call_function: calling ‘option_value2string’ from ‘ExpandStringSetting’
# 8909|       else    // P_STRING
# 8910|       {
# 8911|-> 	varp = *(char_u **)(varp);
# 8912|   	if (varp == NULL)		    // just in case
# 8913|   	    NameBuff[0] = NUL;

Error: COMPILER_WARNING: [#def179]
vim92/src/optionstr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def180]
vim92/src/os_unix.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def181]
vim92/src/os_unix.c:5048:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd_toshell[0]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5030:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5033:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5040:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5048:21: branch_false: ...to here
vim92/src/os_unix.c:5048:21: danger: use of uninitialized value ‘fd_toshell[0]’ here
# 5046|   # endif
# 5047|   		{
# 5048|-> 		    close(fd_toshell[0]);
# 5049|   		    close(fd_toshell[1]);
# 5050|   		    close(fd_fromshell[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
vim92/src/os_unix.c:5097:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5094:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5096:35: branch_true: ...to here
vim92/src/os_unix.c:5096:35: acquire_resource: opened here
vim92/src/os_unix.c:5097:21: danger: ‘vim_ignored’ leaks here; was opened at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
# 5095|   		{
# 5096|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 5097|-> 		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 5098|   		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 5099|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
vim92/src/os_unix.c:5098:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5094:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5096:35: branch_true: ...to here
vim92/src/os_unix.c:5097:35: acquire_resource: opened here
vim92/src/os_unix.c:5098:21: danger: ‘vim_ignored’ leaks here; was opened at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
# 5096|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 5097|   		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 5098|-> 		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 5099|   
# 5100|   		    // Don't need this now that we've duplicated it

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
vim92/src/os_unix.c:5156:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5068:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5104:22: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5115:21: branch_true: ...to here
vim92/src/os_unix.c:5140:17: call_function: calling ‘set_default_child_environment’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5140:17: return_function: returning to ‘mch_call_shell_fork’ from ‘set_default_child_environment’
vim92/src/os_unix.c:5148:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5150:21: branch_true: ...to here
vim92/src/os_unix.c:5154:35: acquire_resource: opened here
vim92/src/os_unix.c:5156:21: danger: ‘vim_ignored’ leaks here; was opened at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
# 5154|   		    vim_ignored = dup(pty_slave_fd);
# 5155|   		    close(1);
# 5156|-> 		    vim_ignored = dup(pty_slave_fd);
# 5157|   		    if (gui.in_use)
# 5158|   		    {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
vim92/src/os_unix.c:5160:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5068:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5104:22: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5115:21: branch_true: ...to here
vim92/src/os_unix.c:5140:17: call_function: calling ‘set_default_child_environment’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5140:17: return_function: returning to ‘mch_call_shell_fork’ from ‘set_default_child_environment’
vim92/src/os_unix.c:5148:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5150:21: branch_true: ...to here
vim92/src/os_unix.c:5156:35: acquire_resource: opened here
vim92/src/os_unix.c:5157:24: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5159:25: branch_true: ...to here
vim92/src/os_unix.c:5160:25: danger: ‘vim_ignored’ leaks here; was opened at [(31)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/30)
# 5158|   		    {
# 5159|   			close(2);
# 5160|-> 			vim_ignored = dup(pty_slave_fd);
# 5161|   		    }
# 5162|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def186]
vim92/src/os_unix.c:5169:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd_toshell[1]’
vim92/src/os_unix.c:5778:1: enter_function: entry to ‘mch_call_shell’
vim92/src/os_unix.c:5793:12: call_function: calling ‘mch_call_shell_fork’ from ‘mch_call_shell’
# 5167|   		{
# 5168|   		    // set up stdin for the child
# 5169|-> 		    close(fd_toshell[1]);
# 5170|   		    close(0);
# 5171|   		    vim_ignored = dup(fd_toshell[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def187]
vim92/src/os_unix.c:5177:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5068:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5140:17: call_function: calling ‘set_default_child_environment’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5140:17: return_function: returning to ‘mch_call_shell_fork’ from ‘set_default_child_environment’
vim92/src/os_unix.c:5148:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5169:21: branch_false: ...to here
vim92/src/os_unix.c:5171:35: acquire_resource: opened here
vim92/src/os_unix.c:5177:21: danger: ‘vim_ignored’ leaks here; was opened at [(39)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/38)
# 5175|   		    close(fd_fromshell[0]);
# 5176|   		    close(1);
# 5177|-> 		    vim_ignored = dup(fd_fromshell[1]);
# 5178|   		    close(fd_fromshell[1]);
# 5179|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def188]
vim92/src/os_unix.c:5185:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5068:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5140:17: call_function: calling ‘set_default_child_environment’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5140:17: return_function: returning to ‘mch_call_shell_fork’ from ‘set_default_child_environment’
vim92/src/os_unix.c:5148:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5169:21: branch_false: ...to here
vim92/src/os_unix.c:5177:35: acquire_resource: opened here
vim92/src/os_unix.c:5181:24: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5184:25: branch_true: ...to here
vim92/src/os_unix.c:5185:25: danger: ‘vim_ignored’ leaks here; was opened at [(39)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/38)
# 5183|   			// set up stderr for the child
# 5184|   			close(2);
# 5185|-> 			vim_ignored = dup(1);
# 5186|   		    }
# 5187|   # endif

Error: GCC_ANALYZER_WARNING (CWE-910): [#def189]
vim92/src/os_unix.c:5185:39: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘1’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5057:13: branch_true: ...to here
vim92/src/os_unix.c:5068:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5140:17: call_function: calling ‘set_default_child_environment’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5140:17: return_function: returning to ‘mch_call_shell_fork’ from ‘set_default_child_environment’
vim92/src/os_unix.c:5148:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5169:21: branch_false: ...to here
vim92/src/os_unix.c:5176:21: release_resource: closed here
vim92/src/os_unix.c:5181:24: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5184:25: branch_true: ...to here
vim92/src/os_unix.c:5185:39: danger: ‘dup’ on closed file descriptor ‘1’; ‘close’ was at [(39)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/38)
# 5183|   			// set up stderr for the child
# 5184|   			close(2);
# 5185|-> 			vim_ignored = dup(1);
# 5186|   		    }
# 5187|   # endif

Error: GCC_ANALYZER_WARNING (CWE-457): [#def190]
vim92/src/os_unix.c:5250:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd_toshell[0]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5055:17: branch_false: ...to here
vim92/src/os_unix.c:5055:17: branch_false: following ‘false’ branch (when ‘pid != 0’)...
vim92/src/os_unix.c:5207:13: branch_false: ...to here
vim92/src/os_unix.c:5218:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5242:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5250:21: branch_false: ...to here
vim92/src/os_unix.c:5250:21: danger: use of uninitialized value ‘fd_toshell[0]’ here
# 5248|   # endif
# 5249|   		{
# 5250|-> 		    close(fd_toshell[0]);
# 5251|   		    close(fd_fromshell[1]);
# 5252|   		    toshell_fd = fd_toshell[1];

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
vim92/src/os_unix.c:5773:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[0]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5030:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5773:12: danger: ‘fd_fromshell[0]’ leaks here
# 5771|       vim_free(tofree2);
# 5772|   
# 5773|->     return retval;
# 5774|   }
# 5775|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
vim92/src/os_unix.c:5773:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[1]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5030:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5773:12: danger: ‘fd_fromshell[1]’ leaks here
# 5771|       vim_free(tofree2);
# 5772|   
# 5773|->     return retval;
# 5774|   }
# 5775|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
vim92/src/os_unix.c:5773:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[0]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5030:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5773:12: danger: ‘fd_toshell[0]’ leaks here
# 5771|       vim_free(tofree2);
# 5772|   
# 5773|->     return retval;
# 5774|   }
# 5775|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
vim92/src/os_unix.c:5773:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[1]’
vim92/src/os_unix.c:4947:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:4977:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:4977:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:4985:9: branch_false: ...to here
vim92/src/os_unix.c:5002:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5005:27: branch_true: ...to here
vim92/src/os_unix.c:5006:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5008:31: branch_true: ...to here
vim92/src/os_unix.c:5009:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5015:16: branch_false: ...to here
vim92/src/os_unix.c:5015:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5026:9: branch_false: ...to here
vim92/src/os_unix.c:5028:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5030:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5773:12: danger: ‘fd_toshell[1]’ leaks here
# 5771|       vim_free(tofree2);
# 5772|   
# 5773|->     return retval;
# 5774|   }
# 5775|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
vim92/src/os_unix.c:5883:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5808:1: enter_function: entry to ‘mch_get_cmd_output_direct’
vim92/src/os_unix.c:5825:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5831:5: branch_false: ...to here
vim92/src/os_unix.c:5837:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5846:8: branch_false: ...to here
vim92/src/os_unix.c:5846:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5849:9: branch_true: ...to here
vim92/src/os_unix.c:5859:12: branch_true: following ‘true’ branch (when ‘infile’ is non-NULL)...
vim92/src/os_unix.c:5861:25: call_function: inlined call to ‘open’ from ‘mch_get_cmd_output_direct’
vim92/src/os_unix.c:5862:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5864:17: branch_true: ...to here
vim92/src/os_unix.c:5865:31: acquire_resource: opened here
vim92/src/os_unix.c:5883:9: danger: ‘vim_ignored’ leaks here; was opened at [(14)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/13)
# 5881|   	close(fd_out[0]);
# 5882|   	close(1);
# 5883|-> 	vim_ignored = dup(fd_out[1]);
# 5884|   	// Also redirect stderr to the pipe.
# 5885|   	close(2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
vim92/src/os_unix.c:5886:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5825:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5831:5: branch_false: ...to here
vim92/src/os_unix.c:5837:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5846:8: branch_false: ...to here
vim92/src/os_unix.c:5846:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5849:9: branch_true: ...to here
vim92/src/os_unix.c:5862:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5881:9: branch_false: ...to here
vim92/src/os_unix.c:5883:23: acquire_resource: opened here
vim92/src/os_unix.c:5886:9: danger: ‘vim_ignored’ leaks here; was opened at [(10)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/9)
# 5884|   	// Also redirect stderr to the pipe.
# 5885|   	close(2);
# 5886|-> 	vim_ignored = dup(fd_out[1]);
# 5887|   	close(fd_out[1]);
# 5888|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
vim92/src/os_unix.c:6164:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:5990:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6003:8: branch_false: ...to here
vim92/src/os_unix.c:6037:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6039:13: branch_true: ...to here
vim92/src/os_unix.c:6040:16: branch_true: following ‘true’ branch (when ‘channel’ is non-NULL)...
vim92/src/os_unix.c:6041:19: branch_true: ...to here
vim92/src/os_unix.c:6054:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:6060:8: branch_false: ...to here
vim92/src/os_unix.c:6060:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:6066:9: branch_true: ...to here
vim92/src/os_unix.c:6133:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6140:13: branch_false: ...to here
vim92/src/os_unix.c:6153:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6155:18: branch_false: ...to here
vim92/src/os_unix.c:6155:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6156:27: branch_true: ...to here
vim92/src/os_unix.c:6156:27: acquire_resource: opened here
vim92/src/os_unix.c:6162:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6164:27: branch_true: ...to here
vim92/src/os_unix.c:6164:13: danger: ‘vim_ignored’ leaks here; was opened at [(19)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/18)
# 6162|   	if (use_null_for_err && null_fd >= 0)
# 6163|   	{
# 6164|-> 	    vim_ignored = dup(null_fd);
# 6165|   	    stderr_works = FALSE;
# 6166|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
vim92/src/os_unix.c:6168:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:6014:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6017:8: branch_false: ...to here
vim92/src/os_unix.c:6030:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:9: branch_true: following ‘true’ branch (when ‘use_null_for_err == 0’)...
vim92/src/os_unix.c:6037:13: branch_true: ...to here
vim92/src/os_unix.c:6037:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6039:13: branch_true: ...to here
vim92/src/os_unix.c:6040:16: branch_true: following ‘true’ branch (when ‘channel’ is non-NULL)...
vim92/src/os_unix.c:6041:19: branch_true: ...to here
vim92/src/os_unix.c:6054:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:6060:8: branch_false: ...to here
vim92/src/os_unix.c:6060:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:6066:9: branch_true: ...to here
vim92/src/os_unix.c:6133:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6140:13: branch_false: ...to here
vim92/src/os_unix.c:6153:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6154:27: branch_true: ...to here
vim92/src/os_unix.c:6154:27: acquire_resource: opened here
vim92/src/os_unix.c:6162:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6167:17: branch_false: ...to here
vim92/src/os_unix.c:6167:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6168:27: branch_true: ...to here
vim92/src/os_unix.c:6168:13: danger: ‘vim_ignored’ leaks here; was opened at [(23)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/22)
# 6166|   	}
# 6167|   	else if (use_out_for_err)
# 6168|-> 	    vim_ignored = dup(fd_out[1]);
# 6169|   	else if (fd_err[1] < 0)
# 6170|   	    vim_ignored = dup(pty_slave_fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
vim92/src/os_unix.c:6170:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:6014:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6017:8: branch_false: ...to here
vim92/src/os_unix.c:6030:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:9: branch_true: following ‘true’ branch (when ‘use_null_for_err == 0’)...
vim92/src/os_unix.c:6037:13: branch_true: ...to here
vim92/src/os_unix.c:6037:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6039:13: branch_true: ...to here
vim92/src/os_unix.c:6040:16: branch_true: following ‘true’ branch (when ‘channel’ is non-NULL)...
vim92/src/os_unix.c:6041:19: branch_true: ...to here
vim92/src/os_unix.c:6054:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:6060:8: branch_false: ...to here
vim92/src/os_unix.c:6060:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:6066:9: branch_true: ...to here
vim92/src/os_unix.c:6133:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6140:13: branch_false: ...to here
vim92/src/os_unix.c:6153:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6154:27: branch_true: ...to here
vim92/src/os_unix.c:6154:27: acquire_resource: opened here
vim92/src/os_unix.c:6162:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6167:17: branch_false: ...to here
vim92/src/os_unix.c:6167:17: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6169:18: branch_false: ...to here
vim92/src/os_unix.c:6169:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6170:27: branch_true: ...to here
vim92/src/os_unix.c:6170:13: danger: ‘vim_ignored’ leaks here; was opened at [(23)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/22)
# 6168|   	    vim_ignored = dup(fd_out[1]);
# 6169|   	else if (fd_err[1] < 0)
# 6170|-> 	    vim_ignored = dup(pty_slave_fd);
# 6171|   	else
# 6172|   	    vim_ignored = dup(fd_err[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
vim92/src/os_unix.c:6172:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:6014:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6017:8: branch_false: ...to here
vim92/src/os_unix.c:6030:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:9: branch_true: following ‘true’ branch (when ‘use_null_for_err == 0’)...
vim92/src/os_unix.c:6037:13: branch_true: ...to here
vim92/src/os_unix.c:6037:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6039:13: branch_true: ...to here
vim92/src/os_unix.c:6040:16: branch_true: following ‘true’ branch (when ‘channel’ is non-NULL)...
vim92/src/os_unix.c:6041:19: branch_true: ...to here
vim92/src/os_unix.c:6054:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:6060:8: branch_false: ...to here
vim92/src/os_unix.c:6060:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:6066:9: branch_true: ...to here
vim92/src/os_unix.c:6133:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6140:13: branch_false: ...to here
vim92/src/os_unix.c:6153:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6154:27: branch_true: ...to here
vim92/src/os_unix.c:6154:27: acquire_resource: opened here
vim92/src/os_unix.c:6162:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6167:17: branch_false: ...to here
vim92/src/os_unix.c:6167:17: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6169:18: branch_false: ...to here
vim92/src/os_unix.c:6169:17: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6172:27: branch_false: ...to here
vim92/src/os_unix.c:6172:13: danger: ‘vim_ignored’ leaks here; was opened at [(23)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/22)
# 6170|   	    vim_ignored = dup(pty_slave_fd);
# 6171|   	else
# 6172|-> 	    vim_ignored = dup(fd_err[1]);
# 6173|   
# 6174|   	// set up stdout for the child

Error: GCC_ANALYZER_WARNING (CWE-775): [#def201]
vim92/src/os_unix.c:6177:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:6014:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6017:8: branch_false: ...to here
vim92/src/os_unix.c:6030:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6035:9: branch_false: ...to here
vim92/src/os_unix.c:6035:9: branch_true: following ‘true’ branch (when ‘use_null_for_err == 0’)...
vim92/src/os_unix.c:6037:13: branch_true: ...to here
vim92/src/os_unix.c:6037:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6039:13: branch_true: ...to here
vim92/src/os_unix.c:6040:16: branch_true: following ‘true’ branch (when ‘channel’ is non-NULL)...
vim92/src/os_unix.c:6041:19: branch_true: ...to here
vim92/src/os_unix.c:6054:8: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:6060:8: branch_false: ...to here
vim92/src/os_unix.c:6060:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:6066:9: branch_true: ...to here
vim92/src/os_unix.c:6133:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6140:13: branch_false: ...to here
vim92/src/os_unix.c:6162:12: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6167:17: branch_false: ...to here
vim92/src/os_unix.c:6167:17: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6168:27: branch_true: ...to here
vim92/src/os_unix.c:6168:27: acquire_resource: opened here
vim92/src/os_unix.c:6176:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:6177:27: branch_true: ...to here
vim92/src/os_unix.c:6177:13: danger: ‘vim_ignored’ leaks here; was opened at [(25)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/24)
# 6175|   	close(1);
# 6176|   	if (use_null_for_out && null_fd >= 0)
# 6177|-> 	    vim_ignored = dup(null_fd);
# 6178|   	else if (fd_out[1] < 0)
# 6179|   	    vim_ignored = dup(pty_slave_fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
vim92/src/os_unix.c:6293:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_in[0]’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:5985:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5999:12: branch_false: ...to here
vim92/src/os_unix.c:5999:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5999:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6003:8: branch_false: ...to here
vim92/src/os_unix.c:6277:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6279:9: branch_false: ...to here
vim92/src/os_unix.c:6279:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6281:9: branch_false: ...to here
vim92/src/os_unix.c:6281:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6283:9: branch_false: ...to here
vim92/src/os_unix.c:6285:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6287:9: branch_false: ...to here
vim92/src/os_unix.c:6289:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6291:9: branch_false: ...to here
vim92/src/os_unix.c:6291:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6293:1: branch_false: ...to here
vim92/src/os_unix.c:6293:1: danger: ‘fd_in[0]’ leaks here
# 6291|       if (pty_slave_fd >= 0)
# 6292|   	close(pty_slave_fd);
# 6293|-> }
# 6294|   
# 6295|       static char_u *

Error: GCC_ANALYZER_WARNING (CWE-775): [#def203]
vim92/src/os_unix.c:6293:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_in[1]’
vim92/src/os_unix.c:5970:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5974:5: branch_false: ...to here
vim92/src/os_unix.c:5985:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5999:12: branch_false: ...to here
vim92/src/os_unix.c:5999:12: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5999:13: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6003:8: branch_false: ...to here
vim92/src/os_unix.c:6277:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6279:9: branch_false: ...to here
vim92/src/os_unix.c:6279:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6281:9: branch_false: ...to here
vim92/src/os_unix.c:6281:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6283:9: branch_false: ...to here
vim92/src/os_unix.c:6285:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6287:9: branch_false: ...to here
vim92/src/os_unix.c:6289:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6291:9: branch_false: ...to here
vim92/src/os_unix.c:6291:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:6293:1: branch_false: ...to here
vim92/src/os_unix.c:6293:1: danger: ‘fd_in[1]’ leaks here
# 6291|       if (pty_slave_fd >= 0)
# 6292|   	close(pty_slave_fd);
# 6293|-> }
# 6294|   
# 6295|       static char_u *

Error: COMPILER_WARNING: [#def204]
vim92/src/popupmenu.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def205]
vim92/src/popupwin.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def206]
vim92/src/profiler.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def207]
vim92/src/pty.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def208]
vim92/src/quickfix.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def209]
vim92/src/regexp.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-909): [#def210]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def211]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def212]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def213]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def214]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def215]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def216]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def217]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def218]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def219]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def220]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def221]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def222]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def223]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def224]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def225]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def226]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def227]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def228]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def229]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def230]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def231]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def232]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def233]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def234]
vim92/src/regexp.c:2109: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 2107|       rex_in_use = rex_in_use_save;
# 2108|       if (rex_in_use)
# 2109|-> 	rex = rex_save;
# 2110|   
# 2111|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def235]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def236]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def237]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def238]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def239]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def240]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def241]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def242]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def243]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def244]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def245]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def246]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def247]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def248]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def249]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def250]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def251]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def252]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def253]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def254]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def255]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def256]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def257]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def258]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def259]
vim92/src/regexp.c:2142: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 2140|       rex_in_use = rex_in_use_save;
# 2141|       if (rex_in_use)
# 2142|-> 	rex = rex_save;
# 2143|   
# 2144|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def260]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def261]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def262]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def263]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def264]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def265]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def266]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def267]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def268]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def269]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def270]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def271]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def272]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def273]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def274]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def275]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def276]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def277]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def278]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def279]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def280]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def281]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def282]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def283]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def284]
vim92/src/regexp.c:3135: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 3133|       rex_in_use = rex_in_use_save;
# 3134|       if (rex_in_use)
# 3135|-> 	rex = rex_save;
# 3136|   
# 3137|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def285]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def286]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def287]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def288]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def289]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def290]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def291]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def292]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def293]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def294]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def295]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def296]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def297]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def298]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def299]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def300]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def301]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def302]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def303]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def304]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def305]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def306]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def307]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def308]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def309]
vim92/src/regexp.c:3270: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 3268|       rex_in_use = rex_in_use_save;
# 3269|       if (rex_in_use)
# 3270|-> 	rex = rex_save;
# 3271|   
# 3272|       return result <= 0 ? 0 : result;

Error: COMPILER_WARNING: [#def310]
vim92/src/register.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def311]
vim92/src/screen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def312]
vim92/src/scriptfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
vim92/src/scriptfile.c:1591:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eap’
vim92/src/scriptfile.c:2088:1: enter_function: entry to ‘do_source’
vim92/src/scriptfile.c:2094:12: call_function: calling ‘do_source_ext’ from ‘do_source’
# 1589|   
# 1590|       // Copy the lines from the buffer into a grow array
# 1591|->     for (curr_lnum = eap->line1; curr_lnum <= eap->line2; curr_lnum++)
# 1592|       {
# 1593|   	line = vim_strsave(ml_get(curr_lnum));

Error: COMPILER_WARNING: [#def314]
vim92/src/search.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def315]
vim92/src/search.c:2955: warning[uninitvar]: Uninitialized variable: vcol
# 2953|   
# 2954|       int col_visible = (curwin->w_p_wrap
# 2955|-> 	    || (vcol >= curwin->w_leftcol
# 2956|   		&& vcol < curwin->w_leftcol + curwin->w_width));
# 2957|       if (!col_visible)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
vim92/src/search.c:4027:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curwin_save’
vim92/src/search.c:3533:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3536:9: branch_false: ...to here
vim92/src/search.c:3536:8: branch_true: following ‘true’ branch...
vim92/src/search.c:3539:17: branch_true: ...to here
vim92/src/search.c:3536:9: branch_true: following ‘true’ branch...
vim92/src/search.c:3541:21: branch_true: ...to here
vim92/src/search.c:3542:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3544:9: branch_false: ...to here
vim92/src/search.c:3549:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3552:23: branch_false: ...to here
vim92/src/search.c:3553:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3561:8: branch_false: ...to here
vim92/src/search.c:3570:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3575:5: branch_false: ...to here
vim92/src/search.c:3584:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3792:1: branch_false: ...to here
vim92/src/search.c:3794:16: branch_false: following ‘false’ branch...
vim92/src/search.c:3812:17: branch_false: ...to here
vim92/src/search.c:3812:16: branch_true: following ‘true’ branch...
vim92/src/search.c:3814:20: branch_true: ...to here
vim92/src/search.c:3814:20: branch_false: following ‘false’ branch...
vim92/src/search.c:3826:25: branch_true: following ‘true’ branch...
vim92/src/search.c:3827:67: branch_true: ...to here
vim92/src/search.c:3826:26: branch_true: following ‘true’ branch...
vim92/src/search.c:3830:21: branch_true: ...to here
vim92/src/search.c:3836:24: branch_false: following ‘false’ branch (when ‘skip_comments == 0’)...
vim92/src/search.c:3877:16: branch_false: ...to here
vim92/src/search.c:3877:16: branch_false: following ‘false’ branch (when ‘action != 5’)...
vim92/src/search.c:3958:21: branch_false: ...to here
vim92/src/search.c:3958:21: branch_false: following ‘false’ branch (when ‘action != 4’)...
vim92/src/search.c:3984:21: branch_false: ...to here
vim92/src/search.c:3984:21: branch_true: following ‘true’ branch (when ‘count <= 0’)...
vim92/src/search.c:3987:20: branch_true: ...to here
vim92/src/search.c:3987:20: branch_true: following ‘true’ branch (when ‘depth == -1’)...
vim92/src/search.c:3987:50: branch_true: ...to here
vim92/src/search.c:3993:25: branch_false: following ‘false’ branch (when ‘action != 1’)...
vim92/src/search.c:4007:25: branch_false: ...to here
vim92/src/search.c:4007:24: branch_false: following ‘false’ branch...
vim92/src/search.c:4013:24: branch_false: ...to here
vim92/src/search.c:4013:24: branch_false: following ‘false’ branch (when ‘action != 3’)...
vim92/src/search.c:4019:24: branch_false: ...to here
vim92/src/search.c:4019:24: branch_true: following ‘true’ branch (when ‘depth == -1’)...
vim92/src/search.c:4023:29: branch_true: ...to here
vim92/src/search.c:4023:28: branch_true: following ‘true’ branch...
vim92/src/search.c:4025:34: branch_true: ...to here
vim92/src/search.c:4025:32: branch_false: following ‘false’ branch...
vim92/src/search.c:4027:34: branch_false: ...to here
vim92/src/search.c:4027:34: danger: dereference of NULL ‘curwin_save’
# 4025|   			    if (!win_valid(curwin_save))
# 4026|   				break;
# 4027|-> 			    if (!GETFILE_SUCCESS(getfile(
# 4028|   					   curwin_save->w_buffer->b_fnum, NULL,
# 4029|   						     NULL, TRUE, lnum, forceit)))

Error: COMPILER_WARNING: [#def317]
vim92/src/session.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def318]
vim92/src/sha256.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def319]
vim92/src/sign.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def320]
vim92/src/socketserver.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def321]
vim92/src/socketserver.c:1031: warning[uninitvar]: Uninitialized variable: port
# 1029|   	channel = channel_open_unix((char *)address, NULL);
# 1030|       else
# 1031|-> 	channel =  channel_open("localhost", port, 1000, NULL);
# 1032|   
# 1033|       if (channel == NULL && !quiet)

Error: COMPILER_WARNING: [#def322]
vim92/src/sound.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def323]
vim92/src/spell.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def324]
vim92/src/spellfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-758): [#def325]
vim92/src/spellfile.c:6039: warning[objectIndex]: The address of variable 'fname' might be accessed at non-zero index.
# 6037|       // default: fnames[0] is output file, following are input files
# 6038|       // When "fcount" is 1 there is only one file.
# 6039|->     innames = &fnames[fcount == 1 ? 0 : 1];
# 6040|       incount = fcount - 1;
# 6041|   

Error: COMPILER_WARNING: [#def326]
vim92/src/spellsuggest.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def327]
vim92/src/strings.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def328]
vim92/src/syntax.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def329]
vim92/src/syntax.c:2686:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘endpos.lnum’
vim92/src/syntax.c:6576:1: enter_function: entry to ‘syn_get_foldlevel’
vim92/src/syntax.c:6583:8: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6584:17: branch_true: ...to here
vim92/src/syntax.c:6583:9: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6586:17: branch_true: ...to here
vim92/src/syntax.c:6583:9: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6590:9: branch_true: ...to here
vim92/src/syntax.c:6590:9: call_function: calling ‘syntax_start’ from ‘syn_get_foldlevel’
# 2684|   		   &(sip->si_flags), &end_endpos, &end_idx, sip->si_extmatch);
# 2685|   
# 2686|->     if (endpos.lnum == 0)
# 2687|       {
# 2688|   	// No end pattern matched.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def330]
vim92/src/syntax.c:2709:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘end_endpos’
vim92/src/syntax.c:6576:1: enter_function: entry to ‘syn_get_foldlevel’
vim92/src/syntax.c:6583:8: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6584:17: branch_true: ...to here
vim92/src/syntax.c:6583:9: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6586:17: branch_true: ...to here
vim92/src/syntax.c:6583:9: branch_true: following ‘true’ branch...
vim92/src/syntax.c:6590:9: branch_true: ...to here
vim92/src/syntax.c:6590:9: call_function: calling ‘syntax_start’ from ‘syn_get_foldlevel’
# 2707|   	sip->si_m_endpos = endpos;
# 2708|   	sip->si_h_endpos = hl_endpos;
# 2709|-> 	sip->si_eoe_pos = end_endpos;
# 2710|   	sip->si_ends = TRUE;
# 2711|   	sip->si_end_idx = end_idx;

Error: COMPILER_WARNING: [#def331]
vim92/src/tabpanel.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def332]
vim92/src/tag.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def333]
vim92/src/term.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def334]
vim92/src/terminal.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def335]
vim92/src/testing.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def336]
vim92/src/textformat.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
vim92/src/textformat.c:522:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘flags’
vim92/src/textformat.c:941:1: enter_function: entry to ‘op_formatexpr’
vim92/src/textformat.c:947:9: call_function: calling ‘fex_format’ from ‘op_formatexpr’
vim92/src/textformat.c:947:9: return_function: returning to ‘op_formatexpr’ from ‘fex_format’
vim92/src/textformat.c:947:8: branch_true: following ‘true’ branch...
vim92/src/textformat.c:950:9: branch_true: ...to here
vim92/src/textformat.c:950:9: call_function: calling ‘op_format’ from ‘op_formatexpr’
#  520|   
#  521|       return (*skipwhite(ptr + *leader_len) == NUL
#  522|-> 	    || (*leader_len > 0 && *flags == COM_END)
#  523|   	    || startPS(lnum, NUL, FALSE));
#  524|   }

Error: COMPILER_WARNING: [#def338]
vim92/src/textobject.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def339]
vim92/src/textprop.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def340]
vim92/src/textprop.c:3078:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘props’
vim92/src/textprop.c:3056:1: enter_function: entry to ‘adjust_props_for_split’
vim92/src/textprop.c:3069:8: branch_true: following ‘true’ branch...
vim92/src/textprop.c:3073:13: branch_true: ...to here
vim92/src/textprop.c:3073:13: call_function: calling ‘get_text_props’ from ‘adjust_props_for_split’
vim92/src/textprop.c:3073:13: return_function: returning to ‘adjust_props_for_split’ from ‘get_text_props’
vim92/src/textprop.c:3078:25: danger: use of uninitialized value ‘props’ here
# 3076|   
# 3077|       // count_ptr points to the prop_count field in the memline.
# 3078|->     char_u *count_ptr = props - PROP_COUNT_SIZE;
# 3079|   
# 3080|       // Keep the relevant ones in the first line, reducing the length if needed.

Error: COMPILER_WARNING: [#def341]
vim92/src/time.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def342]
vim92/src/tuple.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def343]
vim92/src/typval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def344]
vim92/src/ui.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def345]
vim92/src/ui.c:994:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘0’
vim92/src/ui.c:931:8: branch_false: following ‘false’ branch...
vim92/src/ui.c:939:9: branch_false: ...to here
vim92/src/ui.c:961:19: branch_true: following ‘true’ branch (when ‘try != 100’)...
vim92/src/ui.c:963:35: branch_true: ...to here
vim92/src/ui.c:971:12: branch_false: following ‘false’ branch (when ‘len <= 0’)...
vim92/src/ui.c:978:21: branch_false: ...to here
vim92/src/ui.c:978:13: branch_false: following ‘false’ branch...
vim92/src/ui.c:984:13: branch_false: ...to here
vim92/src/ui.c:984:12: branch_true: following ‘true’ branch...
vim92/src/ui.c:984:37: branch_true: ...to here
vim92/src/ui.c:984:13: branch_true: following ‘true’ branch...
vim92/src/ui.c:994:13: release_resource: first ‘close’ here
vim92/src/ui.c:1001:12: branch_false: following ‘false’ branch (when ‘exit_on_error != 0’)...
vim92/src/ui.c:961:30: branch_false: ...to here
vim92/src/ui.c:961:19: branch_true: following ‘true’ branch (when ‘try != 100’)...
vim92/src/ui.c:963:35: branch_true: ...to here
vim92/src/ui.c:971:12: branch_false: following ‘false’ branch (when ‘len <= 0’)...
vim92/src/ui.c:978:21: branch_false: ...to here
vim92/src/ui.c:978:13: branch_false: following ‘false’ branch...
vim92/src/ui.c:984:13: branch_false: ...to here
vim92/src/ui.c:984:12: branch_true: following ‘true’ branch...
vim92/src/ui.c:984:37: branch_true: ...to here
vim92/src/ui.c:984:13: branch_true: following ‘true’ branch...
vim92/src/ui.c:994:13: danger: second ‘close’ here; first ‘close’ was at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  992|   #  ifdef HAVE_DUP
#  993|   	    // Use stderr for stdin, also works for shell commands.
#  994|-> 	    close(0);
#  995|   	    vim_ignored = dup(2);
#  996|   #  else

Error: COMPILER_WARNING: [#def346]
vim92/src/undo.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def347]
vim92/src/usercmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def348]
vim92/src/userfunc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def349]
vim92/src/userfunc.c:535: error[ctunullpointer]: Null pointer dereference: argtypes
#  533|   
#  534|       ga_init2(&fp->uf_type_list, sizeof(type_T *), 10);
#  535|->     if (argtypes->ga_len > 0)
#  536|       {
#  537|   	// When "varargs" is set the last name/type goes into uf_va_name

Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
vim92/src/userfunc.c:2386:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
vim92/src/userfunc.c:7571:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7577:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7581:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7584:8: branch_false: ...to here
vim92/src/userfunc.c:7584:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7586:17: branch_true: ...to here
vim92/src/userfunc.c:7586:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7586:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7587:14: call_function: calling ‘find_func’ from ‘set_ref_in_func’
# 2384|       {
# 2385|   	// Find script-local function before global one.
# 2386|-> 	if (in_vim9script() && eval_isnamec1(*name)
# 2387|   					   && (name[1] != ':' || *name == 's'))
# 2388|   	{

Error: GCC_ANALYZER_WARNING (CWE-688): [#def351]
vim92/src/userfunc.c:2394:32: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
vim92/src/userfunc.c:7571:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7577:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7581:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7584:8: branch_false: ...to here
vim92/src/userfunc.c:7584:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7586:17: branch_true: ...to here
vim92/src/userfunc.c:7586:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7586:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7587:14: call_function: calling ‘find_func’ from ‘set_ref_in_func’
# 2392|   		return func;
# 2393|   	}
# 2394|-> 	if (in_vim9script() && STRNCMP(name, "<SNR>", 5) == 0)
# 2395|   	{
# 2396|   	    char_u  *p = name + 5;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def352]
vim92/src/userfunc.c:2413:33: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
vim92/src/userfunc.c:7571:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7577:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7581:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7584:8: branch_false: ...to here
vim92/src/userfunc.c:7584:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7586:17: branch_true: ...to here
vim92/src/userfunc.c:7586:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7586:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7587:14: call_function: calling ‘find_func’ from ‘set_ref_in_func’
# 2411|       {
# 2412|   	hi = hash_find(&func_hashtab,
# 2413|-> 				STRNCMP(name, "g:", 2) == 0 ? name + 2 : name);
# 2414|   	if (!HASHITEM_EMPTY(hi))
# 2415|   	    return HI2UF(hi);

Error: CPPCHECK_WARNING (CWE-457): [#def353]
vim92/src/userfunc.c:3200: error[legacyUninitvar]: Uninitialized variable: def_rettv
# 3198|   	// Note: the values are copied directly to avoid alloc/free.
# 3199|   	// "argvars" must have VAR_FIXED for v_lock.
# 3200|-> 	v->di_tv = isdefault ? def_rettv : argvars[i];
# 3201|   	v->di_tv.v_lock = VAR_FIXED;
# 3202|   

Error: CPPCHECK_WARNING (CWE-562): [#def354]
vim92/src/userfunc.c:4037: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 4035|   		// make a copy of the type with the correction.
# 4036|   		check_type = *funcexe->fe_check_type;
# 4037|-> 		funcexe->fe_check_type = &check_type;
# 4038|   		check_type.tt_args = check_type_args;
# 4039|   		CLEAR_FIELD(check_type_args);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
vim92/src/userfunc.c:6060:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
vim92/src/userfunc.c:7530:1: enter_function: entry to ‘set_ref_in_functions’
vim92/src/userfunc.c:7537:38: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7539:12: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7543:16: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7544:46: branch_true: ...to here
vim92/src/userfunc.c:7544:46: call_function: calling ‘set_ref_in_func’ from ‘set_ref_in_functions’
vim92/src/userfunc.c:7544:46: return_function: returning to ‘set_ref_in_functions’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7543:17: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7537:60: branch_false: ...to here
vim92/src/userfunc.c:7537:38: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7539:12: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7543:16: branch_true: following ‘true’ branch...
vim92/src/userfunc.c:7544:46: branch_true: ...to here
vim92/src/userfunc.c:7544:46: call_function: calling ‘set_ref_in_func’ from ‘set_ref_in_functions’
# 6058|       // Use MB_STRICMP() because in Turkish comparing the "I" may not work with
# 6059|       // the standard library function.
# 6060|->     if (p[0] == '<' && (MB_STRNICMP(p + 1, "SID>", 4) == 0
# 6061|   				       || MB_STRNICMP(p + 1, "SNR>", 4) == 0))
# 6062|   	return 5;

Error: COMPILER_WARNING: [#def356]
vim92/src/version.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def357]
vim92/src/vim9class.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def358]
vim92/src/vim9cmds.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def359]
vim92/src/vim9compile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def360]
vim92/src/vim9execute.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-562): [#def361]
vim92/src/vim9execute.c:6897: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 6895|       // Store the execution context in funccal, used by invoke_all_defer().
# 6896|       if (funccal != NULL)
# 6897|-> 	funccal->fc_ectx = &ectx;
# 6898|   
# 6899|       // Following errors are in the function, not the caller.

Error: COMPILER_WARNING: [#def362]
vim92/src/vim9expr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def363]
vim92/src/vim9generics.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def364]
vim92/src/vim9instr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def365]
vim92/src/vim9instr.c:503: warning[nullPointer]: Possible null pointer dereference: type1
#  501|   {
#  502|       isntype_T	isntype = ISN_DROP;
#  503|->     vartype_T	vartype1 = tv1 != NULL ? tv1->v_type : type1->tt_type;
#  504|       vartype_T	vartype2 = tv2 != NULL ? tv2->v_type : type2->tt_type;
#  505|   

Error: CPPCHECK_WARNING (CWE-476): [#def366]
vim92/src/vim9instr.c:504: warning[nullPointer]: Possible null pointer dereference: type2
#  502|       isntype_T	isntype = ISN_DROP;
#  503|       vartype_T	vartype1 = tv1 != NULL ? tv1->v_type : type1->tt_type;
#  504|->     vartype_T	vartype2 = tv2 != NULL ? tv2->v_type : type2->tt_type;
#  505|   
#  506|       if (vartype1 == VAR_CLASS || vartype1 == VAR_TYPEALIAS)

Error: COMPILER_WARNING: [#def367]
vim92/src/vim9script.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def368]
vim92/src/vim9type.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def369]
vim92/src/viminfo.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def370]
vim92/src/viminfo.c:662: warning[uninitvar]: Uninitialized variable: p
#  660|       else
#  661|   	len = 0; // for picky compilers
#  662|->     if (p != NULL)
#  663|       {
#  664|   	viminfo_history[type][idx].time_set = vp[1].bv_nr;

Error: COMPILER_WARNING: [#def371]
vim92/src/wayland.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def372]
vim92/src/window.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def373]
vim92/src/xdiff/xdiffi.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def374]
vim92/src/xdiff/xemit.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def375]
vim92/src/xdiff/xhistogram.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def376]
vim92/src/xdiff/xpatience.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def377]
vim92/src/xdiff/xprepare.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def378]
vim92/src/xdiff/xutils.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def379]
vim92/src/xxd/xxd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-219.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namevim-9.2.530-1.fc45
store-results-to/tmp/tmpk9_8wad3/vim-9.2.530-1.fc45.tar.xz
time-created2026-06-01 17:55:02
time-finished2026-06-01 18:41:16
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpk9_8wad3/vim-9.2.530-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpk9_8wad3/vim-9.2.530-1.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9