vim-9.1.825-1.fc42

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-156): [#def2]
/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: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/bin/vimtutor:28:39: warning[SC2186]: tempfile is deprecated. Use mktemp instead.
#   26|   # We need a temp file for the copy.  First try using a standard command.
#   27|   tmp="${TMPDIR-/tmp}"
#   28|-> TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo none`
#   29|   
#   30|   # If the standard commands failed then create a directory to put the copy in.

Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/usr/bin/vimtutor:53:14: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#   51|   
#   52|   # remove the copy of the tutor on exit
#   53|-> trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
#   54|   
#   55|   for i in $seq; do

Error: SHELLCHECK_WARNING (CWE-398): [#def5]
/usr/bin/vimtutor:53:33: error[SC2173]: SIGKILL/SIGSTOP can not be trapped.
#   51|   
#   52|   # remove the copy of the tutor on exit
#   53|-> trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
#   54|   
#   55|   for i in $seq; do

Error: SHELLCHECK_WARNING (CWE-398): [#def6]
/usr/bin/vimtutor:53:35: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#   51|   
#   52|   # remove the copy of the tutor on exit
#   53|-> trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
#   54|   
#   55|   for i in $seq; do

Error: SHELLCHECK_WARNING (CWE-398): [#def7]
/usr/bin/vimtutor:53:38: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#   51|   
#   52|   # remove the copy of the tutor on exit
#   53|-> trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
#   54|   
#   55|   for i in $seq; do

Error: COMPILER_WARNING: [#def8]
vim-9.1.825-build/vim91/src/alloc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def9]
vim-9.1.825-build/vim91/src/arabic.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def10]
vim-9.1.825-build/vim91/src/arglist.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def11]
vim-9.1.825-build/vim91/src/auto/gui_gtk_gresources.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def12]
vim-9.1.825-build/vim91/src/auto/if_perl.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def13]
vim-9.1.825-build/vim91/src/auto/pathdef.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def14]
vim-9.1.825-build/vim91/src/autocmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
vim-9.1.825-build/vim91/src/autocmd.c: scope_hint: In function ‘do_autocmd_event’
vim-9.1.825-build/vim91/src/autocmd.c:1194:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pat’
vim-9.1.825-build/vim91/src/vim.h:457: included_from: Included from here.
vim-9.1.825-build/vim91/src/autocmd.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/autocmd.c:3047:5: note: in expansion of macro ‘FOR_ALL_LIST_ITEMS’
vim-9.1.825-build/vim91/src/autocmd.c:3047:5: note: in expansion of macro ‘FOR_ALL_LIST_ITEMS’
vim-9.1.825-build/vim91/src/autocmd.c:3049:9: note: in expansion of macro ‘VIM_CLEAR’
vim-9.1.825-build/vim91/src/autocmd.c:3049:9: note: in expansion of macro ‘VIM_CLEAR’
vim-9.1.825-build/vim91/src/autocmd.c:3050:9: note: in expansion of macro ‘VIM_CLEAR’
vim-9.1.825-build/vim91/src/autocmd.c:3050:9: note: in expansion of macro ‘VIM_CLEAR’
# 1192|        * Show or delete all patterns for an event.
# 1193|        */
# 1194|->     if (*pat == NUL)
# 1195|       {
# 1196|   	FOR_ALL_AUTOCMD_PATTERNS(event, ap)

Error: COMPILER_WARNING: [#def16]
vim-9.1.825-build/vim91/src/beval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
vim-9.1.825-build/vim91/src/beval.c: scope_hint: In function ‘find_word_under_cursor’
vim-9.1.825-build/vim91/src/beval.c:82:33: warning[-Wanalyzer-null-dereference]: 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: [#def18]
vim-9.1.825-build/vim91/src/blob.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def19]
vim-9.1.825-build/vim91/src/blowfish.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def20]
vim-9.1.825-build/vim91/src/buffer.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def21]
vim-9.1.825-build/vim91/src/bufwrite.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def22]
vim-9.1.825-build/vim91/src/change.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def23]
vim-9.1.825-build/vim91/src/channel.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def24]
vim-9.1.825-build/vim91/src/charset.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def25]
vim-9.1.825-build/vim91/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: [#def26]
vim-9.1.825-build/vim91/src/cindent.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-909): [#def27]
vim-9.1.825-build/vim91/src/cindent.c:2461: error[uninitStructMember]: Uninitialized struct member: our_paren_pos.lnum
# 2459|   	    }
# 2460|   
# 2461|-> 	    amount = skip_label(our_paren_pos.lnum, &look);
# 2462|   	    look = skipwhite(look);
# 2463|   	    if (*look == '(')

Error: CPPCHECK_WARNING (CWE-909): [#def28]
vim-9.1.825-build/vim91/src/cindent.c:2529: error[uninitStructMember]: Uninitialized struct member: our_paren_pos.col
# 2527|   		    else
# 2528|   		    {
# 2529|-> 			col = our_paren_pos.col + 1;
# 2530|   			while (VIM_ISWHITE(l[col]))
# 2531|   			    col++;

Error: COMPILER_WARNING: [#def29]
vim-9.1.825-build/vim91/src/clientserver.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def30]
vim-9.1.825-build/vim91/src/clipboard.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def31]
vim-9.1.825-build/vim91/src/cmdexpand.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-131): [#def32]
vim-9.1.825-build/vim91/src/cmdexpand.c: scope_hint: In function ‘ExpandFromContext’
vim-9.1.825-build/vim91/src/cmdexpand.c:3130:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 3128|   								options);
# 3129|   
# 3130|->     *matches = (char_u **)"";
# 3131|       *numMatches = 0;
# 3132|       if (xp->xp_context == EXPAND_HELP)

Error: COMPILER_WARNING: [#def33]
vim-9.1.825-build/vim91/src/cmdhist.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
vim-9.1.825-build/vim91/src/cmdhist.c: scope_hint: In function ‘init_history’
vim-9.1.825-build/vim91/src/cmdhist.c:171:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temp’
#  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: [#def35]
vim-9.1.825-build/vim91/src/crypt.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def36]
vim-9.1.825-build/vim91/src/crypt_zip.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def37]
vim-9.1.825-build/vim91/src/debugger.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
vim-9.1.825-build/vim91/src/debugger.c: scope_hint: In function ‘has_profiling’
vim-9.1.825-build/vim91/src/debugger.c:981:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘f’
vim-9.1.825-build/vim91/src/debugger.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/debugger.c:973:9: note: in expansion of macro ‘STRCPY’
vim-9.1.825-build/vim91/src/debugger.c: scope_hint: In function ‘has_profiling’
vim-9.1.825-build/vim91/src/debugger.c:1066:13: note: in expansion of macro ‘STRCPY’
vim-9.1.825-build/vim91/src/debugger.c: scope_hint: In function ‘has_profiling’
vim-9.1.825-build/vim91/src/debugger.c:1075:15: note: in expansion of macro ‘DEBUGGY’
vim-9.1.825-build/vim91/src/debugger.c: scope_hint: In function ‘has_profiling’
vim-9.1.825-build/vim91/src/debugger.c:980:13: note: in expansion of macro ‘PEN_SET_PROFILING’
#  979|   	{
#  980|   	    PEN_SET_PROFILING(pe);
#  981|-> 	    if (f)
#  982|   		PEN_SET_FORCEIT(pe);
#  983|   	}

