Newly introduced findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/bin/iscsi-gen-initiatorname:137:23: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  135|   
#  136|   # if we have a local initiator name and "force" is not set end it now
#  137|-> if [ "$InitiatorName" -a -z "$FORCE" ] ; then
#  138|       echo "Error: you cannot overwrite the current InitiatorName unless 'force' is set." 1>&2
#  139|       usage_and_exit 1

Error: SHELLCHECK_WARNING (CWE-477): [#def2]
/usr/bin/iscsi-gen-initiatorname:158:20: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  156|   # if we have both iBFT and kernel command line initiator names that
#  157|   # do not match end it now
#  158|-> if [ "$IBFT_INAME" -a "$KERNEL_INAME" -a "$IBFT_INAME" != "$KERNEL_INAME" ] ; then
#  159|       echo "Error: Kernel cmdline Initiator Name: $KERNEL_INAME" 1>&2
#  160|       echo "  does not match iBFT Initiator Name: $IBFT_INAME" 1>&2

Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/iscsi-gen-initiatorname:158:39: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  156|   # if we have both iBFT and kernel command line initiator names that
#  157|   # do not match end it now
#  158|-> if [ "$IBFT_INAME" -a "$KERNEL_INAME" -a "$IBFT_INAME" != "$KERNEL_INAME" ] ; then
#  159|       echo "Error: Kernel cmdline Initiator Name: $KERNEL_INAME" 1>&2
#  160|       echo "  does not match iBFT Initiator Name: $IBFT_INAME" 1>&2

Error: COMPILER_WARNING (CWE-704): [#def4]
open-iscsi-7e00642c40123e0b3f949e74c3945872c17a407e/usr/initiator_common.c: scope_hint: In function ‘iqn_name_valid’
open-iscsi-7e00642c40123e0b3f949e74c3945872c17a407e/usr/initiator_common.c:771:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  771 |         for (cp = name; *cp != '\0'; cp++)
#      |                 ^
#  769|   
#  770|   	/* ensure no invalid characters */
#  771|-> 	for (cp = name; *cp != '\0'; cp++)
#  772|   		if ((*cp <= '\x2c') ||
#  773|   		    (*cp == '\x2f') ||

Error: COMPILER_WARNING (CWE-704): [#def5]
open-iscsi-7e00642c40123e0b3f949e74c3945872c17a407e/usr/initiator_common.c:771:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  769|   
#  770|   	/* ensure no invalid characters */
#  771|-> 	for (cp = name; *cp != '\0'; cp++)
#  772|   		if ((*cp <= '\x2c') ||
#  773|   		    (*cp == '\x2f') ||

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
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-95.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameiscsi-initiator-utils-6.2.1.11-0.git4b3e853.fc44.3
diffbase-store-results-to/tmp/tmpej7be1vr/iscsi-initiator-utils-6.2.1.11-0.git4b3e853.fc44.3.tar.xz
diffbase-time-created2026-08-03 15:19:56
diffbase-time-finished2026-08-03 15:22:53
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpej7be1vr/iscsi-initiator-utils-6.2.1.11-0.git4b3e853.fc44.3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpej7be1vr/iscsi-initiator-utils-6.2.1.11-0.git4b3e853.fc44.3.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-95.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameiscsi-initiator-utils-6.2.1.12-1.fc45
store-results-to/tmp/tmpre5oegnh/iscsi-initiator-utils-6.2.1.12-1.fc45.tar.xz
time-created2026-08-03 15:23:22
time-finished2026-08-03 15:25:35
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpre5oegnh/iscsi-initiator-utils-6.2.1.12-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpre5oegnh/iscsi-initiator-utils-6.2.1.12-1.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9