Task #130945 - fixed.err

back to task #130945
download
Error: GCC_ANALYZER_WARNING (CWE-476):
fwupd-2.1.1/src/fu-engine-config.c:212:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_local’
fwupd-2.1.1/src/fu-engine-config.c:111:1: enter_function: entry to ‘fu_engine_config_reload’
fwupd-2.1.1/src/fu-engine-config.c:206:12: branch_true: following ‘true’ branch...
fwupd-2.1.1/src/fu-engine-config.c:206:12: branch_true: ...to here
fwupd-2.1.1/src/fu-engine-config.c:207:35: branch_true: following ‘true’ branch...
fwupd-2.1.1/src/fu-engine-config.c:208:43: branch_true: ...to here
fwupd-2.1.1/src/fu-engine-config.c:208:43: release_memory: ‘error_local’ is NULL
fwupd-2.1.1/src/fu-engine-config.c:210:29: call_function: calling ‘fu_engine_config_report_from_spec’ from ‘fu_engine_config_reload’
fwupd-2.1.1/src/fu-engine-config.c:210:29: return_function: returning to ‘fu_engine_config_reload’ from ‘fu_engine_config_report_from_spec’
fwupd-2.1.1/src/fu-engine-config.c:211:28: branch_true: following ‘true’ branch...
fwupd-2.1.1/src/fu-engine-config.c:212:33: branch_true: ...to here
fwupd-2.1.1/src/fu-engine-config.c:212:33: release_memory: ‘error_local’ is NULL
fwupd-2.1.1/src/fu-engine-config.c:212:33: danger: dereference of NULL ‘error_local’
#  210|   			    fu_engine_config_report_from_spec(self, report_specs[i], &error_local);
#  211|   			if (report == NULL) {
#  212|-> 				g_warning("failed to parse %s: %s",
#  213|   					  report_specs[i],
#  214|   					  error_local->message);

Error: GCC_ANALYZER_WARNING (CWE-688):
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));