Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:201:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_name’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:269:1: enter_function: entry to ‘fu_linux_swap_new’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:279:35: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:290:28: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:291:33: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:292:38: call_function: calling ‘fu_linux_swap_verify_partition’ from ‘fu_linux_swap_new’
#  199|   	}
#  200|   	if (!fu_linux_swap_block_has_crypt_below(pstore, name, 0, &encrypted_below, &error_walk)) {
#  201|-> 		g_debug("dm walk failed for %s: %s", fn, error_walk->message);
#  202|   	} else if (encrypted_below) {
#  203|   		g_debug("%s partition is encrypted via dm chain below %s", fn, name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:201:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_walk’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:269:1: enter_function: entry to ‘fu_linux_swap_new’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:279:35: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:290:28: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:291:33: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:292:38: call_function: calling ‘fu_linux_swap_verify_partition’ from ‘fu_linux_swap_new’
#  199|   	}
#  200|   	if (!fu_linux_swap_block_has_crypt_below(pstore, name, 0, &encrypted_below, &error_walk)) {
#  201|-> 		g_debug("dm walk failed for %s: %s", fn, error_walk->message);
#  202|   	} else if (encrypted_below) {
#  203|   		g_debug("%s partition is encrypted via dm chain below %s", fn, name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:257:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_walk’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:269:1: enter_function: entry to ‘fu_linux_swap_new’
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:278:12: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:279:35: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:290:28: branch_false: following ‘false’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:294:36: branch_false: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:294:35: branch_true: following ‘true’ branch...
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:295:51: branch_true: ...to here
fwupd-2.1.7/plugins/linux-swap/fu-linux-swap.c:305:38: call_function: calling ‘fu_linux_swap_verify_file’ from ‘fu_linux_swap_new’
#  255|   							&encrypted_below,
#  256|   							&error_walk)) {
#  257|-> 		g_debug("dm walk failed for %s: %s", fn, error_walk->message);
#  258|   	} else if (encrypted_below) {
#  259|   		g_debug("%s file is encrypted via dm chain below %s", fn, name);

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-229.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-namefwupd-2.1.1-1.fc44
diffbase-store-results-to/tmp/tmpod1zp95h/fwupd-2.1.1-1.fc44.tar.xz
diffbase-time-created2026-08-03 14:18:18
diffbase-time-finished2026-08-03 14:35:05
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpod1zp95h/fwupd-2.1.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpod1zp95h/fwupd-2.1.1-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-229.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-namefwupd-2.1.7-1.fc45
store-results-to/tmp/tmpi53oylxu/fwupd-2.1.7-1.fc45.tar.xz
time-created2026-08-03 14:35:27
time-finished2026-08-03 14:53:30
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpi53oylxu/fwupd-2.1.7-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpi53oylxu/fwupd-2.1.7-1.fc45.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9