Error: COMPILER_WARNING: [#def39]
vim-9.1.825-build/vim91/src/dict.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def40]
vim-9.1.825-build/vim91/src/diff.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def41]
vim-9.1.825-build/vim91/src/digraph.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def42]
vim-9.1.825-build/vim91/src/drawline.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def43]
vim-9.1.825-build/vim91/src/drawscreen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def44]
vim-9.1.825-build/vim91/src/edit.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def45]
vim-9.1.825-build/vim91/src/edit.c:2939: warning[nullPointer]: Possible null pointer dereference: last_ptr
# 2937|       // starts with ^D.	-- Acevedo
# 2938|       last_ptr = (esc_ptr ? esc_ptr : ptr + STRLEN(ptr)) - 1;
# 2939|->     if (last_ptr >= ptr && (*last_ptr == '0' || *last_ptr == '^')
# 2940|   	    && (no_esc || (*ptr == Ctrl_D && count > 1)))
# 2941|       {

Error: COMPILER_WARNING: [#def46]
vim-9.1.825-build/vim91/src/eval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def47]
vim-9.1.825-build/vim91/src/evalbuffer.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def48]
vim-9.1.825-build/vim91/src/evalfunc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
vim-9.1.825-build/vim91/src/evalfunc.c: scope_hint: In function ‘execute_common’
vim-9.1.825-build/vim91/src/evalfunc.c:4409:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘save_ga.ga_len’
# 4407|       redir_execute = save_redir_execute;
# 4408|       if (redir_execute)
# 4409|-> 	redir_execute_ga = save_ga;
# 4410|       redir_off = save_redir_off;
# 4411|   

Error: COMPILER_WARNING: [#def50]
vim-9.1.825-build/vim91/src/evalvars.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def51]
vim-9.1.825-build/vim91/src/evalwindow.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def52]
vim-9.1.825-build/vim91/src/ex_cmds.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
vim-9.1.825-build/vim91/src/ex_cmds.c: scope_hint: In function ‘do_ecmd’
vim-9.1.825-build/vim91/src/ex_cmds.c:2895:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldwin’
vim-9.1.825-build/vim91/src/vim.h:495: included_from: Included from here.
vim-9.1.825-build/vim91/src/ex_cmds.c:14: included_from: Included from here.
# 2893|   		    if (did_decrement && buf_valid(was_curbuf))
# 2894|   			++was_curbuf->b_nwindows;
# 2895|-> 		    if (win_valid_any_tab(oldwin) && oldwin->w_buffer == NULL)
# 2896|   			oldwin->w_buffer = was_curbuf;
# 2897|   		    auto_buf = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
vim-9.1.825-build/vim91/src/ex_cmds.c: scope_hint: In function ‘ex_substitute’
vim-9.1.825-build/vim91/src/ex_cmds.c:4117:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub’
# 4115|        * again.
# 4116|        */
# 4117|->     if (sub[0] == '\\' && sub[1] == '=')
# 4118|       {
# 4119|   	p = vim_strsave(sub);

Error: COMPILER_WARNING: [#def55]
vim-9.1.825-build/vim91/src/ex_cmds2.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
vim-9.1.825-build/vim91/src/ex_cmds2.c: scope_hint: In function ‘ex_listdo’
vim-9.1.825-build/vim91/src/ex_cmds2.c:642:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tp’
#  640|   		    break;
#  641|   		goto_tabpage_tp(tp, TRUE, TRUE);
#  642|-> 		tp = tp->tp_next;
#  643|   	    }
#  644|   	    else if (eap->cmdidx == CMD_bufdo)

Error: COMPILER_WARNING: [#def57]
vim-9.1.825-build/vim91/src/ex_docmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def58]
vim-9.1.825-build/vim91/src/ex_eval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
vim-9.1.825-build/vim91/src/ex_eval.c: scope_hint: In function ‘report_pending’
vim-9.1.825-build/vim91/src/ex_eval.c:853:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
#  851|   		mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4);
#  852|   		STRCAT(mesg, ": %s");
#  853|-> 		s = (char *)((except_T *)value)->value;
#  854|   	    }
#  855|   	    else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))

Error: COMPILER_WARNING: [#def60]
vim-9.1.825-build/vim91/src/ex_getln.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def61]
vim-9.1.825-build/vim91/src/fileio.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def62]
vim-9.1.825-build/vim91/src/filepath.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def63]
vim-9.1.825-build/vim91/src/findfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
vim-9.1.825-build/vim91/src/findfile.c: scope_hint: In function ‘vim_findfile’
vim-9.1.825-build/vim91/src/findfile.c:829:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rest_of_wildcards’
vim-9.1.825-build/vim91/src/findfile.c: scope_hint: In function ‘vim_findfile’
vim-9.1.825-build/vim91/src/findfile.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/findfile.c:819:21: note: in expansion of macro ‘STRCAT’
vim-9.1.825-build/vim91/src/findfile.c: scope_hint: In function ‘vim_findfile’
#  827|   
#  828|   		rest_of_wildcards = stackp->ffs_wc_path;
#  829|-> 		if (*rest_of_wildcards != NUL)
#  830|   		{
#  831|   		    len = (int)STRLEN(file_path);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
vim-9.1.825-build/vim91/src/findfile.c:1087:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path_end’
vim-9.1.825-build/vim91/src/findfile.c: scope_hint: In function ‘vim_findfile’
# 1085|   	    // path_end may point to the NUL or the previous path separator
# 1086|   	    int plen = (path_end - search_ctx->ffsc_start_dir)
# 1087|-> 							  + (*path_end != NUL);
# 1088|   
# 1089|   	    // is the last starting directory in the stop list?

Error: COMPILER_WARNING: [#def66]
vim-9.1.825-build/vim91/src/float.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def67]
vim-9.1.825-build/vim91/src/fold.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def68]
vim-9.1.825-build/vim91/src/gc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def69]
vim-9.1.825-build/vim91/src/getchar.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def70]
vim-9.1.825-build/vim91/src/gui.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
vim-9.1.825-build/vim91/src/gui.c: scope_hint: In function ‘gui_do_fork’
vim-9.1.825-build/vim91/src/gui.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
#  244|       {
#  245|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  246|-> 	return;
#  247|       }
#  248|       else if (pid > 0)	    // Parent

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
vim-9.1.825-build/vim91/src/gui.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
#  244|       {
#  245|   	emsg(_(e_failed_to_create_new_process_for_GUI));
#  246|-> 	return;
#  247|       }
#  248|       else if (pid > 0)	    // Parent

