Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-569): [#def1]
vim91/src/evalfunc.c: scope_hint: In function ‘f_has’
vim91/src/evalfunc.c:7947:51: warning[-Wtautological-compare]: self-comparison always evaluates to false
# 7947 |             n = clip_plus.available && &clip_star != &clip_plus;
#      |                                                   ^~
# 7945|   	    x = TRUE;
# 7946|   #ifdef FEAT_CLIPBOARD
# 7947|-> 	    n = clip_plus.available && &clip_star != &clip_plus;
# 7948|   #endif
# 7949|   	}

Error: COMPILER_WARNING (CWE-457): [#def2]
vim91/src/normal.c: scope_hint: In function ‘normal_cmd’
vim91/src/normal.c:991:19: warning[-Wmaybe-uninitialized]: ‘prev_VIsual_active’ may be used uninitialized
#  991 |     if (finish_op || prev_VIsual_active)
#      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
vim91/src/normal.c:972:9: note: ‘prev_VIsual_active’ was declared here
#  972 |     int prev_VIsual_active = VIsual_active;
#      |         ^~~~~~~~~~~~~~~~~~
#  989|   
#  990|   #ifdef FEAT_EVAL
#  991|->     if (finish_op || prev_VIsual_active)
#  992|   	reset_reg_var();
#  993|   #endif

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-67.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namevim-9.1.1818-1.fc43
diffbase-store-results-to/tmp/tmpyu6jufnx/vim-9.1.1818-1.fc43.tar.xz
diffbase-time-created2025-10-28 20:35:38
diffbase-time-finished2025-10-28 21:27:28
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpyu6jufnx/vim-9.1.1818-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpyu6jufnx/vim-9.1.1818-1.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-67.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namevim-9.1.1863-1.fc44
store-results-to/tmp/tmphljmg1dj/vim-9.1.1863-1.fc44.tar.xz
time-created2025-10-28 21:28:09
time-finished2025-10-28 22:19:35
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmphljmg1dj/vim-9.1.1863-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmphljmg1dj/vim-9.1.1863-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9