Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
syslinux-6.04-pre1/efi/console.c:271:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘first’
syslinux-6.04-pre1/efi/console.c:252:12: branch_false: following ‘false’ branch (when ‘status == 0’)...
syslinux-6.04-pre1/efi/console.c:255:14: branch_false: ...to here
syslinux-6.04-pre1/efi/console.c:255:21: branch_true: following ‘true’ branch...
syslinux-6.04-pre1/efi/console.c:256:29: branch_true: ...to here
syslinux-6.04-pre1/efi/console.c:262:20: branch_false: following ‘false’ branch (when ‘status == 0’)...
syslinux-6.04-pre1/efi/console.c:265:17: branch_false: ...to here
syslinux-6.04-pre1/efi/console.c:271:20: branch_true: following ‘true’ branch (when ‘status == 0’)...
syslinux-6.04-pre1/efi/console.c:271:21: branch_true: ...to here
syslinux-6.04-pre1/efi/console.c:271:21: danger: use of uninitialized value ‘first’ here
#  269|   					   &depth, &refresh);
#  270|   
#  271|-> 		if (status == EFI_SUCCESS && (!first || pciio)) {
#  272|   			width = w;
#  273|   			height = h;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
syslinux-6.04-pre1/efi/console.c:282:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘first’
syslinux-6.04-pre1/efi/console.c:252:12: branch_false: following ‘false’ branch (when ‘status == 0’)...
syslinux-6.04-pre1/efi/console.c:255:14: branch_false: ...to here
syslinux-6.04-pre1/efi/console.c:282:12: danger: use of uninitialized value ‘first’ here
#  280|   	}
#  281|   
#  282|-> 	if (!first)
#  283|   		goto out;
#  284|   	rv = 1;

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
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-184.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.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namesyslinux-6.04-0.31.fc43
diffbase-store-results-to/tmp/tmpw74bhu1g/syslinux-6.04-0.31.fc43.tar.xz
diffbase-time-created2025-04-25 15:59:28
diffbase-time-finished2025-04-25 16:15:49
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpw74bhu1g/syslinux-6.04-0.31.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpw74bhu1g/syslinux-6.04-0.31.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-184.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesyslinux-6.04-0.30.fc42
store-results-to/tmp/tmpq_1cl2eq/syslinux-6.04-0.30.fc42.tar.xz
time-created2025-04-25 15:42:20
time-finished2025-04-25 15:58:57
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpq_1cl2eq/syslinux-6.04-0.30.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpq_1cl2eq/syslinux-6.04-0.30.fc42.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9