Error: CPPCHECK_WARNING (CWE-457): [#def73]
vim-9.1.825-build/vim91/src/gui.c:2326: warning[uninitvar]: Uninitialized variable: *s
# 2324|   
# 2325|   #ifdef FEAT_SIGN_ICONS
# 2326|->     if (*s == SIGN_BYTE
# 2327|   # ifdef FEAT_NETBEANS_INTG
# 2328|   	  || *s == MULTISIGN_BYTE

Error: COMPILER_WARNING: [#def74]
vim-9.1.825-build/vim91/src/gui_beval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def75]
vim-9.1.825-build/vim91/src/gui_gtk.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def76]
vim-9.1.825-build/vim91/src/gui_gtk_f.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def77]
vim-9.1.825-build/vim91/src/gui_gtk_x11.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def78]
vim-9.1.825-build/vim91/src/gui_xim.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def79]
vim-9.1.825-build/vim91/src/hardcopy.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def80]
vim-9.1.825-build/vim91/src/hashtab.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def81]
vim-9.1.825-build/vim91/src/help.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-131): [#def82]
vim-9.1.825-build/vim91/src/help.c: scope_hint: In function ‘find_help_tags’
vim-9.1.825-build/vim91/src/help.c:554:14: 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: [#def83]
vim-9.1.825-build/vim91/src/highlight.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def84]
vim-9.1.825-build/vim91/src/if_cscope.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
vim-9.1.825-build/vim91/src/if_cscope.c:30:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_cs[1]’
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
vim-9.1.825-build/vim91/src/if_cscope.c:2341:14: note: in expansion of macro ‘ALLOC_MULT’
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
#   28|   
#   29|   #define CSCOPE_SUCCESS		0
#   30|-> #define CSCOPE_FAILURE		-1
#   31|   
#   32|   #define	CSCOPE_DBFILE		"cscope.out"

Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
vim-9.1.825-build/vim91/src/if_cscope.c: scope_hint: In function ‘cs_create_connection’
vim-9.1.825-build/vim91/src/if_cscope.c:30:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_cs[i]’
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
vim-9.1.825-build/vim91/src/if_cscope.c:12: included_from: Included from here.
vim-9.1.825-build/vim91/src/if_cscope.c:2341:14: note: in expansion of macro ‘ALLOC_MULT’
vim-9.1.825-build/vim91/src/os_unix.h:29: included_from: Included from here.
vim-9.1.825-build/vim91/src/vim.h:251: included_from: Included from here.
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
vim-9.1.825-build/vim91/src/if_cscope.c:861:16: note: in expansion of macro ‘CSCOPE_FAILURE’
#   28|   
#   29|   #define CSCOPE_SUCCESS		0
#   30|-> #define CSCOPE_FAILURE		-1
#   31|   
#   32|   #define	CSCOPE_DBFILE		"cscope.out"

Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
vim-9.1.825-build/vim91/src/if_cscope.c:874:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(to_cs[0], 0)’
vim-9.1.825-build/vim91/src/if_cscope.c:2341:14: note: in expansion of macro ‘ALLOC_MULT’
#  872|   	int argc = 0;
#  873|   
#  874|-> 	if (dup2(to_cs[0], STDIN_FILENO) == -1)
#  875|   	    PERROR("cs_create_connection 1");
#  876|   	if (dup2(from_cs[1], STDOUT_FILENO) == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
vim-9.1.825-build/vim91/src/if_cscope.c:876:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(from_cs[1], 1)’
vim-9.1.825-build/vim91/src/if_cscope.c:2341:14: note: in expansion of macro ‘ALLOC_MULT’
#  874|   	if (dup2(to_cs[0], STDIN_FILENO) == -1)
#  875|   	    PERROR("cs_create_connection 1");
#  876|-> 	if (dup2(from_cs[1], STDOUT_FILENO) == -1)
#  877|   	    PERROR("cs_create_connection 2");
#  878|   	if (dup2(from_cs[1], STDERR_FILENO) == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
vim-9.1.825-build/vim91/src/if_cscope.c:878:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(from_cs[1], 2)’
vim-9.1.825-build/vim91/src/if_cscope.c:2341:14: note: in expansion of macro ‘ALLOC_MULT’
#  876|   	if (dup2(from_cs[1], STDOUT_FILENO) == -1)
#  877|   	    PERROR("cs_create_connection 2");
#  878|-> 	if (dup2(from_cs[1], STDERR_FILENO) == -1)
#  879|   	    PERROR("cs_create_connection 3");
#  880|   

Error: COMPILER_WARNING: [#def90]
vim-9.1.825-build/vim91/src/if_lua.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_list_add’
vim-9.1.825-build/vim91/src/if_lua.c:1002:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def92]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_list_insert’
vim-9.1.825-build/vim91/src/if_lua.c:1019:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def93]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_blob_add’
vim-9.1.825-build/vim91/src/if_lua.c:1288:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def94]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_buffer_insert’
vim-9.1.825-build/vim91/src/if_lua.c:1541:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def95]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_buffer_next’
vim-9.1.825-build/vim91/src/if_lua.c:1576:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def96]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_buffer_previous’
vim-9.1.825-build/vim91/src/if_lua.c:1585:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def97]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_buffer_isvalid’
vim-9.1.825-build/vim91/src/if_lua.c:1594:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def98]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_window_next’
vim-9.1.825-build/vim91/src/if_lua.c:1710:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def99]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_window_previous’
vim-9.1.825-build/vim91/src/if_lua.c:1719:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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): [#def100]
vim-9.1.825-build/vim91/src/if_lua.c: scope_hint: In function ‘luaV_window_isvalid’
vim-9.1.825-build/vim91/src/if_lua.c:1728:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 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: COMPILER_WARNING: [#def101]
vim-9.1.825-build/vim91/src/if_perlsfio.c: warning: -D_FORTIFY_SOURCE defined but value is too low

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

Error: CPPCHECK_WARNING (CWE-562): [#def103]
vim-9.1.825-build/vim91/src/if_py_both.h:1155: error[returnDanglingLifetime]: Returning pointer to local variable 'buf' that will be invalid when returning.
# 1153|       }
# 1154|   
# 1155|->     return ret;
# 1156|   }
# 1157|   

Error: COMPILER_WARNING: [#def104]
vim-9.1.825-build/vim91/src/if_python3.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def105]
vim-9.1.825-build/vim91/src/if_ruby.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def106]
vim-9.1.825-build/vim91/src/if_xcmdsrv.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def107]
vim-9.1.825-build/vim91/src/indent.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def108]
vim-9.1.825-build/vim91/src/insexpand.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def109]
vim-9.1.825-build/vim91/src/job.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def110]
vim-9.1.825-build/vim91/src/json.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def111]
vim-9.1.825-build/vim91/src/libvterm/src/encoding.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def112]
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-787): [#def113]
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c: scope_hint: In function ‘vterm_keyboard_key’
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c:168:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c:168:7: note: valid subscripts for ‘keycodes_fn’ are ‘[0]’ to ‘[12]’
#  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): [#def114]
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c:173:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
vim-9.1.825-build/vim91/src/libvterm/src/keyboard.c:173:7: note: valid subscripts for ‘keycodes_kp’ are ‘[0]’ to ‘[17]’
#  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): [#def115]
vim-9.1.825-build/vim91/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: [#def116]
vim-9.1.825-build/vim91/src/libvterm/src/mouse.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def117]
vim-9.1.825-build/vim91/src/libvterm/src/parser.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def118]
vim-9.1.825-build/vim91/src/libvterm/src/pen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def119]
vim-9.1.825-build/vim91/src/libvterm/src/screen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def120]
vim-9.1.825-build/vim91/src/libvterm/src/state.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def121]
vim-9.1.825-build/vim91/src/libvterm/src/unicode.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def122]
vim-9.1.825-build/vim91/src/libvterm/src/vterm.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def123]
vim-9.1.825-build/vim91/src/list.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def124]
vim-9.1.825-build/vim91/src/locale.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def125]
vim-9.1.825-build/vim91/src/logfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
vim-9.1.825-build/vim91/src/vim.h:457: included_from: Included from here.
vim-9.1.825-build/vim91/src/list.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/list.c: scope_hint: In function ‘list_append’
vim-9.1.825-build/vim91/src/macros.h:422:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
vim-9.1.825-build/vim91/src/list.c:584:5: note: in expansion of macro ‘CHECK_LIST_MATERIALIZE’
vim-9.1.825-build/vim91/src/list.c:584:5: note: in expansion of macro ‘CHECK_LIST_MATERIALIZE’
#  420|   #define CHECK_LIST_MATERIALIZE(l) \
#  421|       do { \
#  422|-> 	if ((l)->lv_first == &range_list_item) \
#  423|   	    range_list_materialize(l); \
#  424|       } while (0)

