vim-9.2.240-1.fc44

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/gui_gtk_gresources.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

Error: COMPILER_WARNING: [#def13]
vim92/src/auto/wayland/primary-selection-unstable-v1.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
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: [#def19]
vim92/src/blob.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
vim92/src/channel.c:2507:24: warning[-Wanalyzer-null-argument]: use of NULL ‘reader.js_buf’ where non-null expected
vim92/src/channel.c:2563:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2576:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2576:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2582:8: branch_true: following ‘true’ branch...
vim92/src/channel.c:2584:18: branch_true: ...to here
vim92/src/channel.c:2584:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
# 2505|   
# 2506|       // We find the end once, to avoid calling strlen() many times.
# 2507|->     jsbuf_len = (int_u)STRLEN(reader->js_buf);
# 2508|       reader->js_end = reader->js_buf + jsbuf_len;
# 2509|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
vim92/src/channel.c:2650:25: warning[-Wanalyzer-null-argument]: use of NULL ‘reader.js_buf’ where non-null expected
vim92/src/channel.c:2563:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2576:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2576:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2582:8: branch_true: following ‘true’ branch...
vim92/src/channel.c:2584:18: branch_true: ...to here
vim92/src/channel.c:2584:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
vim92/src/channel.c:2584:18: return_function: returning to ‘channel_parse_json’ from ‘channel_process_lspdap_http_hdr’
vim92/src/channel.c:2590:8: branch_false: following ‘false’ branch...
vim92/src/channel.c:2648:13: branch_false: ...to here
vim92/src/channel.c:2648:13: branch_true: following ‘true’ branch (when ‘status == 2’)...
vim92/src/channel.c:2650:25: branch_true: ...to here
vim92/src/channel.c:2650:25: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2650:25: danger: argument 1 (‘reader.js_buf’) NULL where non-null expected
# 2648|       else if (status == MAYBE)
# 2649|       {
# 2650|-> 	size_t buflen = STRLEN(reader.js_buf);
# 2651|   
# 2652|   	if (chanpart->ch_wait_len < buflen)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
vim92/src/channel.c:2708:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reader.js_buf’
vim92/src/channel.c:2563:1: enter_function: entry to ‘channel_parse_json’
vim92/src/channel.c:2576:21: call_function: calling ‘channel_get’ from ‘channel_parse_json’
vim92/src/channel.c:2576:21: return_function: returning to ‘channel_parse_json’ from ‘channel_get’
vim92/src/channel.c:2582:8: branch_true: following ‘true’ branch...
vim92/src/channel.c:2584:18: branch_true: ...to here
vim92/src/channel.c:2584:18: call_function: calling ‘channel_process_lspdap_http_hdr’ from ‘channel_parse_json’
vim92/src/channel.c:2584:18: return_function: returning to ‘channel_parse_json’ from ‘channel_process_lspdap_http_hdr’
vim92/src/channel.c:2590:8: branch_false: following ‘false’ branch...
vim92/src/channel.c:2648:13: branch_false: ...to here
vim92/src/channel.c:2648:13: branch_true: following ‘true’ branch (when ‘status == 2’)...
vim92/src/channel.c:2650:25: branch_true: ...to here
vim92/src/channel.c:2650:25: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2702:8: branch_false: following ‘false’ branch (when ‘status != 0’)...
vim92/src/channel.c:2708:14: branch_false: ...to here
vim92/src/channel.c:2708:14: release_memory: ‘reader.js_buf’ is NULL
vim92/src/channel.c:2708:14: danger: dereference of NULL ‘reader.js_buf + (sizetype)reader.js_used’
# 2706|   	chanpart->ch_wait_len = 0;
# 2707|       }
# 2708|->     else if (reader.js_buf[reader.js_used] != NUL)
# 2709|       {
# 2710|   	// Put the unread part back into the channel.

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

Error: CPPCHECK_WARNING (CWE-457): [#def29]
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: [#def30]
vim92/src/cindent.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-909): [#def31]
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): [#def32]
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: [#def33]
vim92/src/clientserver.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def34]
vim92/src/clientserver.c:962:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘w’
vim92/src/clientserver.c:889:8: branch_false: following ‘false’ branch...
vim92/src/clientserver.c:893:8: branch_false: following ‘false’ branch...
vim92/src/clientserver.c:896:9: branch_false: ...to here
vim92/src/clientserver.c:901:8: branch_false: following ‘false’ branch...
vim92/src/clientserver.c:903:12: branch_false: ...to here
vim92/src/clientserver.c:908:8: branch_false: following ‘false’ branch...
vim92/src/clientserver.c:914:9: branch_false: ...to here
vim92/src/clientserver.c:914:8: branch_false: following ‘false’ branch...
vim92/src/clientserver.c:940:5: branch_false: ...to here
vim92/src/clientserver.c:942:8: branch_true: following ‘true’ branch...
vim92/src/clientserver.c:953:17: branch_true: ...to here
vim92/src/clientserver.c:954:12: branch_true: following ‘true’ branch...
vim92/src/clientserver.c:961:16: branch_true: following ‘true’ branch...
vim92/src/clientserver.c:962:17: branch_true: ...to here
vim92/src/clientserver.c:962:17: danger: use of uninitialized value ‘w’ here
#  960|   #  ifdef FEAT_X11
#  961|   	    if (clientserver_method == CLIENTSERVER_METHOD_X11)
#  962|-> 		sprintf((char *)str, PRINTF_HEX_LONG_U, (long_u)w);
#  963|   #  endif
#  964|   #  ifdef FEAT_SOCKETSERVER

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
vim92/src/clipboard.c:317:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cbd’
vim92/src/clipboard.c:3170:1: enter_function: entry to ‘vwl_data_source_listener_event_cancelled’
vim92/src/clipboard.c:3175:32: call_function: inlined call to ‘clip_wl_get_cbd_from_selection’ from ‘vwl_data_source_listener_event_cancelled’
vim92/src/clipboard.c:3177:5: call_function: calling ‘clip_lose_selection’ from ‘vwl_data_source_listener_event_cancelled’
#  315|   {
#  316|   # ifdef FEAT_X11
#  317|->     int	    was_owned = cbd->owned;
#  318|   # endif
#  319|       int     visual_selection = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
vim92/src/clipboard.c:2812:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:2882:1: enter_function: entry to ‘clip_reset_wayland’
vim92/src/clipboard.c:2886:8: branch_false: following ‘false’ branch...
vim92/src/clipboard.c:2887:16: branch_false: ...to here
vim92/src/clipboard.c:2887:16: call_function: calling ‘clip_init_wayland’ from ‘clip_reset_wayland’
# 2810|   	clip_wl.regular.requires_focus = true;
# 2811|       if (clip_wl.primary.available
# 2812|-> 	    && clip_wl.primary.manager->protocol == VWL_DATA_PROTOCOL_PRIMARY
# 2813|   	    && clip_wl_focus_stealing_available())
# 2814|   	clip_wl.primary.requires_focus = true;

Error: CPPCHECK_WARNING (CWE-457): [#def38]
vim92/src/clipboard.c:2933: error[uninitvar]: Uninitialized variable: tv
# 2931|       while (poll(&pfd, 1, p_wtm) > 0)
# 2932|   #  else
# 2933|->     while (tv.tv_sec = p_wtm / 1000, tv.tv_usec = (p_wtm % 1000) * 1000,
# 2934|   	    select(fd + 1, &rfds, NULL, NULL, &tv) > 0)
# 2935|   #  endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
vim92/src/clipboard.c:3024:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:3016:1: enter_function: entry to ‘clip_wl_request_selection’
vim92/src/clipboard.c:3018:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_request_selection’
vim92/src/clipboard.c:3024:10: danger: dereference of NULL ‘<unknown>’
# 3022|       const char		*chosen_mime = NULL;
# 3023|   
# 3024|->     if (!sel->available)
# 3025|   	goto clear;
# 3026|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
vim92/src/clipboard.c:3207:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:3202:1: enter_function: entry to ‘clip_wl_own_selection’
vim92/src/clipboard.c:3204:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_own_selection’
vim92/src/clipboard.c:3205:36: call_function: inlined call to ‘clip_wl_get_selection_type’ from ‘clip_wl_own_selection’
vim92/src/clipboard.c:3207:10: danger: dereference of NULL ‘<unknown>’
# 3205|       wayland_selection_T sel_type = clip_wl_get_selection_type(sel);
# 3206|   
# 3207|->     if (!sel->available || vwl_connection_roundtrip(wayland_ct) == FAIL)
# 3208|   	return FAIL;
# 3209|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
vim92/src/clipboard.c:3273:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/clipboard.c:3269:1: enter_function: entry to ‘clip_wl_lose_selection’
vim92/src/clipboard.c:3271:32: call_function: inlined call to ‘clip_wl_get_selection_from_cbd’ from ‘clip_wl_lose_selection’
vim92/src/clipboard.c:3273:10: danger: dereference of NULL ‘<unknown>’
# 3271|       clip_wl_selection_T *sel = clip_wl_get_selection_from_cbd(cbd);
# 3272|   
# 3273|->     if (!sel->available)
# 3274|   	return;
# 3275|   

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
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: [#def46]
vim92/src/crypt.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def51]
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: [#def52]
vim92/src/digraph.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def59]
vim92/src/evalfunc.c:4815:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘save_ga.ga_len’
vim92/src/evalfunc.c:4738:13: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4747:15: branch_false: ...to here
vim92/src/evalfunc.c:4748:12: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4752:17: branch_false: ...to here
vim92/src/evalfunc.c:4773:8: branch_false: following ‘false’ branch...
vim92/src/evalfunc.c:4775:5: branch_false: ...to here
vim92/src/evalfunc.c:4784:8: branch_true: following ‘true’ branch (when ‘cmd’ is non-NULL)...
vim92/src/evalfunc.c:4785:9: branch_true: ...to here
vim92/src/evalfunc.c:4814:8: branch_true: following ‘true’ branch (when ‘save_redir_execute != 0’)...
vim92/src/evalfunc.c:4815:9: branch_true: ...to here
vim92/src/evalfunc.c:4815:9: danger: use of uninitialized value ‘save_ga.ga_len’ here
# 4813|       redir_execute = save_redir_execute;
# 4814|       if (redir_execute)
# 4815|-> 	redir_execute_ga = save_ga;
# 4816|       redir_off = save_redir_off;
# 4817|   

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
vim92/src/ex_cmds.c:3133:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldwin’
vim92/src/ex_cmds.c:2795:27: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:2798:9: branch_false: ...to here
vim92/src/ex_cmds.c:2798:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:2802:8: branch_false: ...to here
vim92/src/ex_cmds.c:2802:8: branch_false: following ‘false’ branch (when ‘eap’ is NULL)...
vim92/src/ex_cmds.c:2804:5: branch_false: ...to here
vim92/src/ex_cmds.c:2808:12: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:2875:23: branch_false: ...to here
vim92/src/ex_cmds.c:2896:8: branch_false: following ‘false’ branch (when ‘oldwin’ is NULL)...
vim92/src/ex_cmds.c:2896:8: branch_false: ...to here
vim92/src/ex_cmds.c:2931:8: branch_true: following ‘true’ branch (when ‘other_file != 0’)...
vim92/src/ex_cmds.c:2933:35: branch_true: ...to here
vim92/src/ex_cmds.c:2981:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
vim92/src/ex_cmds.c:2985:13: branch_false: ...to here
vim92/src/ex_cmds.c:2985:12: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:2996:19: branch_false: ...to here
vim92/src/ex_cmds.c:3034:12: branch_true: following ‘true’ branch...
vim92/src/ex_cmds.c:3037:25: branch_true: ...to here
vim92/src/ex_cmds.c:3043:13: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3046:13: branch_false: ...to here
vim92/src/ex_cmds.c:3047:13: release_memory: ‘oldwin’ is NULL
vim92/src/ex_cmds.c:3059:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3061:13: branch_false: ...to here
vim92/src/ex_cmds.c:3068:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3076:17: branch_false: ...to here
vim92/src/ex_cmds.c:3076:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3083:17: branch_false: ...to here
vim92/src/ex_cmds.c:3083:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3087:30: branch_false: ...to here
vim92/src/ex_cmds.c:3120:20: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:3127:21: branch_false: ...to here
vim92/src/ex_cmds.c:3127:20: branch_true: following ‘true’ branch...
vim92/src/ex_cmds.c:3131:24: branch_true: ...to here
vim92/src/ex_cmds.c:3133:24: branch_true: following ‘true’ branch...
vim92/src/ex_cmds.c:3133:54: branch_true: ...to here
vim92/src/ex_cmds.c:3133:54: danger: dereference of NULL ‘oldwin’
# 3131|   		    if (did_decrement && buf_valid(was_curbuf))
# 3132|   			++was_curbuf->b_nwindows;
# 3133|-> 		    if (win_valid_any_tab(oldwin) && oldwin->w_buffer == NULL)
# 3134|   			oldwin->w_buffer = was_curbuf;
# 3135|   		    auto_buf = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
vim92/src/ex_cmds.c:4358:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub’
vim92/src/ex_cmds.c:4143:13: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4209:9: branch_false: ...to here
vim92/src/ex_cmds.c:4321:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4327:10: branch_false: ...to here
vim92/src/ex_cmds.c:4335:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4344:9: branch_false: ...to here
vim92/src/ex_cmds.c:4344:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4346:13: branch_false: ...to here
vim92/src/ex_cmds.c:4346:13: branch_false: following ‘false’ branch...
vim92/src/ex_cmds.c:4358:9: branch_false: ...to here
vim92/src/ex_cmds.c:4358:9: danger: dereference of NULL ‘sub’
# 4356|        * again.
# 4357|        */
# 4358|->     if (sub[0] == '\\' && sub[1] == '=')
# 4359|       {
# 4360|   	p = vim_strsave(sub);

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
vim92/src/ex_cmds2.c:645:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tp’
vim92/src/ex_cmds2.c:516:8: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:516:9: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:543:9: branch_false: ...to here
vim92/src/ex_cmds2.c:571:12: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:606:13: branch_false: ...to here
vim92/src/ex_cmds2.c:609:16: branch_true: following ‘true’ branch...
vim92/src/ex_cmds2.c:611:16: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:629:21: branch_false: ...to here
vim92/src/ex_cmds2.c:629:21: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:639:21: branch_false: ...to here
vim92/src/ex_cmds2.c:639:21: branch_true: following ‘true’ branch...
vim92/src/ex_cmds2.c:642:22: branch_true: ...to here
vim92/src/ex_cmds2.c:642:20: branch_false: following ‘false’ branch...
vim92/src/ex_cmds2.c:644:17: branch_false: ...to here
vim92/src/ex_cmds2.c:645:17: danger: dereference of NULL ‘tp’
#  643|   		    break;
#  644|   		goto_tabpage_tp(tp, TRUE, TRUE);
#  645|-> 		tp = tp->tp_next;
#  646|   	    }
#  647|   	    else if (eap->cmdidx == CMD_bufdo)

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

Error: CPPCHECK_WARNING (CWE-786): [#def68]
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): [#def69]
vim92/src/ex_docmd.c:7294: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 7292|   	    // Edit the directory.
# 7293|   	    if (*eap->arg == NUL || !mch_isdir(eap->arg))
# 7294|-> 		eap->arg = dot_path;
# 7295|   	}
# 7296|   	else

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
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: [#def72]
vim92/src/ex_getln.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
vim92/src/gui.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
vim92/src/gui.c:5005:1: enter_function: entry to ‘ex_gui’
vim92/src/gui.c:5021:8: branch_true: following ‘true’ branch...
vim92/src/gui.c:5032:9: branch_true: ...to here
vim92/src/gui.c:5038:13: call_function: calling ‘gui_start’ from ‘ex_gui’
#  266|       {
#  267|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  268|-> 	return;
#  269|       }
#  270|       else if (pid > 0)	    // Parent

Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
vim92/src/gui.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
vim92/src/gui.c:5005:1: enter_function: entry to ‘ex_gui’
vim92/src/gui.c:5021:8: branch_true: following ‘true’ branch...
vim92/src/gui.c:5032:9: branch_true: ...to here
vim92/src/gui.c:5038:13: call_function: calling ‘gui_start’ from ‘ex_gui’
#  266|       {
#  267|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  268|-> 	return;
#  269|       }
#  270|       else if (pid > 0)	    // Parent

Error: CPPCHECK_WARNING (CWE-457): [#def84]
vim92/src/gui.c:2348: warning[uninitvar]: Uninitialized variable: *s
# 2346|   
# 2347|   #ifdef FEAT_SIGN_ICONS
# 2348|->     if (*s == SIGN_BYTE
# 2349|   # ifdef FEAT_NETBEANS_INTG
# 2350|   	  || *s == MULTISIGN_BYTE

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-131): [#def93]
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: [#def94]
vim92/src/highlight.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

Error: COMPILER_WARNING: [#def97]
vim92/src/if_lua.c:218:11: warning: ‘luaL_openlibs’ redefined
#  218 | #  define luaL_openlibs dll_luaL_openlibs
#      |           ^~~~~~~~~~~~~
vim92/src/if_lua.c:16: included_from: Included from here.
/usr/include/lualib.h:62:9: note: this is the location of the previous definition
#   62 | #define luaL_openlibs(L)        luaL_openselectedlibs(L, ~0, 0)
#      |         ^~~~~~~~~~~~~
#  216|   #  define luaopen_package dll_luaopen_package
#  217|   #  define luaopen_debug dll_luaopen_debug
#  218|-> #  define luaL_openlibs dll_luaL_openlibs
#  219|   
#  220|   // lauxlib

Error: COMPILER_WARNING: [#def98]
vim92/src/if_lua.c:218:11: warning[warning]: ‘luaL_openlibs’ redefined
#  216|   #  define luaopen_package dll_luaopen_package
#  217|   #  define luaopen_debug dll_luaopen_debug
#  218|-> #  define luaL_openlibs dll_luaL_openlibs
#  219|   
#  220|   // lauxlib

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-562): [#def109]
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): [#def110]
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: [#def111]
vim92/src/if_python3.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-787): [#def120]
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): [#def121]
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): [#def122]
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: [#def123]
vim92/src/libvterm/src/mouse.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def131]
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): [#def132]
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: [#def133]
vim92/src/list.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
vim92/src/list.c:584:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
vim92/src/list.c:2568:1: enter_function: entry to ‘list_filter_map’
vim92/src/list.c:2585:8: branch_false: following ‘false’ branch (when ‘filtermap != 2’)...
vim92/src/list.c:2590:8: branch_false: ...to here
vim92/src/list.c:2590:8: branch_false: following ‘false’ branch (when ‘l’ is non-NULL)...
vim92/src/list.c:2590:9: branch_false: ...to here
vim92/src/list.c:2596:8: branch_false: following ‘false’ branch (when ‘filtermap != 2’)...
vim92/src/list.c:2603:5: branch_false: ...to here
vim92/src/list.c:2611:8: branch_true: following ‘true’ branch...
vim92/src/list.c:2613:25: branch_true: ...to here
vim92/src/list.c:2627:23: branch_true: following ‘true’ branch (when ‘idx < len’)...
vim92/src/list.c:2631:13: branch_true: ...to here
vim92/src/list.c:2635:17: call_function: calling ‘filter_map_one’ from ‘list_filter_map’
vim92/src/list.c:2635:17: return_function: returning to ‘list_filter_map’ from ‘filter_map_one’
vim92/src/list.c:2635:16: branch_false: following ‘false’ branch...
vim92/src/list.c:2637:17: branch_false: ...to here
vim92/src/list.c:2637:16: branch_false: following ‘false’ branch...
vim92/src/list.c:2642:16: branch_false: ...to here
vim92/src/list.c:2642:16: branch_true: following ‘true’ branch (when ‘filtermap != 3’)...
vim92/src/list.c:2644:20: branch_true: ...to here
vim92/src/list.c:2644:20: branch_true: following ‘true’ branch (when ‘filtermap != 0’)...
vim92/src/list.c:2646:25: branch_true: ...to here
vim92/src/list.c:2646:24: branch_false: following ‘false’ branch...
vim92/src/list.c:2656:25: branch_false: ...to here
vim92/src/list.c:2656:25: branch_false: following ‘false’ branch (when ‘filtermap != 1’)...
vim92/src/list.c:2656:25: branch_false: ...to here
vim92/src/list.c:2656:25: call_function: calling ‘list_append_tv_move’ from ‘list_filter_map’
#  582|   list_append(list_T *l, listitem_T *item)
#  583|   {
#  584|->     CHECK_LIST_MATERIALIZE(l);
#  585|       if (l->lv_u.mat.lv_last == NULL)
#  586|       {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def135]
vim92/src/list.c:2162:15: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vim92/src/list.c:2439:1: enter_function: entry to ‘do_sort_uniq’
vim92/src/list.c:2453:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2461:5: branch_false: ...to here
vim92/src/list.c:2465:9: branch_false: following ‘false’ branch...
vim92/src/list.c:2469:5: call_function: inlined call to ‘rettv_list_set’ from ‘do_sort_uniq’
vim92/src/list.c:2475:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2478:9: branch_false: ...to here
vim92/src/list.c:2478:8: branch_false: following ‘false’ branch...
vim92/src/list.c:2481:8: branch_false: ...to here
vim92/src/list.c:2481:8: branch_false: following ‘false’ branch (when ‘sort == 0’)...
vim92/src/list.c:2484:9: branch_false: ...to here
vim92/src/list.c:2484:9: call_function: calling ‘do_uniq’ from ‘do_sort_uniq’
# 2160|       // sort stable.
# 2161|       if (res == 0 && !sortinfo->item_compare_keep_zero)
# 2162|-> 	res = si1->idx > si2->idx ? 1 : -1;
# 2163|   
# 2164|       vim_free(tofree1);

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def140]
vim92/src/map.c:1087: warning[uninitvar]: Uninitialized variable: *mpp
# 1085|   		mpp = &maphash[hash];
# 1086|   	}
# 1087|-> 	while (*mpp != NULL)
# 1088|   	{
# 1089|   	    mp = *mpp;

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
vim92/src/match.c:46:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘grp’
vim92/src/match.c:1370:1: enter_function: entry to ‘ex_match’
vim92/src/match.c:1378:8: branch_true: following ‘true’ branch...
vim92/src/match.c:1379:9: branch_true: ...to here
vim92/src/match.c:1390:8: branch_false: following ‘false’ branch...
vim92/src/match.c:1392:15: branch_false: ...to here
vim92/src/match.c:1399:12: branch_false: following ‘false’ branch...
vim92/src/match.c:1401:13: branch_false: ...to here
vim92/src/match.c:1402:12: branch_false: following ‘false’ branch...
vim92/src/match.c:1409:15: branch_false: ...to here
vim92/src/match.c:1410:12: branch_true: following ‘true’ branch...
vim92/src/match.c:1412:17: branch_true: ...to here
vim92/src/match.c:1412:17: branch_false: following ‘false’ branch...
vim92/src/match.c:1418:17: branch_false: ...to here
vim92/src/match.c:1418:16: branch_false: following ‘false’ branch...
vim92/src/match.c:1426:13: branch_false: ...to here
vim92/src/match.c:1427: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: [#def144]
vim92/src/mbyte.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-835): [#def145]
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): [#def146]
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: [#def147]
vim92/src/memfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def154]
vim92/src/misc2.c:2389:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
vim92/src/misc2.c:2202:21: branch_true: following ‘true’ branch (when ‘round != 3’)...
vim92/src/misc2.c:2212:13: branch_true: ...to here
vim92/src/misc2.c:2218:16: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2220:16: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2220:16: branch_false: ...to here
vim92/src/misc2.c:2228:20: branch_false: following ‘false’ branch...
vim92/src/misc2.c:2389:13: branch_false: ...to here
vim92/src/misc2.c:2389:13: danger: use of uninitialized value ‘p’ here
# 2387|   		}
# 2388|   	    }
# 2389|-> 	    modep = p;
# 2390|   	    if (*modep == ',')
# 2391|   		++modep;

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

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

Error: CPPCHECK_WARNING (CWE-476): [#def157]
vim92/src/move.c:3358: warning[nullPointer]: Possible null pointer dereference: curwin
# 3356|       static pos_T	prev_cursor = {0, 0, 0};
# 3357|   
# 3358|->     if (curwin == prev_curwin && EQUAL_POS(curwin->w_cursor, prev_cursor))
# 3359|   	return;
# 3360|       prev_curwin = curwin;

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
vim92/src/netbeans.c:1214:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/netbeans.c:981:1: enter_function: entry to ‘nb_do_cmd’
vim92/src/netbeans.c:990:24: call_function: calling ‘nb_get_buf’ from ‘nb_do_cmd’
vim92/src/netbeans.c:990:24: return_function: returning to ‘nb_do_cmd’ from ‘nb_get_buf’
vim92/src/netbeans.c:998:8: branch_true: following ‘true’ branch (when ‘func != 0’)...
vim92/src/netbeans.c:1001:13: branch_true: ...to here
vim92/src/netbeans.c:1001:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1012:18: branch_false: ...to here
vim92/src/netbeans.c:1012:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1021:18: branch_false: ...to here
vim92/src/netbeans.c:1021:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1036:18: branch_false: ...to here
vim92/src/netbeans.c:1036:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1059:18: branch_false: ...to here
vim92/src/netbeans.c:1059:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1076:18: branch_false: ...to here
vim92/src/netbeans.c:1076:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
vim92/src/netbeans.c:1130:18: branch_false: ...to here
vim92/src/netbeans.c:1130:17: branch_true: following ‘true’ branch (when the strings are equal)...
vim92/src/netbeans.c:1137:17: branch_true: ...to here
vim92/src/netbeans.c:1141:16: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1148:16: branch_false: ...to here
vim92/src/netbeans.c:1148:16: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1166:23: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1166:23: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1167:20: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1175:17: branch_false: ...to here
vim92/src/netbeans.c:1178:23: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1178:23: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1179:20: branch_false: following ‘false’ branch...
vim92/src/netbeans.c:1187:17: branch_false: ...to here
vim92/src/netbeans.c:1197:24: call_function: calling ‘off2pos’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1197:24: return_function: returning to ‘nb_do_cmd’ from ‘off2pos’
vim92/src/netbeans.c:1200:20: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
vim92/src/netbeans.c:1203:24: branch_true: ...to here
vim92/src/netbeans.c:1203:24: branch_true: following ‘true’ branch (when ‘<unknown> != <unknown>’)...
vim92/src/netbeans.c:1207:25: branch_true: ...to here
vim92/src/netbeans.c:1207:25: call_function: calling ‘nb_partialremove’ from ‘nb_do_cmd’
vim92/src/netbeans.c:1207:25: return_function: returning to ‘nb_do_cmd’ from ‘nb_partialremove’
vim92/src/netbeans.c:1209:28: branch_true: following ‘true’ branch (when ‘<unknown> == <unknown>’)...
vim92/src/netbeans.c:1214:29: branch_true: ...to here
vim92/src/netbeans.c:1214:29: danger: dereference of NULL ‘off2pos(*<unknown>.bufp,  off + count)’
# 1212|   			    // line.  Join the line with the next one, have
# 1213|   			    // the next line deleted below.
# 1214|-> 			    nb_joinlines(first.lnum, next->lnum);
# 1215|   			    del_to_lnum = next->lnum;
# 1216|   			}

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
vim92/src/ops.c:1976:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bd.textcol’
vim92/src/ops.c:3871:1: enter_function: entry to ‘do_pending_operator’
vim92/src/ops.c:3903:9: branch_true: following ‘true’ branch...
vim92/src/ops.c:3907:29: branch_true: ...to here
vim92/src/ops.c:4387:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4398:21: branch_false: ...to here
vim92/src/ops.c:4411: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): [#def163]
vim92/src/ops.c:2222:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘prev_was_comment’
vim92/src/ops.c:3871:1: enter_function: entry to ‘do_pending_operator’
vim92/src/ops.c:3903:9: branch_true: following ‘true’ branch...
vim92/src/ops.c:3907:29: branch_true: ...to here
vim92/src/ops.c:4335:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4337:23: branch_false: ...to here
vim92/src/ops.c:4337:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:4342:23: branch_false: ...to here
vim92/src/ops.c:4342:23: call_function: calling ‘do_join’ from ‘do_pending_operator’
# 2220|   	    // We don't want to remove the comment leader if the
# 2221|   	    // previous line is not a comment.
# 2222|-> 	    if (t > 0 && prev_was_comment)
# 2223|   	    {
# 2224|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def164]
vim92/src/ops.c:2475:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*oap.start_vcol’
vim92/src/ops.c:3345:1: enter_function: entry to ‘cursor_pos_info’
vim92/src/ops.c:3368:8: branch_false: following ‘false’ branch...
vim92/src/ops.c:3378:13: branch_false: ...to here
vim92/src/ops.c:3383:12: branch_true: following ‘true’ branch...
vim92/src/ops.c:3385:17: branch_true: ...to here
vim92/src/ops.c:3395:16: branch_true: following ‘true’ branch...
vim92/src/ops.c:3398:16: branch_false: following ‘false’ branch...
vim92/src/ops.c:3427:35: branch_false: ...to here
vim92/src/ops.c:3430:24: branch_true: following ‘true’ branch...
vim92/src/ops.c:3433:16: branch_true: ...to here
vim92/src/ops.c:3433:16: branch_false: following ‘false’ branch (when ‘byte_count <= last_check’)...
vim92/src/ops.c:3442:17: branch_false: ...to here
vim92/src/ops.c:3442:16: branch_true: following ‘true’ branch...
vim92/src/ops.c:3443:32: branch_true: ...to here
vim92/src/ops.c:3442:17: branch_true: following ‘true’ branch...
vim92/src/ops.c:3452:25: call_function: calling ‘block_prep’ from ‘cursor_pos_info’
# 2473|       prev_pstart = line;
# 2474|       init_chartabsize_arg(&cts, curwin, lnum, bdp->start_vcol, line, line);
# 2475|->     while (cts.cts_vcol < oap->start_vcol && *cts.cts_ptr != NUL)
# 2476|       {
# 2477|   	// Count a tab for what it's worth (if list mode not on)

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
vim92/src/option.c:8832:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:8815:1: enter_function: entry to ‘option_value2string’
vim92/src/option.c:8821:12: call_function: calling ‘get_varp_scope’ from ‘option_value2string’
vim92/src/option.c:8821:12: return_function: returning to ‘option_value2string’ from ‘get_varp_scope’
vim92/src/option.c:8823:8: branch_true: following ‘true’ branch...
vim92/src/option.c:8825:14: branch_true: ...to here
vim92/src/option.c:8827:13: call_function: calling ‘wc_use_keyname’ from ‘option_value2string’
vim92/src/option.c:8827:13: return_function: returning to ‘option_value2string’ from ‘wc_use_keyname’
vim92/src/option.c:8827:12: branch_false: following ‘false’ branch...
vim92/src/option.c:8829:18: branch_false: ...to here
vim92/src/option.c:8829:17: branch_false: following ‘false’ branch...
vim92/src/option.c:8832:13: branch_false: ...to here
vim92/src/option.c:8832:13: danger: dereference of NULL ‘get_varp_scope(opp,  scope)’
# 8830|   	    STRCPY(NameBuff, transchar((int)wc));
# 8831|   	else
# 8832|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8833|       }
# 8834|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
vim92/src/option.c:8832:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
vim92/src/option.c:8622:1: enter_function: entry to ‘ExpandStringSetting’
vim92/src/option.c:8631:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8632:13: branch_false: ...to here
vim92/src/option.c:8631:9: branch_false: following ‘false’ branch...
vim92/src/option.c:8640:20: branch_false: ...to here
vim92/src/option.c:8640:20: call_function: calling ‘get_varp_scope’ from ‘ExpandStringSetting’
vim92/src/option.c:8640:20: return_function: returning to ‘ExpandStringSetting’ from ‘get_varp_scope’
vim92/src/option.c:8652:5: call_function: calling ‘option_value2string’ from ‘ExpandStringSetting’
# 8830|   	    STRCPY(NameBuff, transchar((int)wc));
# 8831|   	else
# 8832|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8833|       }
# 8834|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
vim92/src/option.c:8836:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim92/src/option.c:8815:1: enter_function: entry to ‘option_value2string’
vim92/src/option.c:8821:12: call_function: calling ‘get_varp_scope’ from ‘option_value2string’
vim92/src/option.c:8821:12: return_function: returning to ‘option_value2string’ from ‘get_varp_scope’
vim92/src/option.c:8823:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8836:9: branch_false: ...to here
vim92/src/option.c:8836:9: danger: dereference of NULL ‘get_varp_scope(opp,  scope)’
# 8834|       else    // P_STRING
# 8835|       {
# 8836|-> 	varp = *(char_u **)(varp);
# 8837|   	if (varp == NULL)		    // just in case
# 8838|   	    NameBuff[0] = NUL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
vim92/src/option.c:8836:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
vim92/src/option.c:8622:1: enter_function: entry to ‘ExpandStringSetting’
vim92/src/option.c:8631:8: branch_false: following ‘false’ branch...
vim92/src/option.c:8632:13: branch_false: ...to here
vim92/src/option.c:8631:9: branch_false: following ‘false’ branch...
vim92/src/option.c:8640:20: branch_false: ...to here
vim92/src/option.c:8640:20: call_function: calling ‘get_varp_scope’ from ‘ExpandStringSetting’
vim92/src/option.c:8640:20: return_function: returning to ‘ExpandStringSetting’ from ‘get_varp_scope’
vim92/src/option.c:8652:5: call_function: calling ‘option_value2string’ from ‘ExpandStringSetting’
# 8834|       else    // P_STRING
# 8835|       {
# 8836|-> 	varp = *(char_u **)(varp);
# 8837|   	if (varp == NULL)		    // just in case
# 8838|   	    NameBuff[0] = NUL;

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

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
vim92/src/os_unix.c:5218:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5176:17: branch_false: ...to here
vim92/src/os_unix.c:5176:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5178:13: branch_true: ...to here
vim92/src/os_unix.c:5178:13: call_function: calling ‘reset_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5178:13: return_function: returning to ‘mch_call_shell_fork’ from ‘reset_signals’
vim92/src/os_unix.c:5215:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5217:35: branch_true: ...to here
vim92/src/os_unix.c:5217:35: acquire_resource: opened here
vim92/src/os_unix.c:5218:21: danger: ‘vim_ignored’ leaks here; was opened at [(29)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/28)
# 5216|   		{
# 5217|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 5218|-> 		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 5219|   		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 5220|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
vim92/src/os_unix.c:5219:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5176:17: branch_false: ...to here
vim92/src/os_unix.c:5176:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5178:13: branch_true: ...to here
vim92/src/os_unix.c:5178:13: call_function: calling ‘reset_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5178:13: return_function: returning to ‘mch_call_shell_fork’ from ‘reset_signals’
vim92/src/os_unix.c:5215:20: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5217:35: branch_true: ...to here
vim92/src/os_unix.c:5218:35: acquire_resource: opened here
vim92/src/os_unix.c:5219:21: danger: ‘vim_ignored’ leaks here; was opened at [(29)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/28)
# 5217|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 5218|   		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 5219|-> 		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 5220|   
# 5221|   		    // Don't need this now that we've duplicated it

Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
vim92/src/os_unix.c:5298:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5126:27: branch_true: ...to here
vim92/src/os_unix.c:5127:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5129:31: branch_true: ...to here
vim92/src/os_unix.c:5130:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5136:16: branch_false: ...to here
vim92/src/os_unix.c:5136:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
vim92/src/os_unix.c:5176:17: branch_false: ...to here
vim92/src/os_unix.c:5176:17: branch_true: following ‘true’ branch (when ‘pid == 0’)...
vim92/src/os_unix.c:5178:13: branch_true: ...to here
vim92/src/os_unix.c:5189:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5225:21: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5236:21: branch_true: ...to here
vim92/src/os_unix.c:5292:35: acquire_resource: opened here
vim92/src/os_unix.c:5298:21: danger: ‘vim_ignored’ leaks here; was opened at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
# 5296|   		    close(fd_fromshell[0]);
# 5297|   		    close(1);
# 5298|-> 		    vim_ignored = dup(fd_fromshell[1]);
# 5299|   		    close(fd_fromshell[1]);
# 5300|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
vim92/src/os_unix.c:5894:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[0]’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5126:27: branch_true: ...to here
vim92/src/os_unix.c:5127:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5129:31: branch_true: ...to here
vim92/src/os_unix.c:5130:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5136:16: branch_false: ...to here
vim92/src/os_unix.c:5136:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5151:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5154:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5895:1: branch_false: ...to here
vim92/src/os_unix.c:5894:12: danger: ‘fd_fromshell[0]’ leaks here
# 5892|       vim_free(tofree2);
# 5893|   
# 5894|->     return retval;
# 5895|   }
# 5896|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
vim92/src/os_unix.c:5894:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[1]’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5126:27: branch_true: ...to here
vim92/src/os_unix.c:5127:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5129:31: branch_true: ...to here
vim92/src/os_unix.c:5130:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5136:16: branch_false: ...to here
vim92/src/os_unix.c:5136:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5151:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5154:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5895:1: branch_false: ...to here
vim92/src/os_unix.c:5894:12: danger: ‘fd_fromshell[1]’ leaks here
# 5892|       vim_free(tofree2);
# 5893|   
# 5894|->     return retval;
# 5895|   }
# 5896|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
vim92/src/os_unix.c:5894:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[0]’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5126:27: branch_true: ...to here
vim92/src/os_unix.c:5127:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5129:31: branch_true: ...to here
vim92/src/os_unix.c:5130:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5136:16: branch_false: ...to here
vim92/src/os_unix.c:5136:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5151:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5154:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5895:1: branch_false: ...to here
vim92/src/os_unix.c:5894:12: danger: ‘fd_toshell[0]’ leaks here
# 5892|       vim_free(tofree2);
# 5893|   
# 5894|->     return retval;
# 5895|   }
# 5896|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
vim92/src/os_unix.c:5894:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[1]’
vim92/src/os_unix.c:5068:1: enter_function: entry to ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: call_function: calling ‘unix_build_argv’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5098:9: return_function: returning to ‘mch_call_shell_fork’ from ‘unix_build_argv’
vim92/src/os_unix.c:5098:8: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5106:9: branch_false: ...to here
vim92/src/os_unix.c:5106:8: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5126:27: branch_true: ...to here
vim92/src/os_unix.c:5127:16: branch_true: following ‘true’ branch...
vim92/src/os_unix.c:5129:31: branch_true: ...to here
vim92/src/os_unix.c:5130:20: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5136:16: branch_false: ...to here
vim92/src/os_unix.c:5136:16: branch_false: following ‘false’ branch (when ‘pipe_error == 0’)...
vim92/src/os_unix.c:5147:9: branch_false: ...to here
vim92/src/os_unix.c:5149:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
vim92/src/os_unix.c:5151:13: call_function: inlined call to ‘unblock_signals’ from ‘mch_call_shell_fork’
vim92/src/os_unix.c:5154:16: branch_false: following ‘false’ branch...
vim92/src/os_unix.c:5895:1: branch_false: ...to here
vim92/src/os_unix.c:5894:12: danger: ‘fd_toshell[1]’ leaks here
# 5892|       vim_free(tofree2);
# 5893|   
# 5894|->     return retval;
# 5895|   }
# 5896|   #endif // USE_SYSTEM

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-909): [#def187]
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): [#def188]
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): [#def189]
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): [#def190]
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): [#def191]
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): [#def192]
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): [#def193]
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): [#def194]
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): [#def195]
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): [#def196]
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): [#def197]
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): [#def198]
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): [#def199]
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): [#def200]
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): [#def201]
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): [#def202]
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): [#def203]
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): [#def204]
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): [#def205]
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): [#def206]
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): [#def207]
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): [#def208]
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): [#def209]
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): [#def210]
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): [#def211]
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): [#def212]
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): [#def213]
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): [#def214]
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): [#def215]
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): [#def216]
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): [#def217]
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): [#def218]
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): [#def219]
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): [#def220]
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): [#def221]
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): [#def222]
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): [#def223]
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): [#def224]
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): [#def225]
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): [#def226]
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): [#def227]
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): [#def228]
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): [#def229]
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): [#def230]
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): [#def231]
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): [#def232]
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): [#def233]
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): [#def234]
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): [#def235]
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): [#def236]
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): [#def237]
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): [#def238]
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): [#def239]
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): [#def240]
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): [#def241]
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): [#def242]
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): [#def243]
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): [#def244]
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): [#def245]
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): [#def246]
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): [#def247]
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): [#def248]
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): [#def249]
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): [#def250]
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): [#def251]
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): [#def252]
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): [#def253]
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): [#def254]
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): [#def255]
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): [#def256]
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): [#def257]
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): [#def258]
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): [#def259]
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): [#def260]
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): [#def261]
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): [#def262]
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): [#def263]
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): [#def264]
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): [#def265]
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): [#def266]
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): [#def267]
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): [#def268]
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): [#def269]
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): [#def270]
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): [#def271]
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): [#def272]
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): [#def273]
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): [#def274]
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): [#def275]
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): [#def276]
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): [#def277]
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): [#def278]
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): [#def279]
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): [#def280]
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): [#def281]
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): [#def282]
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): [#def283]
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): [#def284]
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): [#def285]
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): [#def286]
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: [#def287]
vim92/src/register.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
vim92/src/scriptfile.c:1583:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eap’
vim92/src/scriptfile.c:2080:1: enter_function: entry to ‘do_source’
vim92/src/scriptfile.c:2086:12: call_function: calling ‘do_source_ext’ from ‘do_source’
# 1581|   
# 1582|       // Copy the lines from the buffer into a grow array
# 1583|->     for (curr_lnum = eap->line1; curr_lnum <= eap->line2; curr_lnum++)
# 1584|       {
# 1585|   	line = vim_strsave(ml_get(curr_lnum));

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

Error: CPPCHECK_WARNING (CWE-457): [#def292]
vim92/src/search.c:2864: warning[uninitvar]: Uninitialized variable: vcol
# 2862|   
# 2863|       int col_visible = (curwin->w_p_wrap
# 2864|-> 	    || (vcol >= curwin->w_leftcol
# 2865|   		&& vcol < curwin->w_leftcol + curwin->w_width));
# 2866|       if (!col_visible)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def293]
vim92/src/search.c:3936:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curwin_save’
vim92/src/search.c:3442:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3445:9: branch_false: ...to here
vim92/src/search.c:3445:8: branch_true: following ‘true’ branch...
vim92/src/search.c:3448:17: branch_true: ...to here
vim92/src/search.c:3445:9: branch_true: following ‘true’ branch...
vim92/src/search.c:3450:21: branch_true: ...to here
vim92/src/search.c:3451:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3453:9: branch_false: ...to here
vim92/src/search.c:3458:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3461:23: branch_false: ...to here
vim92/src/search.c:3462:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3470:8: branch_false: ...to here
vim92/src/search.c:3479:8: branch_false: following ‘false’ branch...
vim92/src/search.c:3484:5: branch_false: ...to here
vim92/src/search.c:3493:12: branch_false: following ‘false’ branch...
vim92/src/search.c:3701:1: branch_false: ...to here
vim92/src/search.c:3703:16: branch_false: following ‘false’ branch...
vim92/src/search.c:3721:17: branch_false: ...to here
vim92/src/search.c:3721:16: branch_true: following ‘true’ branch...
vim92/src/search.c:3723:20: branch_true: ...to here
vim92/src/search.c:3723:20: branch_false: following ‘false’ branch...
vim92/src/search.c:3735:25: branch_true: following ‘true’ branch...
vim92/src/search.c:3736:67: branch_true: ...to here
vim92/src/search.c:3735:26: branch_true: following ‘true’ branch...
vim92/src/search.c:3739:21: branch_true: ...to here
vim92/src/search.c:3745:24: branch_false: following ‘false’ branch (when ‘skip_comments == 0’)...
vim92/src/search.c:3786:16: branch_false: ...to here
vim92/src/search.c:3786:16: branch_false: following ‘false’ branch (when ‘action != 5’)...
vim92/src/search.c:3867:21: branch_false: ...to here
vim92/src/search.c:3867:21: branch_false: following ‘false’ branch (when ‘action != 4’)...
vim92/src/search.c:3893:21: branch_false: ...to here
vim92/src/search.c:3893:21: branch_true: following ‘true’ branch (when ‘count <= 0’)...
vim92/src/search.c:3896:20: branch_true: ...to here
vim92/src/search.c:3896:20: branch_true: following ‘true’ branch (when ‘depth == -1’)...
vim92/src/search.c:3896:50: branch_true: ...to here
vim92/src/search.c:3902:25: branch_false: following ‘false’ branch (when ‘action != 1’)...
vim92/src/search.c:3916:25: branch_false: ...to here
vim92/src/search.c:3916:24: branch_false: following ‘false’ branch...
vim92/src/search.c:3922:24: branch_false: ...to here
vim92/src/search.c:3922:24: branch_false: following ‘false’ branch (when ‘action != 3’)...
vim92/src/search.c:3928:24: branch_false: ...to here
vim92/src/search.c:3928:24: branch_true: following ‘true’ branch (when ‘depth == -1’)...
vim92/src/search.c:3932:29: branch_true: ...to here
vim92/src/search.c:3932:28: branch_true: following ‘true’ branch...
vim92/src/search.c:3934:34: branch_true: ...to here
vim92/src/search.c:3934:32: branch_false: following ‘false’ branch...
vim92/src/search.c:3936:34: branch_false: ...to here
vim92/src/search.c:3936:34: danger: dereference of NULL ‘curwin_save’
# 3934|   			    if (!win_valid(curwin_save))
# 3935|   				break;
# 3936|-> 			    if (!GETFILE_SUCCESS(getfile(
# 3937|   					   curwin_save->w_buffer->b_fnum, NULL,
# 3938|   						     NULL, TRUE, lnum, forceit)))

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

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def304]
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): [#def305]
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: [#def306]
vim92/src/tabpanel.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
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: [#def313]
vim92/src/textobject.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def319]
vim92/src/ui.c:1004:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘0’
vim92/src/ui.c:941:8: branch_false: following ‘false’ branch...
vim92/src/ui.c:949:9: branch_false: ...to here
vim92/src/ui.c:971:19: branch_true: following ‘true’ branch (when ‘try != 100’)...
vim92/src/ui.c:973:35: branch_true: ...to here
vim92/src/ui.c:981:12: branch_false: following ‘false’ branch (when ‘len <= 0’)...
vim92/src/ui.c:988:21: branch_false: ...to here
vim92/src/ui.c:988:13: branch_false: following ‘false’ branch...
vim92/src/ui.c:994:13: branch_false: ...to here
vim92/src/ui.c:994:12: branch_true: following ‘true’ branch...
vim92/src/ui.c:994:37: branch_true: ...to here
vim92/src/ui.c:994:13: branch_true: following ‘true’ branch...
vim92/src/ui.c:1004:13: release_resource: first ‘close’ here
vim92/src/ui.c:1011:12: branch_false: following ‘false’ branch (when ‘exit_on_error != 0’)...
vim92/src/ui.c:971:30: branch_false: ...to here
vim92/src/ui.c:971:19: branch_true: following ‘true’ branch (when ‘try != 100’)...
vim92/src/ui.c:973:35: branch_true: ...to here
vim92/src/ui.c:981:12: branch_false: following ‘false’ branch (when ‘len <= 0’)...
vim92/src/ui.c:988:21: branch_false: ...to here
vim92/src/ui.c:988:13: branch_false: following ‘false’ branch...
vim92/src/ui.c:994:13: branch_false: ...to here
vim92/src/ui.c:994:12: branch_true: following ‘true’ branch...
vim92/src/ui.c:994:37: branch_true: ...to here
vim92/src/ui.c:994:13: branch_true: following ‘true’ branch...
vim92/src/ui.c:1004:13: danger: second ‘close’ here; first ‘close’ was at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
# 1002|   #  ifdef HAVE_DUP
# 1003|   	    // Use stderr for stdin, also works for shell commands.
# 1004|-> 	    close(0);
# 1005|   	    vim_ignored = dup(2);
# 1006|   #  else

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def322]
vim92/src/usercmd.c:783: error[uninitvar]: Uninitialized variables: &target.shortname, &target.shortnamelen
#  781|       else
#  782|       {
#  783|-> 	entry = (addrtype_T *)bsearch(&target,
#  784|   	    &addr_type_complete_tab,
#  785|   	    ARRAY_LENGTH(addr_type_complete_tab),

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

Error: CPPCHECK_WARNING (CWE-476): [#def324]
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): [#def325]
vim92/src/userfunc.c:2386:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
vim92/src/userfunc.c:7557:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7563:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7567:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7570:8: branch_false: ...to here
vim92/src/userfunc.c:7570:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7572:17: branch_true: ...to here
vim92/src/userfunc.c:7572:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7572:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7573: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): [#def326]
vim92/src/userfunc.c:2394:32: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
vim92/src/userfunc.c:7557:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7563:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7567:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7570:8: branch_false: ...to here
vim92/src/userfunc.c:7570:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7572:17: branch_true: ...to here
vim92/src/userfunc.c:7572:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7572:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7573: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): [#def327]
vim92/src/userfunc.c:2413:33: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
vim92/src/userfunc.c:7557:1: enter_function: entry to ‘set_ref_in_func’
vim92/src/userfunc.c:7563:18: release_memory: ‘tofree’ is NULL
vim92/src/userfunc.c:7567:8: branch_false: following ‘false’ branch...
vim92/src/userfunc.c:7570:8: branch_false: ...to here
vim92/src/userfunc.c:7570:8: branch_true: following ‘true’ branch (when ‘fp_in’ is NULL)...
vim92/src/userfunc.c:7572:17: branch_true: ...to here
vim92/src/userfunc.c:7572:17: call_function: calling ‘fname_trans_sid’ from ‘set_ref_in_func’
vim92/src/userfunc.c:7572:17: return_function: returning to ‘set_ref_in_func’ from ‘fname_trans_sid’
vim92/src/userfunc.c:7573: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): [#def328]
vim92/src/userfunc.c:3193: error[legacyUninitvar]: Uninitialized variable: def_rettv
# 3191|   	// Note: the values are copied directly to avoid alloc/free.
# 3192|   	// "argvars" must have VAR_FIXED for v_lock.
# 3193|-> 	v->di_tv = isdefault ? def_rettv : argvars[i];
# 3194|   	v->di_tv.v_lock = VAR_FIXED;
# 3195|   

Error: CPPCHECK_WARNING (CWE-562): [#def329]
vim92/src/userfunc.c:4030: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 4028|   		// make a copy of the type with the correction.
# 4029|   		check_type = *funcexe->fe_check_type;
# 4030|-> 		funcexe->fe_check_type = &check_type;
# 4031|   		check_type.tt_args = check_type_args;
# 4032|   		CLEAR_FIELD(check_type_args);

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-476): [#def340]
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): [#def341]
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: [#def342]
vim92/src/vim9script.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

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

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

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

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

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

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

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

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

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

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

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

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
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-71.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.240-1.fc44
store-results-to/tmp/tmphc60ek_2/vim-9.2.240-1.fc44.tar.xz
time-created2026-08-03 21:24:42
time-finished2026-08-03 22:12:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmphc60ek_2/vim-9.2.240-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmphc60ek_2/vim-9.2.240-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9