Newly introduced findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-456): [#def1]
/usr/bin/bashbug-64:146:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#  144|   		DEFEDITOR=jove
#  145|   	elif [ -x /usr/bin/vi ]; then
#  146|-> 		DEFEDITOR=vi
#  147|   	else
#  148|   		echo "$0: No default editor found: attempting to use vi" >&2

Error: SHELLCHECK_WARNING (CWE-456): [#def2]
/usr/bin/bashbug-64:149:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#  147|   	else
#  148|   		echo "$0: No default editor found: attempting to use vi" >&2
#  149|-> 		DEFEDITOR=vi
#  150|   	fi
#  151|   fi

Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/bin/bashbug-64:158:40: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#  156|   : ${USER=${LOGNAME-`whoami`}}
#  157|   
#  158|-> trap 'rm -rf "$TEMPDIR"; exit 1' 1 2 3 13 15
#  159|   trap 'rm -rf "$TEMPDIR"' 0
#  160|   

Error: COMPILER_WARNING (CWE-457): [#def4]
bash-5.2.37-build/bash-5.2/lib/readline/complete.c: scope_hint: In function ‘rl_complete_internal’
bash-5.2.37-build/bash-5.2/lib/readline/complete.c:2104:14: warning[-Wmaybe-uninitialized]: ‘tlen’ may be used uninitialized
# 2104 |           if (mlen >= tlen)
#      |              ^
bash-5.2.37-build/bash-5.2/lib/readline/complete.c:2007:7: note: ‘tlen’ was declared here
# 2007 |   int tlen, mlen, saved_last_completion_failed;
#      |       ^~~~
# 2102|   	{
# 2103|   	  mlen = *matches[0] ? strlen (matches[0]) : 0;
# 2104|-> 	  if (mlen >= tlen)
# 2105|   	    insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, &quote_char);
# 2106|   	}

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
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-66.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namebash-5.2.32-1.fc41
diffbase-store-results-to/tmp/tmpgtz63n8y/bash-5.2.32-1.fc41.tar.xz
diffbase-time-created2024-11-12 23:10:49
diffbase-time-finished2024-11-12 23:14:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpgtz63n8y/bash-5.2.32-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpgtz63n8y/bash-5.2.32-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-66.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namebash-5.2.37-1.fc42
store-results-to/tmp/tmp9vp47ivr/bash-5.2.37-1.fc42.tar.xz
time-created2024-11-12 23:14:57
time-finished2024-11-12 23:18:26
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp9vp47ivr/bash-5.2.37-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp9vp47ivr/bash-5.2.37-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9