Error: COMPILER_WARNING: [#def127]
vim-9.1.825-build/vim91/src/main.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def128]
vim-9.1.825-build/vim91/src/map.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def129]
vim-9.1.825-build/vim91/src/mark.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def130]
vim-9.1.825-build/vim91/src/match.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
vim-9.1.825-build/vim91/src/match.c: scope_hint: In function ‘match_add’
vim-9.1.825-build/vim91/src/match.c:46:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘grp’
vim-9.1.825-build/vim91/src/match.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/vim.h:1758:50: note: in definition of macro ‘STRNICMP’
#   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: [#def132]
vim-9.1.825-build/vim91/src/mbyte.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
vim-9.1.825-build/vim91/src/mbyte.c: scope_hint: In function ‘my_iconv_open’
vim-9.1.825-build/vim91/src/mbyte.c:4848:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(enc_skip(to), enc_skip(from))’
vim-9.1.825-build/vim91/src/mbyte.c:80: included_from: Included from here.
vim-9.1.825-build/vim91/src/mbyte.c:5181:57: note: in expansion of macro ‘STRCMP’
vim-9.1.825-build/vim91/src/mbyte.c:416:13: note: in expansion of macro ‘STRCMP’
vim-9.1.825-build/vim91/src/mbyte.c:416:13: note: in expansion of macro ‘STRCMP’
# 4846|       fd = iconv_open((char *)enc_skip(to), (char *)enc_skip(from));
# 4847|   
# 4848|->     if (fd != (iconv_t)-1 && iconv_ok == -1)
# 4849|       {
# 4850|   	/*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
vim-9.1.825-build/vim91/src/mbyte.c: scope_hint: In function ‘convert_input_safe’
vim-9.1.825-build/vim91/src/mbyte.c:5308:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘restp’
# 5306|   	{
# 5307|   	    // Move the unconverted characters to allocated memory.
# 5308|-> 	    *restp = alloc(unconvertlen);
# 5309|   	    if (*restp != NULL)
# 5310|   		mch_memmove(*restp, ptr + len - unconvertlen, unconvertlen);

Error: COMPILER_WARNING: [#def135]
vim-9.1.825-build/vim91/src/memfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def136]
vim-9.1.825-build/vim91/src/memline.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def137]
vim-9.1.825-build/vim91/src/menu.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def138]
vim-9.1.825-build/vim91/src/message.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def139]
vim-9.1.825-build/vim91/src/misc1.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def140]
vim-9.1.825-build/vim91/src/misc2.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def141]
vim-9.1.825-build/vim91/src/mouse.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def142]
vim-9.1.825-build/vim91/src/move.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def143]
vim-9.1.825-build/vim91/src/move.c:3320: warning[nullPointer]: Possible null pointer dereference: curwin
# 3318|       static pos_T	prev_cursor = {0, 0, 0};
# 3319|   
# 3320|->     if (curwin == prev_curwin && EQUAL_POS(curwin->w_cursor, prev_cursor))
# 3321|   	return;
# 3322|       prev_curwin = curwin;

Error: COMPILER_WARNING: [#def144]
vim-9.1.825-build/vim91/src/netbeans.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
vim-9.1.825-build/vim91/src/netbeans.c: scope_hint: In function ‘nb_do_cmd’
vim-9.1.825-build/vim91/src/netbeans.c:1214:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim-9.1.825-build/vim91/src/netbeans.c:1001:13: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1012:18: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1021:18: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1036:18: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1059:18: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1076:18: note: in expansion of macro ‘streq’
vim-9.1.825-build/vim91/src/netbeans.c:1130:18: note: in expansion of macro ‘streq’
# 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: [#def146]
vim-9.1.825-build/vim91/src/normal.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def147]
vim-9.1.825-build/vim91/src/ops.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def148]
vim-9.1.825-build/vim91/src/ops.c: scope_hint: In function ‘op_change’
vim-9.1.825-build/vim91/src/ops.c:1823:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bd.textcol’
# 1821|   	// the indent, exclude that indent change from the inserted text.
# 1822|   	firstline = ml_get(oap->start.lnum);
# 1823|-> 	if (bd.textcol > (colnr_T)pre_indent)
# 1824|   	{
# 1825|   	    long new_indent = (long)getwhitecols(firstline);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def149]
vim-9.1.825-build/vim91/src/ops.c: scope_hint: In function ‘do_join’
vim-9.1.825-build/vim91/src/ops.c:2068:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘prev_was_comment’
# 2066|   	    // We don't want to remove the comment leader if the
# 2067|   	    // previous line is not a comment.
# 2068|-> 	    if (t > 0 && prev_was_comment)
# 2069|   	    {
# 2070|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def150]
vim-9.1.825-build/vim91/src/ops.c: scope_hint: In function ‘block_prep’
vim-9.1.825-build/vim91/src/ops.c:2321:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*oap.start_vcol’
vim-9.1.825-build/vim91/src/vim.h:457: included_from: Included from here.
vim-9.1.825-build/vim91/src/ops.c:15: included_from: Included from here.
vim-9.1.825-build/vim91/src/ops.c:3226:17: note: in expansion of macro ‘LT_POS’
# 2319|       prev_pstart = line;
# 2320|       init_chartabsize_arg(&cts, curwin, lnum, bdp->start_vcol, line, line);
# 2321|->     while (cts.cts_vcol < oap->start_vcol && *cts.cts_ptr != NUL)
# 2322|       {
# 2323|   	// Count a tab for what it's worth (if list mode not on)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def151]
vim-9.1.825-build/vim91/src/ops.c: scope_hint: In function ‘cursor_pos_info’
vim-9.1.825-build/vim91/src/ops.c:3358:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘oparg.end_vcol’
vim-9.1.825-build/vim91/src/ops.c:3226:17: note: in expansion of macro ‘LT_POS’
# 3356|   								    &max_pos.col);
# 3357|   		    vim_snprintf((char *)buf1, sizeof(buf1), _("%ld Cols; "),
# 3358|-> 			    (long)(oparg.end_vcol - oparg.start_vcol + 1));
# 3359|   		}
# 3360|   		else

