ModemManager-1.24.2-3.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
ModemManager-1.24.2/cli/mmcli-common.c:184:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘modem_physdev’
ModemManager-1.24.2/cli/mmcli-common.c:1779:1: enter_function: entry to ‘mmcli_get_cbm_sync’
ModemManager-1.24.2/cli/mmcli-common.c:1790:5: call_function: calling ‘get_object_lookup_info’ from ‘mmcli_get_cbm_sync’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
ModemManager-1.24.2/cli/mmcli-common.c:997:13: warning[-Wanalyzer-null-argument]: use of NULL ‘sim_path’ where non-null expected
ModemManager-1.24.2/cli/mmcli-common.c:946:1: enter_function: entry to ‘mmcli_get_sim_sync’
ModemManager-1.24.2/cli/mmcli-common.c:959:5: call_function: calling ‘get_object_lookup_info’ from ‘mmcli_get_sim_sync’
ModemManager-1.24.2/cli/mmcli-common.c:959:5: return_function: returning to ‘mmcli_get_sim_sync’ from ‘get_object_lookup_info’
ModemManager-1.24.2/cli/mmcli-common.c:961:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-common.c:963:15: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-common.c:963:15: call_function: calling ‘mmcli_get_manager_sync’ from ‘mmcli_get_sim_sync’
ModemManager-1.24.2/cli/mmcli-common.c:963:15: return_function: returning to ‘mmcli_get_sim_sync’ from ‘mmcli_get_manager_sync’
ModemManager-1.24.2/cli/mmcli-common.c:965:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-common.c:965:8: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-common.c:971:22: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-common.c:972:29: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-common.c:982:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-common.c:983:13: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-common.c:983:13: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-common.c:984:24: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-common.c:997:13: release_memory: ‘sim_path’ is NULL
ModemManager-1.24.2/cli/mmcli-common.c:997:13: danger: argument 1 (‘sim_path’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:325:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:270:1: enter_function: entry to ‘get_modem_ready’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:281:5: call_function: calling ‘ensure_modem_3gpp_profile_manager’ from ‘get_modem_ready’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:281:5: return_function: returning to ‘get_modem_ready’ from ‘ensure_modem_3gpp_profile_manager’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:283:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:287:9: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:287:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:297:9: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:297:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:317:9: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:317:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:319:34: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:319:34: release_memory: ‘error’ is NULL
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:323:19: call_function: calling ‘delete_build_input’ from ‘get_modem_ready’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:323:19: return_function: returning to ‘get_modem_ready’ from ‘delete_build_input’
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:324:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:325:70: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:325:70: release_memory: ‘error’ is NULL
ModemManager-1.24.2/cli/mmcli-modem-3gpp-profile-manager.c:325:13: danger: dereference of NULL ‘error’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
ModemManager-1.24.2/cli/mmcli-output.c:1536:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current_path’
ModemManager-1.24.2/cli/mmcli-output.c:1493:28: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
ModemManager-1.24.2/cli/mmcli-output.c:1494:21: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1496:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-output.c:1526:13: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1529:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-output.c:1533:17: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1536:13: danger: dereference of NULL ‘current_path + (long unsigned int)cur_dlen * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
ModemManager-1.24.2/cli/mmcli-output.c:1544:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current_path’
ModemManager-1.24.2/cli/mmcli-output.c:1493:28: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
ModemManager-1.24.2/cli/mmcli-output.c:1494:21: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1496:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-output.c:1526:13: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1529:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/cli/mmcli-output.c:1538:19: branch_false: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1538:19: branch_true: following ‘true’ branch...
ModemManager-1.24.2/cli/mmcli-output.c:1542:17: branch_true: ...to here
ModemManager-1.24.2/cli/mmcli-output.c:1544:13: danger: dereference of NULL ‘current_path + (long unsigned int)cur_dlen * 8’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
ModemManager-1.24.2/libmm-glib/mm-location-gps-nmea.c:84:9: warning[-Wanalyzer-null-argument]: use of NULL ‘trace’ where non-null expected
ModemManager-1.24.2/libmm-glib/mm-location-gps-nmea.c:131:1: enter_function: entry to ‘mm_location_gps_nmea_add_trace’
ModemManager-1.24.2/libmm-glib/mm-location-gps-nmea.c:134:12: call_function: calling ‘location_gps_nmea_take_trace’ from ‘mm_location_gps_nmea_add_trace’
Error: CPPCHECK_WARNING (CWE-476): [#def7]
ModemManager-1.24.2/libqcdm/src/commands.c:1744: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
ModemManager-1.24.2/libqcdm/src/commands.c:1744:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmd’
ModemManager-1.24.2/libqcdm/src/commands.c:1725:5: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
ModemManager-1.24.2/libqcdm/src/commands.c:1726:5: branch_false: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1726:5: branch_false: following ‘false’ branch...
ModemManager-1.24.2/libqcdm/src/commands.c:1729:8: branch_false: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1741:5: branch_false: following ‘false’ branch (when ‘cmdsize <= len’)...
ModemManager-1.24.2/libqcdm/src/commands.c:1743:11: branch_false: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1743:11: acquire_memory: this call could return NULL
ModemManager-1.24.2/libqcdm/src/commands.c:1744:5: danger: ‘cmd’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def9]
ModemManager-1.24.2/libqcdm/src/commands.c:1745: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd
Error: CPPCHECK_WARNING (CWE-476): [#def10]
ModemManager-1.24.2/libqcdm/src/commands.c:1746: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd
Error: CPPCHECK_WARNING (CWE-476): [#def11]
ModemManager-1.24.2/libqcdm/src/commands.c:1752: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd
Error: CPPCHECK_WARNING (CWE-476): [#def12]
ModemManager-1.24.2/libqcdm/src/commands.c:1754: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
ModemManager-1.24.2/libqcdm/src/commands.c:1882:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘items’
ModemManager-1.24.2/libqcdm/src/commands.c:1867:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/libqcdm/src/commands.c:1867:8: branch_true: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1878:12: branch_true: following ‘true’ branch (when ‘num_result_items != 0’)...
ModemManager-1.24.2/libqcdm/src/commands.c:1879:21: branch_true: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1879:21: acquire_memory: this call could return NULL
ModemManager-1.24.2/libqcdm/src/commands.c:1880:25: branch_true: following ‘true’ branch...
ModemManager-1.24.2/libqcdm/src/commands.c:1881:21: branch_true: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1881:20: branch_true: following ‘true’ branch...
ModemManager-1.24.2/libqcdm/src/commands.c:1882:38: branch_true: ...to here
ModemManager-1.24.2/libqcdm/src/commands.c:1882:21: danger: ‘items + (long unsigned int)count * 2’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def14]
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:132:10: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:401:1: enter_function: entry to ‘mm_kernel_device_generic_rules_load’
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:420:26: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:58: branch_true: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:14: call_function: calling ‘load_rules_from_file’ from ‘mm_kernel_device_generic_rules_load’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:138:9: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:401:1: enter_function: entry to ‘mm_kernel_device_generic_rules_load’
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:420:26: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:58: branch_true: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:14: call_function: calling ‘load_rules_from_file’ from ‘mm_kernel_device_generic_rules_load’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:189:9: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:401:1: enter_function: entry to ‘mm_kernel_device_generic_rules_load’
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:413:8: branch_false: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:420:26: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:58: branch_true: ...to here
ModemManager-1.24.2/src/kerneldevice/mm-kernel-device-generic-rules.c:421:14: call_function: calling ‘load_rules_from_file’ from ‘mm_kernel_device_generic_rules_load’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
ModemManager-1.24.2/src/mm-bearer-mbim.c:1739:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nw_error’
ModemManager-1.24.2/src/mm-bearer-mbim.c:1675:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1678:14: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1681:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1682:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1681:9: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1683:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1681:9: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1711:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1711:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1719:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1719:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1731:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1731:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-bearer-mbim.c:1739:16: branch_false: ...to here
ModemManager-1.24.2/src/mm-bearer-mbim.c:1739:16: danger: use of uninitialized value ‘nw_error’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3378:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array_used_flags’
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3393:1: enter_function: entry to ‘nas_network_scan_ready’
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3401:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3404:17: branch_false: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3404:15: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3409:17: branch_false: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3411:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3412:21: branch_true: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3418:16: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3421:13: branch_false: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3421:25: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3425:33: branch_true: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3427:24: call_function: calling ‘get_3gpp_network_info’ from ‘nas_network_scan_ready’
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3427:24: return_function: returning to ‘nas_network_scan_ready’ from ‘get_3gpp_network_info’
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3428:20: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3429:41: branch_true: ...to here
ModemManager-1.24.2/src/mm-broadband-modem-qmi.c:3429:41: call_function: calling ‘get_3gpp_access_technology’ from ‘nas_network_scan_ready’
Error: COMPILER_WARNING (CWE-704): [#def19]
ModemManager-1.24.2/src/mm-broadband-modem.c: scope_hint: In function ‘decode_ussd_response’
ModemManager-1.24.2/src/mm-broadband-modem.c:6617:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def20]
ModemManager-1.24.2/src/mm-broadband-modem.c:6617:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
ModemManager-1.24.2/src/mm-charsets.c:694:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘settings’
ModemManager-1.24.2/src/mm-charsets.c:722:1: enter_function: entry to ‘mm_modem_charset_bytearray_from_utf8’
ModemManager-1.24.2/src/mm-charsets.c:731:16: call_function: calling ‘lookup_charset_settings’ from ‘mm_modem_charset_bytearray_from_utf8’
ModemManager-1.24.2/src/mm-charsets.c:731:16: return_function: returning to ‘mm_modem_charset_bytearray_from_utf8’ from ‘lookup_charset_settings’
ModemManager-1.24.2/src/mm-charsets.c:733:8: branch_false: following ‘false’ branch (when ‘charset != 0’)...
ModemManager-1.24.2/src/mm-charsets.c:739:5: branch_false: ...to here
ModemManager-1.24.2/src/mm-charsets.c:750:23: call_function: calling ‘charset_iconv_from_utf8’ from ‘mm_modem_charset_bytearray_from_utf8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
ModemManager-1.24.2/src/mm-charsets.c:819:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘settings’
ModemManager-1.24.2/src/mm-charsets.c:841:1: enter_function: entry to ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:849:8: branch_false: following ‘false’ branch (when ‘charset != 0’)...
ModemManager-1.24.2/src/mm-charsets.c:855:16: branch_false: ...to here
ModemManager-1.24.2/src/mm-charsets.c:855:16: call_function: calling ‘lookup_charset_settings’ from ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:855:16: return_function: returning to ‘mm_modem_charset_bytearray_to_utf8’ from ‘lookup_charset_settings’
ModemManager-1.24.2/src/mm-charsets.c:871:20: call_function: calling ‘charset_iconv_to_utf8’ from ‘mm_modem_charset_bytearray_to_utf8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
ModemManager-1.24.2/src/mm-charsets.c:883:73: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/mm-charsets.c:841:1: enter_function: entry to ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:849:8: branch_false: following ‘false’ branch (when ‘charset != 0’)...
ModemManager-1.24.2/src/mm-charsets.c:855:16: branch_false: ...to here
ModemManager-1.24.2/src/mm-charsets.c:855:16: call_function: calling ‘lookup_charset_settings’ from ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:855:16: return_function: returning to ‘mm_modem_charset_bytearray_to_utf8’ from ‘lookup_charset_settings’
ModemManager-1.24.2/src/mm-charsets.c:882:8: branch_true: following ‘true’ branch (when ‘utf8’ is NULL)...
ModemManager-1.24.2/src/mm-charsets.c:883:73: branch_true: ...to here
ModemManager-1.24.2/src/mm-charsets.c:883:73: danger: dereference of NULL ‘lookup_charset_settings(charset)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
ModemManager-1.24.2/src/mm-charsets.c:889:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/mm-charsets.c:841:1: enter_function: entry to ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:849:8: branch_false: following ‘false’ branch (when ‘charset != 0’)...
ModemManager-1.24.2/src/mm-charsets.c:855:16: branch_false: ...to here
ModemManager-1.24.2/src/mm-charsets.c:855:16: call_function: calling ‘lookup_charset_settings’ from ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:855:16: return_function: returning to ‘mm_modem_charset_bytearray_to_utf8’ from ‘lookup_charset_settings’
ModemManager-1.24.2/src/mm-charsets.c:859:30: call_function: calling ‘charset_gsm_unpacked_to_utf8’ from ‘mm_modem_charset_bytearray_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:859:30: return_function: returning to ‘mm_modem_charset_bytearray_to_utf8’ from ‘charset_gsm_unpacked_to_utf8’
ModemManager-1.24.2/src/mm-charsets.c:882:8: branch_false: following ‘false’ branch (when ‘utf8’ is non-NULL)...
ModemManager-1.24.2/src/mm-charsets.c:887:10: branch_false: ...to here
ModemManager-1.24.2/src/mm-charsets.c:887:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-charsets.c:889:67: branch_true: ...to here
ModemManager-1.24.2/src/mm-charsets.c:889:67: danger: dereference of NULL ‘lookup_charset_settings(charset)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:506:86: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:476:1: enter_function: entry to ‘load_update_settings_ready’
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:489:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:496:10: branch_false: ...to here
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:496:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:497:9: branch_true: ...to here
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:498:15: call_function: calling ‘mm_iface_firmware_build_generic_device_ids’ from ‘load_update_settings_ready’
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:498:15: return_function: returning to ‘load_update_settings_ready’ from ‘mm_iface_firmware_build_generic_device_ids’
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:499:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:506:86: branch_false: ...to here
ModemManager-1.24.2/src/mm-iface-modem-firmware.c:506:86: danger: dereference of NULL ‘mm_iface_firmware_build_generic_device_ids(self, & error)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
ModemManager-1.24.2/src/mm-modem-helpers.c:3005:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘interval_separator’
ModemManager-1.24.2/src/mm-modem-helpers.c:2945:1: enter_function: entry to ‘mm_3gpp_parse_cscb_response’
ModemManager-1.24.2/src/mm-modem-helpers.c:2957:8: branch_false: following ‘false’ branch (when ‘len != 0’)...
ModemManager-1.24.2/src/mm-modem-helpers.c:2965:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2972:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:2974:5: branch_true: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2975:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:2978:10: branch_false: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2978:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:2983:11: branch_false: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2984:8: branch_false: following ‘false’ branch (when the strings are equal)...
ModemManager-1.24.2/src/mm-modem-helpers.c:2990:11: branch_false: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2992:17: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:2995:9: branch_true: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:2997:12: branch_true: following ‘true’ branch (when ‘interval_separator’ is non-NULL)...
ModemManager-1.24.2/src/mm-modem-helpers.c:3003:21: call_function: inlined call to ‘g_strdup_inline’ from ‘mm_3gpp_parse_cscb_response’
ModemManager-1.24.2/src/mm-modem-helpers.c:3005:13: danger: dereference of NULL ‘interval_separator’
Error: COMPILER_WARNING (CWE-704): [#def27]
ModemManager-1.24.2/src/mm-modem-helpers.c: scope_hint: In function ‘mm_3gpp_parse_cscs_test_response’
ModemManager-1.24.2/src/mm-modem-helpers.c:3261:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def28]
ModemManager-1.24.2/src/mm-modem-helpers.c:3261:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def29]
ModemManager-1.24.2/src/mm-modem-helpers.c:3265:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def30]
ModemManager-1.24.2/src/mm-modem-helpers.c:3265:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
ModemManager-1.24.2/src/mm-modem-helpers.c:3828:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ModemManager-1.24.2/src/mm-modem-helpers.c:3801:1: enter_function: entry to ‘mm_3gpp_parse_cgev_indication_pdp’
ModemManager-1.24.2/src/mm-modem-helpers.c:3815:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:3820:9: branch_true: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:3825:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/mm-modem-helpers.c:3827:11: branch_true: ...to here
ModemManager-1.24.2/src/mm-modem-helpers.c:3827:11: call_function: calling ‘mm_strip_tag’ from ‘mm_3gpp_parse_cgev_indication_pdp’
ModemManager-1.24.2/src/mm-modem-helpers.c:3827:11: return_function: returning to ‘mm_3gpp_parse_cgev_indication_pdp’ from ‘mm_strip_tag’
ModemManager-1.24.2/src/mm-modem-helpers.c:3828:33: danger: argument 1 (‘mm_strip_tag(str, "+CGEV:")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
ModemManager-1.24.2/src/mm-modem-helpers.c:3901:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ModemManager-1.24.2/src/mm-modem-helpers.c:3880:1: enter_function: entry to ‘mm_3gpp_parse_cgev_indication_primary’
ModemManager-1.24.2/src/mm-modem-helpers.c:3900:11: call_function: calling ‘mm_strip_tag’ from ‘mm_3gpp_parse_cgev_indication_primary’
ModemManager-1.24.2/src/mm-modem-helpers.c:3900:11: return_function: returning to ‘mm_3gpp_parse_cgev_indication_primary’ from ‘mm_strip_tag’
ModemManager-1.24.2/src/mm-modem-helpers.c:3901:33: danger: argument 1 (‘mm_strip_tag(str, "+CGEV:")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
ModemManager-1.24.2/src/mm-modem-helpers.c:3958:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ModemManager-1.24.2/src/mm-modem-helpers.c:3933:1: enter_function: entry to ‘mm_3gpp_parse_cgev_indication_secondary’
ModemManager-1.24.2/src/mm-modem-helpers.c:3957:11: call_function: calling ‘mm_strip_tag’ from ‘mm_3gpp_parse_cgev_indication_secondary’
ModemManager-1.24.2/src/mm-modem-helpers.c:3957:11: return_function: returning to ‘mm_3gpp_parse_cgev_indication_secondary’ from ‘mm_strip_tag’
ModemManager-1.24.2/src/mm-modem-helpers.c:3958:33: danger: argument 1 (‘mm_strip_tag(str, "+CGEV:")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
ModemManager-1.24.2/src/mm-shared-qmi.c:3058:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current_config’
ModemManager-1.24.2/src/mm-shared-qmi.c:3029:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-shared-qmi.c:3034:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-shared-qmi.c:3034:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-shared-qmi.c:3041:10: branch_false: ...to here
ModemManager-1.24.2/src/mm-shared-qmi.c:3041:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-shared-qmi.c:3041:8: branch_false: ...to here
ModemManager-1.24.2/src/mm-shared-qmi.c:3047:17: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-shared-qmi.c:3054:8: branch_false: ...to here
ModemManager-1.24.2/src/mm-shared-qmi.c:3054:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/mm-shared-qmi.c:3058:9: branch_false: ...to here
ModemManager-1.24.2/src/mm-shared-qmi.c:3058:9: danger: dereference of NULL ‘current_config’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:594:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:580:1: enter_function: entry to ‘disconnect_connection_status_ready’
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:586:31: release_memory: ‘error’ is NULL
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:590:14: call_function: calling ‘load_connection_status_finish’ from ‘disconnect_connection_status_ready’
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:590:14: return_function: returning to ‘disconnect_connection_status_ready’ from ‘load_connection_status_finish’
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:594:9: release_memory: ‘error’ is NULL
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-bearer-cinterion.c:594:9: danger: dereference of NULL ‘error’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3114:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3106:27: release_memory: ‘error’ is NULL
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3113:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3114:9: branch_true: ...to here
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3114:9: release_memory: ‘error’ is NULL
ModemManager-1.24.2/src/plugins/cinterion/mm-broadband-modem-cinterion.c:3114:9: danger: dereference of NULL ‘error’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1475:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current’
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1464:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1469:9: branch_false: ...to here
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1469:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1474:15: branch_false: ...to here
ModemManager-1.24.2/src/plugins/huawei/mm-broadband-modem-huawei.c:1475:24: danger: dereference of NULL ‘current’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:175:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘interval_separator’
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:122:1: enter_function: entry to ‘load_supported_modes_finish’
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:134:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:142:9: branch_false: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:144:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:146:5: branch_true: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:147:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:150:15: branch_true: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:151:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:152:21: branch_true: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:155:8: branch_false: following ‘false’ branch (when ‘split’ is non-NULL)...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:155:8: branch_false: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:163:17: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:166:9: branch_true: ...to here
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:168:12: branch_true: following ‘true’ branch (when ‘interval_separator’ is non-NULL)...
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:173:21: call_function: inlined call to ‘g_strdup_inline’ from ‘load_supported_modes_finish’
ModemManager-1.24.2/src/plugins/icera/mm-broadband-modem-icera.c:175:13: danger: dereference of NULL ‘interval_separator’
Error: COMPILER_WARNING (CWE-704): [#def39]
ModemManager-1.24.2/src/plugins/novatel/mm-broadband-modem-novatel.c: scope_hint: In function ‘get_one_quality’
ModemManager-1.24.2/src/plugins/novatel/mm-broadband-modem-novatel.c:729:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def40]
ModemManager-1.24.2/src/plugins/novatel/mm-broadband-modem-novatel.c:729:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def41]
ModemManager-1.24.2/src/plugins/sierra/mm-broadband-modem-sierra.c: scope_hint: In function ‘get_roam_value’
ModemManager-1.24.2/src/plugins/sierra/mm-broadband-modem-sierra.c:153:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def42]
ModemManager-1.24.2/src/plugins/sierra/mm-broadband-modem-sierra.c:153:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1625:1: enter_function: entry to ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1643:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1651:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1653:38: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1654:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:9: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1661:16: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1664:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1665:13: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1666:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1658:27: call_function: inlined call to ‘g_autoptr_cleanup_generic_gfree’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1672:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:10: danger: dereference of NULL ‘parse_bands_from_string(bands2g_str, "2G", log_object)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1625:1: enter_function: entry to ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1643:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1651:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1653:38: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1654:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:9: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1661:16: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1664:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1665:13: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1666:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1658:27: call_function: inlined call to ‘g_autoptr_cleanup_generic_gfree’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1672:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:27: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:27: danger: dereference of NULL ‘parse_bands_from_string(bands3g_str, "3G", log_object)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1625:1: enter_function: entry to ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1643:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1651:5: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1653:38: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1654:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:9: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1657:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1661:16: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1664:12: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1665:13: branch_true: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1666:12: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1658:27: call_function: inlined call to ‘g_autoptr_cleanup_generic_gfree’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1672:8: branch_false: following ‘false’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: branch_false: ...to here
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1678:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1679:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: call_function: calling ‘parse_bands_from_string’ from ‘mm_ublox_parse_uact_test’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1680:15: return_function: returning to ‘mm_ublox_parse_uact_test’ from ‘parse_bands_from_string’
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:8: branch_true: following ‘true’ branch...
ModemManager-1.24.2/src/plugins/ublox/mm-modem-helpers-ublox.c:1682:44: danger: dereference of NULL ‘parse_bands_from_string(bands4g_str, "4G", log_object)’
Scan Properties
| 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 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-201.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 | ModemManager-1.24.2-3.fc44 |
| store-results-to | /tmp/tmpbnqcppsi/ModemManager-1.24.2-3.fc44.tar.xz |
| time-created | 2026-08-03 13:06:12 |
| time-finished | 2026-08-03 13:13:40 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpbnqcppsi/ModemManager-1.24.2-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbnqcppsi/ModemManager-1.24.2-3.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |