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);
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-229.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | fwupd-2.1.1-1.fc44 |
| diffbase-store-results-to | /tmp/tmpod1zp95h/fwupd-2.1.1-1.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 14:18:18 |
| diffbase-time-finished | 2026-08-03 14:35:05 |
| diffbase-tool | csmock |
| 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-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-229.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | fwupd-2.1.7-1.fc45 |
| store-results-to | /tmp/tmpi53oylxu/fwupd-2.1.7-1.fc45.tar.xz |
| time-created | 2026-08-03 14:35:27 |
| time-finished | 2026-08-03 14:53:30 |
| title | Newly introduced findings |
| tool | csmock |
| 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-version | csmock-3.8.7.HEAD-1.el9 |