Error: COMPILER_WARNING: [#def152]
vim-9.1.825-build/vim91/src/option.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
vim-9.1.825-build/vim91/src/option.c: scope_hint: In function ‘set_option_default’
vim-9.1.825-build/vim91/src/option.c:825:73: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim-9.1.825-build/vim91/src/vim.h:2470: included_from: Included from here.
vim-9.1.825-build/vim91/src/option.c:39: included_from: Included from here.
vim-9.1.825-build/vim91/src/option.c:3138:35: note: in expansion of macro ‘SOURCING_LNUM’
#  823|   	    // May also set global value for local option.
#  824|   	    if (both)
#  825|-> 		*(int *)get_varp_scope(&(options[opt_idx]), OPT_GLOBAL) =
#  826|   								*(int *)varp;
#  827|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
vim-9.1.825-build/vim91/src/option.c: scope_hint: In function ‘ExpandSettingSubtract’
vim-9.1.825-build/vim91/src/option.c:8174:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vim-9.1.825-build/vim91/src/option.c: scope_hint: In function ‘ExpandSettingSubtract’
vim-9.1.825-build/vim91/src/option.c: scope_hint: In function ‘ExpandSettingSubtract’
# 8172|   	return ExpandOldSetting(numMatches, matches);
# 8173|   
# 8174|->     char_u *option_val = *(char_u**)get_option_varp_scope(
# 8175|   	expand_option_idx, expand_option_flags);
# 8176|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
vim-9.1.825-build/vim91/src/option.c: scope_hint: In function ‘option_value2string’
vim-9.1.825-build/vim91/src/option.c:8326:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 8324|   	    STRCPY(NameBuff, transchar((int)wc));
# 8325|   	else
# 8326|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8327|       }
# 8328|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
vim-9.1.825-build/vim91/src/option.c:8326:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
# 8324|   	    STRCPY(NameBuff, transchar((int)wc));
# 8325|   	else
# 8326|-> 	    sprintf((char *)NameBuff, "%ld", *(long *)varp);
# 8327|       }
# 8328|       else    // P_STRING

Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
vim-9.1.825-build/vim91/src/option.c:8330:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 8328|       else    // P_STRING
# 8329|       {
# 8330|-> 	varp = *(char_u **)(varp);
# 8331|   	if (varp == NULL)		    // just in case
# 8332|   	    NameBuff[0] = NUL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
vim-9.1.825-build/vim91/src/option.c:8330:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘args.oe_varp’
# 8328|       else    // P_STRING
# 8329|       {
# 8330|-> 	varp = *(char_u **)(varp);
# 8331|   	if (varp == NULL)		    // just in case
# 8332|   	    NameBuff[0] = NUL;

Error: COMPILER_WARNING: [#def159]
vim-9.1.825-build/vim91/src/optionstr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-562): [#def160]
vim-9.1.825-build/vim91/src/optionstr.c:4672: error[returnDanglingLifetime]: Returning pointer to local variable 'args' that will be invalid when returning.
# 4670|   #endif
# 4671|   
# 4672|->     return errmsg;
# 4673|   }
# 4674|   

Error: COMPILER_WARNING: [#def161]
vim-9.1.825-build/vim91/src/os_unix.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
vim-9.1.825-build/vim91/src/os_unix.c:4942:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd_toshell[0]’
vim-9.1.825-build/vim91/src/os_unix.c:4924:13: note: in expansion of macro ‘UNBLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
# 4940|   # endif
# 4941|   		{
# 4942|-> 		    close(fd_toshell[0]);
# 4943|   		    close(fd_toshell[1]);
# 4944|   		    close(fd_fromshell[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
vim-9.1.825-build/vim91/src/os_unix.c:4991:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
# 4989|   		{
# 4990|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 4991|-> 		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 4992|   		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 4993|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
vim-9.1.825-build/vim91/src/os_unix.c:4992:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
# 4990|   		    vim_ignored = dup(fd); // To replace stdin  (fd 0)
# 4991|   		    vim_ignored = dup(fd); // To replace stdout (fd 1)
# 4992|-> 		    vim_ignored = dup(fd); // To replace stderr (fd 2)
# 4993|   
# 4994|   		    // Don't need this now that we've duplicated it

Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
vim-9.1.825-build/vim91/src/os_unix.c:5050:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
# 5048|   		    vim_ignored = dup(pty_slave_fd);
# 5049|   		    close(1);
# 5050|-> 		    vim_ignored = dup(pty_slave_fd);
# 5051|   		    if (gui.in_use)
# 5052|   		    {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def166]
vim-9.1.825-build/vim91/src/os_unix.c:5054:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
# 5052|   		    {
# 5053|   			close(2);
# 5054|-> 			vim_ignored = dup(pty_slave_fd);
# 5055|   		    }
# 5056|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
vim-9.1.825-build/vim91/src/os_unix.c:5063:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd_toshell[1]’
# 5061|   		{
# 5062|   		    // set up stdin for the child
# 5063|-> 		    close(fd_toshell[1]);
# 5064|   		    close(0);
# 5065|   		    vim_ignored = dup(fd_toshell[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def168]
vim-9.1.825-build/vim91/src/os_unix.c:5071:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
# 5069|   		    close(fd_fromshell[0]);
# 5070|   		    close(1);
# 5071|-> 		    vim_ignored = dup(fd_fromshell[1]);
# 5072|   		    close(fd_fromshell[1]);
# 5073|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
vim-9.1.825-build/vim91/src/os_unix.c:5079:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘vim_ignored’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
# 5077|   			// set up stderr for the child
# 5078|   			close(2);
# 5079|-> 			vim_ignored = dup(1);
# 5080|   		    }
# 5081|   # endif

Error: GCC_ANALYZER_WARNING (CWE-910): [#def170]
vim-9.1.825-build/vim91/src/os_unix.c:5079:39: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘1’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
# 5077|   			// set up stderr for the child
# 5078|   			close(2);
# 5079|-> 			vim_ignored = dup(1);
# 5080|   		    }
# 5081|   # endif

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
vim-9.1.825-build/vim91/src/os_unix.c:5663:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[0]’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c:4924:13: note: in expansion of macro ‘UNBLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
# 5661|       vim_free(tofree2);
# 5662|   
# 5663|->     return retval;
# 5664|   }
# 5665|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
vim-9.1.825-build/vim91/src/os_unix.c:5663:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_fromshell[1]’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c:4924:13: note: in expansion of macro ‘UNBLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
# 5661|       vim_free(tofree2);
# 5662|   
# 5663|->     return retval;
# 5664|   }
# 5665|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
vim-9.1.825-build/vim91/src/os_unix.c:5663:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[0]’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c:4924:13: note: in expansion of macro ‘UNBLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
# 5661|       vim_free(tofree2);
# 5662|   
# 5663|->     return retval;
# 5664|   }
# 5665|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
vim-9.1.825-build/vim91/src/os_unix.c:5663:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_toshell[1]’
vim-9.1.825-build/vim91/src/os_unix.c:4920:9: note: in expansion of macro ‘BLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c:4924:13: note: in expansion of macro ‘UNBLOCK_SIGNALS’
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_call_shell_fork’
# 5661|       vim_free(tofree2);
# 5662|   
# 5663|->     return retval;
# 5664|   }
# 5665|   #endif // USE_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
vim-9.1.825-build/vim91/src/os_unix.c:6031:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_in[0]’
# 6029|       if (pty_slave_fd >= 0)
# 6030|   	close(pty_slave_fd);
# 6031|-> }
# 6032|   
# 6033|       static char_u *

Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
vim-9.1.825-build/vim91/src/os_unix.c: scope_hint: In function ‘mch_job_start’
vim-9.1.825-build/vim91/src/os_unix.c:6031:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_in[1]’
# 6029|       if (pty_slave_fd >= 0)
# 6030|   	close(pty_slave_fd);
# 6031|-> }
# 6032|   
# 6033|       static char_u *

Error: COMPILER_WARNING: [#def177]
vim-9.1.825-build/vim91/src/popupmenu.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def178]
vim-9.1.825-build/vim91/src/popupwin.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def179]
vim-9.1.825-build/vim91/src/profiler.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def180]
vim-9.1.825-build/vim91/src/pty.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def181]
vim-9.1.825-build/vim91/src/quickfix.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def182]
vim-9.1.825-build/vim91/src/regexp.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-909): [#def183]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def184]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def185]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def186]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def187]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def188]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def189]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def190]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def191]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def192]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def193]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def194]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def195]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def196]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def197]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def198]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def199]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def200]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def201]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def202]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def203]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def204]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def205]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def206]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def207]
vim-9.1.825-build/vim91/src/regexp.c:2101: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 2099|       rex_in_use = rex_in_use_save;
# 2100|       if (rex_in_use)
# 2101|-> 	rex = rex_save;
# 2102|   
# 2103|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def208]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def209]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def210]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def211]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def212]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def213]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def214]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def215]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def216]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def217]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def218]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def219]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def220]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def221]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def222]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def223]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def224]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def225]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def226]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def227]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def228]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def229]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def230]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def231]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def232]
vim-9.1.825-build/vim91/src/regexp.c:2134: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 2132|       rex_in_use = rex_in_use_save;
# 2133|       if (rex_in_use)
# 2134|-> 	rex = rex_save;
# 2135|   
# 2136|       return result;

Error: CPPCHECK_WARNING (CWE-909): [#def233]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def234]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def235]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def236]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def237]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def238]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def239]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def240]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def241]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def242]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def243]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def244]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def245]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def246]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def247]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def248]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def249]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def250]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def251]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def252]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def253]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def254]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def255]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def256]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def257]
vim-9.1.825-build/vim91/src/regexp.c:3127: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 3125|       rex_in_use = rex_in_use_save;
# 3126|       if (rex_in_use)
# 3127|-> 	rex = rex_save;
# 3128|   
# 3129|       return result > 0;

Error: CPPCHECK_WARNING (CWE-909): [#def258]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.input
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def259]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.line
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def260]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.lnum
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def261]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_subexpr
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def262]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.need_clear_zsubexpr
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def263]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_alt_listid
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def264]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_backref
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def265]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zend
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def266]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_has_zsubexpr
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def267]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_listid
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def268]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.nfa_nsubexpr
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def269]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_buf
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def270]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endp
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def271]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_endpos
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def272]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_firstlnum
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def273]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_ic
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def274]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_icombine
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def275]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_line_lbr
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def276]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_match
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def277]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxcol
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def278]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_maxline
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def279]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_mmatch
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def280]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startp
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def281]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_startpos
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: CPPCHECK_WARNING (CWE-909): [#def282]
vim-9.1.825-build/vim91/src/regexp.c:3262: error[uninitStructMember]: Uninitialized struct member: rex_save.reg_win
# 3260|       rex_in_use = rex_in_use_save;
# 3261|       if (rex_in_use)
# 3262|-> 	rex = rex_save;
# 3263|   
# 3264|       return result <= 0 ? 0 : result;

Error: COMPILER_WARNING: [#def283]
vim-9.1.825-build/vim91/src/register.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def284]
vim-9.1.825-build/vim91/src/screen.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def285]
vim-9.1.825-build/vim91/src/scriptfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
vim-9.1.825-build/vim91/src/scriptfile.c: scope_hint: In function ‘do_source_buffer_init’
vim-9.1.825-build/vim91/src/scriptfile.c:1449:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eap’
# 1447|   
# 1448|       // Copy the lines from the buffer into a grow array
# 1449|->     for (curr_lnum = eap->line1; curr_lnum <= eap->line2; curr_lnum++)
# 1450|       {
# 1451|   	line = vim_strsave(ml_get(curr_lnum));

