Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
fwupd-2.1.1/src/fu-release.c:1378:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
fwupd-2.1.1/src/fu-release.c:1348:1: enter_function: entry to ‘fu_release_compare’
fwupd-2.1.1/src/fu-release.c:1350:29: call_function: calling ‘fu_release_get_device’ from ‘fu_release_compare’
fwupd-2.1.1/src/fu-release.c:1350:29: return_function: returning to ‘fu_release_compare’ from ‘fu_release_get_device’
fwupd-2.1.1/src/fu-release.c:1351:29: call_function: calling ‘fu_release_get_device’ from ‘fu_release_compare’
fwupd-2.1.1/src/fu-release.c:1351:29: return_function: returning to ‘fu_release_compare’ from ‘fu_release_get_device’
fwupd-2.1.1/src/fu-release.c:1354:12: branch_false: following ‘false’ branch...
fwupd-2.1.1/src/fu-release.c:1362:13: branch_false: ...to here
fwupd-2.1.1/src/fu-release.c:1362:12: branch_false: following ‘false’ branch...
fwupd-2.1.1/src/fu-release.c:1364:12: branch_false: ...to here
fwupd-2.1.1/src/fu-release.c:1364:12: branch_false: following ‘false’ branch...
fwupd-2.1.1/src/fu-release.c:1368:13: branch_false: ...to here
fwupd-2.1.1/src/fu-release.c:1378:16: danger: argument 1 (‘fu_release_get_device(release1)’) NULL where non-null expected
# 1376|   
# 1377|   	/* FWUPD_DEVICE_FLAG_INSTALL_ALL_RELEASES has to be from oldest to newest */
# 1378|-> 	return fu_version_compare(fu_release_get_version(release1),
# 1379|   				  fu_release_get_version(release2),
# 1380|   				  fu_device_get_version_format(device1));

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
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.95.0
diffbase-analyzer-version-cppcheck2.20.0
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-107.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.4-1.fc45
diffbase-store-results-to/tmp/tmpyr5zpmef/fwupd-2.1.4-1.fc45.tar.xz
diffbase-time-created2026-06-01 12:30:01
diffbase-time-finished2026-06-01 12:46:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpyr5zpmef/fwupd-2.1.4-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpyr5zpmef/fwupd-2.1.4-1.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-107.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.1-1.fc44
store-results-to/tmp/tmp0h6iyoyq/fwupd-2.1.1-1.fc44.tar.xz
time-created2026-06-01 12:13:33
time-finished2026-06-01 12:29:44
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp0h6iyoyq/fwupd-2.1.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0h6iyoyq/fwupd-2.1.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9