Error: COMPILER_WARNING: [#def287]
vim-9.1.825-build/vim91/src/search.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def288]
vim-9.1.825-build/vim91/src/search.c:2877: warning[uninitvar]: Uninitialized variable: vcol
# 2875|   
# 2876|       int col_visible = (curwin->w_p_wrap
# 2877|-> 	    || (vcol >= curwin->w_leftcol
# 2878|   		&& vcol < curwin->w_leftcol + curwin->w_width));
# 2879|       if (!col_visible)

Error: COMPILER_WARNING: [#def289]
vim-9.1.825-build/vim91/src/session.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def290]
vim-9.1.825-build/vim91/src/sha256.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def291]
vim-9.1.825-build/vim91/src/sign.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def292]
vim-9.1.825-build/vim91/src/sound.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def293]
vim-9.1.825-build/vim91/src/spell.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def294]
vim-9.1.825-build/vim91/src/spellfile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-758): [#def295]
vim-9.1.825-build/vim91/src/spellfile.c:5945: warning[objectIndex]: The address of variable 'fname' might be accessed at non-zero index.
# 5943|       // default: fnames[0] is output file, following are input files
# 5944|       // When "fcount" is 1 there is only one file.
# 5945|->     innames = &fnames[fcount == 1 ? 0 : 1];
# 5946|       incount = fcount - 1;
# 5947|   

Error: COMPILER_WARNING: [#def296]
vim-9.1.825-build/vim91/src/spellsuggest.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-457): [#def297]
vim-9.1.825-build/vim91/src/spellsuggest.c: scope_hint: In function ‘spell_edit_score’
vim-9.1.825-build/vim91/src/spellsuggest.c:4101:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘wbadword[<unknown>]’
vim-9.1.825-build/vim91/src/vim.h:457: included_from: Included from here.
vim-9.1.825-build/vim91/src/spellsuggest.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/spellsuggest.c:3362:22: note: in expansion of macro ‘PTR2CHAR’
vim-9.1.825-build/vim91/src/spellsuggest.c:4080:23: note: in expansion of macro ‘STRLEN’
vim-9.1.825-build/vim91/src/spellsuggest.c:4096:21: note: in expansion of macro ‘CNT’
# 4099|   	    if (has_mbyte)
# 4100|   	    {
# 4101|-> 		bc = wbadword[i - 1];
# 4102|   		gc = wgoodword[j - 1];
# 4103|   	    }

Error: COMPILER_WARNING: [#def298]
vim-9.1.825-build/vim91/src/strings.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-457): [#def299]
vim-9.1.825-build/vim91/src/strings.c:616: warning[uninitvar]: Uninitialized variable: i
#  614|       }
#  615|       cmp_flags = save_cmp_flags;
#  616|->     return i;
#  617|   }
#  618|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def300]
vim-9.1.825-build/vim91/src/strings.c: scope_hint: In function ‘skip_to_arg’
vim-9.1.825-build/vim91/src/strings.c:2892:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
vim-9.1.825-build/vim91/src/strings.c:2673:25: note: in expansion of macro ‘CHECK_POS_ARG’
vim-9.1.825-build/vim91/src/strings.c:15: included_from: Included from here.
vim-9.1.825-build/vim91/src/strings.c:2450:25: note: in expansion of macro ‘ALLOC_CLEAR_MULT’
# 2890|   	if (ap_types == NULL || ap_types[*arg_cur] == NULL)
# 2891|   	{
# 2892|-> 	    siemsg(e_aptypes_is_null_nr_str, *arg_cur, fmt);
# 2893|   	    return;
# 2894|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def301]
vim-9.1.825-build/vim91/src/strings.c:2953:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
vim-9.1.825-build/vim91/src/strings.c:2673:25: note: in expansion of macro ‘CHECK_POS_ARG’
vim-9.1.825-build/vim91/src/strings.c:2450:25: note: in expansion of macro ‘ALLOC_CLEAR_MULT’
# 2951|       // increment the current argument index.
# 2952|       ++*arg_cur;
# 2953|->     ++*arg_idx;
# 2954|   
# 2955|       return;

Error: GCC_ANALYZER_WARNING (CWE-825): [#def302]
vim-9.1.825-build/vim91/src/strings.c: scope_hint: In function ‘vim_vsnprintf_typval’
vim-9.1.825-build/vim91/src/strings.c:3111:19: warning[-Wanalyzer-use-of-pointer-in-stale-stack-frame]: dereferencing pointer ‘ap’ to within stale stack frame
vim-9.1.825-build/vim91/src/strings.c:2673:25: note: in expansion of macro ‘CHECK_POS_ARG’
vim-9.1.825-build/vim91/src/strings.c:2450:25: note: in expansion of macro ‘ALLOC_CLEAR_MULT’
# 3109|   		}
# 3110|   
# 3111|-> 		j =
# 3112|   # if defined(FEAT_EVAL)
# 3113|   		    tvs != NULL ? tv_nr(tvs, &arg_idx) :

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def304]
vim-9.1.825-build/vim91/src/syntax.c: scope_hint: In function ‘update_si_end’
vim-9.1.825-build/vim91/src/syntax.c:2686:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘endpos.lnum’
vim-9.1.825-build/vim91/src/syntax.c:2364:19: note: in expansion of macro ‘CUR_STATE’
# 2684|   		   &(sip->si_flags), &end_endpos, &end_idx, sip->si_extmatch);
# 2685|   
# 2686|->     if (endpos.lnum == 0)
# 2687|       {
# 2688|   	// No end pattern matched.

Error: COMPILER_WARNING: [#def305]
vim-9.1.825-build/vim91/src/tag.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def306]
vim-9.1.825-build/vim91/src/term.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def307]
vim-9.1.825-build/vim91/src/terminal.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def308]
vim-9.1.825-build/vim91/src/testing.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def309]
vim-9.1.825-build/vim91/src/textformat.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
vim-9.1.825-build/vim91/src/textformat.c: scope_hint: In function ‘fmt_check_par’
vim-9.1.825-build/vim91/src/textformat.c:522:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘flags’
vim-9.1.825-build/vim91/src/textformat.c: scope_hint: In function ‘fmt_check_par’
#  520|   
#  521|       return (*skipwhite(ptr + *leader_len) == NUL
#  522|-> 	    || (*leader_len > 0 && *flags == COM_END)
#  523|   	    || startPS(lnum, NUL, FALSE));
#  524|   }

Error: COMPILER_WARNING: [#def311]
vim-9.1.825-build/vim91/src/textobject.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def312]
vim-9.1.825-build/vim91/src/textprop.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def313]
vim-9.1.825-build/vim91/src/time.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def314]
vim-9.1.825-build/vim91/src/typval.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def315]
vim-9.1.825-build/vim91/src/ui.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def316]
vim-9.1.825-build/vim91/src/ui.c: scope_hint: In function ‘fill_input_buf’
vim-9.1.825-build/vim91/src/ui.c:993:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘0’
#  991|   #ifdef HAVE_DUP
#  992|   	    // Use stderr for stdin, also works for shell commands.
#  993|-> 	    close(0);
#  994|   	    vim_ignored = dup(2);
#  995|   #else

Error: COMPILER_WARNING: [#def317]
vim-9.1.825-build/vim91/src/undo.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def318]
vim-9.1.825-build/vim91/src/usercmd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def319]
vim-9.1.825-build/vim91/src/userfunc.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def320]
vim-9.1.825-build/vim91/src/userfunc.c:530: error[ctunullpointer]: Null pointer dereference: argtypes
#  528|   
#  529|       ga_init2(&fp->uf_type_list, sizeof(type_T *), 10);
#  530|->     if (argtypes->ga_len > 0)
#  531|       {
#  532|   	// When "varargs" is set the last name/type goes into uf_va_name

Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
vim-9.1.825-build/vim91/src/userfunc.c: scope_hint: In function ‘find_func_even_dead’
vim-9.1.825-build/vim91/src/userfunc.c:2274:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
# 2272|       {
# 2273|   	// Find script-local function before global one.
# 2274|-> 	if (in_vim9script() && eval_isnamec1(*name)
# 2275|   					   && (name[1] != ':' || *name == 's'))
# 2276|   	{

Error: CPPCHECK_WARNING (CWE-457): [#def322]
vim-9.1.825-build/vim91/src/userfunc.c:3083: error[legacyUninitvar]: Uninitialized variable: def_rettv
# 3081|   	// Note: the values are copied directly to avoid alloc/free.
# 3082|   	// "argvars" must have VAR_FIXED for v_lock.
# 3083|-> 	v->di_tv = isdefault ? def_rettv : argvars[i];
# 3084|   	v->di_tv.v_lock = VAR_FIXED;
# 3085|   

Error: CPPCHECK_WARNING (CWE-562): [#def323]
vim-9.1.825-build/vim91/src/userfunc.c:3890: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3888|   		// make a copy of the type with the correction.
# 3889|   		check_type = *funcexe->fe_check_type;
# 3890|-> 		funcexe->fe_check_type = &check_type;
# 3891|   		check_type.tt_args = check_type_args;
# 3892|   		CLEAR_FIELD(check_type_args);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
vim-9.1.825-build/vim91/src/userfunc.c: scope_hint: In function ‘eval_fname_script’
vim-9.1.825-build/vim91/src/userfunc.c:5773:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
vim-9.1.825-build/vim91/src/vim.h:1993: included_from: Included from here.
vim-9.1.825-build/vim91/src/userfunc.c:7224:14: note: in expansion of macro ‘HASHITEM_EMPTY’
# 5771|       // Use MB_STRICMP() because in Turkish comparing the "I" may not work with
# 5772|       // the standard library function.
# 5773|->     if (p[0] == '<' && (MB_STRNICMP(p + 1, "SID>", 4) == 0
# 5774|   				       || MB_STRNICMP(p + 1, "SNR>", 4) == 0))
# 5775|   	return 5;

Error: COMPILER_WARNING: [#def325]
vim-9.1.825-build/vim91/src/version.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: GCC_ANALYZER_WARNING (CWE-688): [#def326]
vim-9.1.825-build/vim91/src/change.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/change.c: scope_hint: In function ‘open_line’
vim-9.1.825-build/vim91/src/vim.h:1734:29: warning[-Wanalyzer-null-argument]: use of NULL ‘leader’ where non-null expected
vim-9.1.825-build/vim91/src/change.c:2126:63: note: in expansion of macro ‘STRLEN’
vim-9.1.825-build/vim91/src/change.c:2126:63: note: in expansion of macro ‘STRLEN’
vim-9.1.825-build/vim91/src/change.c:2126:63: note: in expansion of macro ‘STRLEN’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1732|    * (vim_strchr() and vim_strrchr() are now in strings.c)
# 1733|    */
# 1734|-> #define STRLEN(s)	    strlen((char *)(s))
# 1735|   #define STRCPY(d, s)	    strcpy((char *)(d), (char *)(s))
# 1736|   #define STRNCPY(d, s, n)    strncpy((char *)(d), (char *)(s), (size_t)(n))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def327]
vim-9.1.825-build/vim91/src/channel.c:13: included_from: Included from here.
vim-9.1.825-build/vim91/src/channel.c: scope_hint: In function ‘channel_process_lsp_http_hdr’
vim-9.1.825-build/vim91/src/vim.h:1734:29: warning[-Wanalyzer-null-argument]: use of NULL ‘reader.js_buf’ where non-null expected
vim-9.1.825-build/vim91/src/channel.c:2112:24: note: in expansion of macro ‘STRLEN’
vim-9.1.825-build/vim91/src/vim.h:1734:45: note: in definition of macro ‘STRLEN’
vim-9.1.825-build/vim91/src/channel.c:2112:24: note: in expansion of macro ‘STRLEN’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1732|    * (vim_strchr() and vim_strrchr() are now in strings.c)
# 1733|    */
# 1734|-> #define STRLEN(s)	    strlen((char *)(s))
# 1735|   #define STRCPY(d, s)	    strcpy((char *)(d), (char *)(s))
# 1736|   #define STRNCPY(d, s, n)    strncpy((char *)(d), (char *)(s), (size_t)(n))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def328]
vim-9.1.825-build/vim91/src/userfunc.c:14: included_from: Included from here.
vim-9.1.825-build/vim91/src/vim.h:1738:29: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
vim-9.1.825-build/vim91/src/userfunc.c:2282:32: note: in expansion of macro ‘STRNCMP’
vim-9.1.825-build/vim91/src/userfunc.c:2282:32: note: in expansion of macro ‘STRNCMP’
vim-9.1.825-build/vim91/src/userfunc.c:2282:32: note: in expansion of macro ‘STRNCMP’
vim-9.1.825-build/vim91/src/os_unix.h:465: included_from: Included from here.
vim-9.1.825-build/vim91/src/vim.h:251: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
# 1736|   #define STRNCPY(d, s, n)    strncpy((char *)(d), (char *)(s), (size_t)(n))
# 1737|   #define STRCMP(d, s)	    strcmp((char *)(d), (char *)(s))
# 1738|-> #define STRNCMP(d, s, n)    strncmp((char *)(d), (char *)(s), (size_t)(n))
# 1739|   #ifdef HAVE_STRCASECMP
# 1740|   # define STRICMP(d, s)	    strcasecmp((char *)(d), (char *)(s))

Error: COMPILER_WARNING: [#def329]
vim-9.1.825-build/vim91/src/vim9class.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def330]
vim-9.1.825-build/vim91/src/vim9cmds.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def331]
vim-9.1.825-build/vim91/src/vim9compile.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def332]
vim-9.1.825-build/vim91/src/vim9execute.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-562): [#def333]
vim-9.1.825-build/vim91/src/vim9execute.c:6354: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 6352|       // Store the execution context in funccal, used by invoke_all_defer().
# 6353|       if (funccal != NULL)
# 6354|-> 	funccal->fc_ectx = &ectx;
# 6355|   
# 6356|       // Following errors are in the function, not the caller.

Error: COMPILER_WARNING: [#def334]
vim-9.1.825-build/vim91/src/vim9expr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def335]
vim-9.1.825-build/vim91/src/vim9instr.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: CPPCHECK_WARNING (CWE-476): [#def336]
vim-9.1.825-build/vim91/src/vim9instr.c:445: warning[nullPointer]: Possible null pointer dereference: type1
#  443|   {
#  444|       isntype_T	isntype = ISN_DROP;
#  445|->     vartype_T	vartype1 = tv1 != NULL ? tv1->v_type : type1->tt_type;
#  446|       vartype_T	vartype2 = tv2 != NULL ? tv2->v_type : type2->tt_type;
#  447|   

Error: CPPCHECK_WARNING (CWE-476): [#def337]
vim-9.1.825-build/vim91/src/vim9instr.c:446: warning[nullPointer]: Possible null pointer dereference: type2
#  444|       isntype_T	isntype = ISN_DROP;
#  445|       vartype_T	vartype1 = tv1 != NULL ? tv1->v_type : type1->tt_type;
#  446|->     vartype_T	vartype2 = tv2 != NULL ? tv2->v_type : type2->tt_type;
#  447|   
#  448|       if (vartype1 == VAR_CLASS || vartype1 == VAR_TYPEALIAS)

Error: COMPILER_WARNING: [#def338]
vim-9.1.825-build/vim91/src/vim9script.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def339]
vim-9.1.825-build/vim91/src/vim9type.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def340]
vim-9.1.825-build/vim91/src/viminfo.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def341]
vim-9.1.825-build/vim91/src/window.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def342]
vim-9.1.825-build/vim91/src/xdiff/xdiffi.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def343]
vim-9.1.825-build/vim91/src/xdiff/xemit.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def344]
vim-9.1.825-build/vim91/src/xdiff/xhistogram.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def345]
vim-9.1.825-build/vim91/src/xdiff/xpatience.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def346]
vim-9.1.825-build/vim91/src/xdiff/xprepare.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def347]
vim-9.1.825-build/vim91/src/xdiff/xutils.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Error: COMPILER_WARNING: [#def348]
vim-9.1.825-build/vim91/src/xxd/xxd.c: warning: -D_FORTIFY_SOURCE defined but value is too low

Scan Properties

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