Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer.c Examining data/modemmanager-1.14.8/libmm-glib/mm-sms-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-ip-config.h Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-cdma.c Examining data/modemmanager-1.14.8/libmm-glib/mm-location-gps-raw.c Examining data/modemmanager-1.14.8/libmm-glib/mm-unlock-retries.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-messaging.h Examining data/modemmanager-1.14.8/libmm-glib/mm-firmware-update-settings.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-time.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-signal.c Examining data/modemmanager-1.14.8/libmm-glib/mm-location-gps-raw.h Examining data/modemmanager-1.14.8/libmm-glib/mm-call.c Examining data/modemmanager-1.14.8/libmm-glib/tests/test-pco.c Examining data/modemmanager-1.14.8/libmm-glib/tests/test-common-helpers.c Examining data/modemmanager-1.14.8/libmm-glib/mm-call-audio-format.c Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-stats.h Examining data/modemmanager-1.14.8/libmm-glib/mm-simple-status.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-cdma.h Examining data/modemmanager-1.14.8/libmm-glib/mm-location-3gpp.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-location.c Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-helpers.h Examining data/modemmanager-1.14.8/libmm-glib/mm-firmware-update-settings.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-voice.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-signal.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-time.h Examining data/modemmanager-1.14.8/libmm-glib/mm-kernel-event-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-firmware-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-firmware.c Examining data/modemmanager-1.14.8/libmm-glib/mm-sms-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-location-gps-nmea.c Examining data/modemmanager-1.14.8/libmm-glib/libmm-glib.h Examining data/modemmanager-1.14.8/libmm-glib/mm-simple-connect-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-simple-status.h Examining data/modemmanager-1.14.8/libmm-glib/mm-location-cdma-bs.c Examining data/modemmanager-1.14.8/libmm-glib/mm-pco.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-oma.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-3gpp.h Examining data/modemmanager-1.14.8/libmm-glib/mm-unlock-retries.c Examining data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-network-timezone.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-3gpp-ussd.h Examining data/modemmanager-1.14.8/libmm-glib/mm-signal.h Examining data/modemmanager-1.14.8/libmm-glib/mm-object.c Examining data/modemmanager-1.14.8/libmm-glib/mm-location-cdma-bs.h Examining data/modemmanager-1.14.8/libmm-glib/mm-pco.h Examining data/modemmanager-1.14.8/libmm-glib/mm-location-common.h Examining data/modemmanager-1.14.8/libmm-glib/mm-common-helpers.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-3gpp-ussd.c Examining data/modemmanager-1.14.8/libmm-glib/mm-call.h Examining data/modemmanager-1.14.8/libmm-glib/mm-manager.c Examining data/modemmanager-1.14.8/libmm-glib/mm-helper-types.c Examining data/modemmanager-1.14.8/libmm-glib/mm-kernel-event-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-object.h Examining data/modemmanager-1.14.8/libmm-glib/mm-signal.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-location.h Examining data/modemmanager-1.14.8/libmm-glib/mm-call-audio-format.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-voice.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-simple.h Examining data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-sim.h Examining data/modemmanager-1.14.8/libmm-glib/mm-firmware-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-messaging.c Examining data/modemmanager-1.14.8/libmm-glib/mm-simple-connect-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-manager.h Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-stats.c Examining data/modemmanager-1.14.8/libmm-glib/mm-location-gps-nmea.h Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-simple.c Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer-ip-config.c Examining data/modemmanager-1.14.8/libmm-glib/mm-sms.h Examining data/modemmanager-1.14.8/libmm-glib/mm-location-3gpp.c Examining data/modemmanager-1.14.8/libmm-glib/mm-call-properties.h Examining data/modemmanager-1.14.8/libmm-glib/mm-sim.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-3gpp.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem.c Examining data/modemmanager-1.14.8/libmm-glib/mm-common-helpers.h Examining data/modemmanager-1.14.8/libmm-glib/mm-network-timezone.c Examining data/modemmanager-1.14.8/libmm-glib/mm-call-properties.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-oma.c Examining data/modemmanager-1.14.8/libmm-glib/mm-modem-firmware.h Examining data/modemmanager-1.14.8/libmm-glib/mm-helper-types.h Examining data/modemmanager-1.14.8/libmm-glib/mm-sms.c Examining data/modemmanager-1.14.8/libmm-glib/mm-bearer.h Examining data/modemmanager-1.14.8/test/lsudev.c Examining data/modemmanager-1.14.8/test/mmrules.c Examining data/modemmanager-1.14.8/test/mmsmspdu.c Examining data/modemmanager-1.14.8/test/mmtty.c Examining data/modemmanager-1.14.8/test/mmsmsmonitor.c Examining data/modemmanager-1.14.8/include/ModemManager-tags.h Examining data/modemmanager-1.14.8/include/ModemManager-enums.h Examining data/modemmanager-1.14.8/include/ModemManager-version.h Examining data/modemmanager-1.14.8/include/ModemManager-errors.h Examining data/modemmanager-1.14.8/include/ModemManager-names.h Examining data/modemmanager-1.14.8/include/ModemManager.h Examining data/modemmanager-1.14.8/include/ModemManager-compat.h Examining data/modemmanager-1.14.8/cli/mmcli-modem-simple.c Examining data/modemmanager-1.14.8/cli/mmcli.c Examining data/modemmanager-1.14.8/cli/mmcli-output.h Examining data/modemmanager-1.14.8/cli/mmcli-modem-cdma.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-time.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-oma.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-messaging.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-voice.c Examining data/modemmanager-1.14.8/cli/mmcli-modem.c Examining data/modemmanager-1.14.8/cli/mmcli-sms.c Examining data/modemmanager-1.14.8/cli/mmcli-output.c Examining data/modemmanager-1.14.8/cli/mmcli.h Examining data/modemmanager-1.14.8/cli/mmcli-sim.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-location.c Examining data/modemmanager-1.14.8/cli/mmcli-manager.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-signal.c Examining data/modemmanager-1.14.8/cli/mmcli-common.c Examining data/modemmanager-1.14.8/cli/mmcli-bearer.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-firmware.c Examining data/modemmanager-1.14.8/cli/mmcli-call.c Examining data/modemmanager-1.14.8/cli/mmcli-modem-3gpp.c Examining data/modemmanager-1.14.8/cli/mmcli-common.h Examining data/modemmanager-1.14.8/build-aux/mm-enums-template.h Examining data/modemmanager-1.14.8/build-aux/mm-errors-template.h Examining data/modemmanager-1.14.8/build-aux/mm-errors-quarks-template.c Examining data/modemmanager-1.14.8/build-aux/mm-errors-template.c Examining data/modemmanager-1.14.8/build-aux/mm-enums-template.c Examining data/modemmanager-1.14.8/src/mm-port-probe-at.h Examining data/modemmanager-1.14.8/src/mm-sleep-monitor.h Examining data/modemmanager-1.14.8/src/mm-bearer-qmi.c Examining data/modemmanager-1.14.8/src/mm-sms-qmi.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-firmware.h Examining data/modemmanager-1.14.8/src/mm-sim-mbim.c Examining data/modemmanager-1.14.8/src/mm-shared-qmi.c Examining data/modemmanager-1.14.8/src/mm-sms-part-3gpp.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-firmware.c Examining data/modemmanager-1.14.8/src/mm-port-qmi.h Examining data/modemmanager-1.14.8/src/mm-auth-provider.c Examining data/modemmanager-1.14.8/src/mm-bearer-qmi.h Examining data/modemmanager-1.14.8/src/mm-sms-list.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-cdma.c Examining data/modemmanager-1.14.8/src/mm-base-bearer.h Examining data/modemmanager-1.14.8/src/mm-modem-helpers-qmi.c Examining data/modemmanager-1.14.8/src/mm-port-serial-qcdm.h Examining data/modemmanager-1.14.8/src/mm-log.c Examining data/modemmanager-1.14.8/src/mm-bearer-list.c Examining data/modemmanager-1.14.8/src/mm-broadband-modem.h Examining data/modemmanager-1.14.8/src/mm-port-serial.c Examining data/modemmanager-1.14.8/src/mm-call-list.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-3gpp.c Examining data/modemmanager-1.14.8/src/mm-sim-qmi.h Examining data/modemmanager-1.14.8/src/mm-base-manager.h Examining data/modemmanager-1.14.8/src/tests/test-udev-rules.c Examining data/modemmanager-1.14.8/src/tests/test-modem-helpers.c Examining data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c Examining data/modemmanager-1.14.8/src/tests/test-modem-helpers-qmi.c Examining data/modemmanager-1.14.8/src/tests/test-sms-part-3gpp.c Examining data/modemmanager-1.14.8/src/tests/test-sms-part-cdma.c Examining data/modemmanager-1.14.8/src/tests/test-at-serial-port.c Examining data/modemmanager-1.14.8/src/tests/test-charsets.c Examining data/modemmanager-1.14.8/src/tests/test-error-helpers.c Examining data/modemmanager-1.14.8/src/mm-iface-modem.h Examining data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.h Examining data/modemmanager-1.14.8/src/mm-device.h Examining data/modemmanager-1.14.8/src/mm-auth-provider.h Examining data/modemmanager-1.14.8/src/mm-base-bearer.c Examining data/modemmanager-1.14.8/src/mm-utils.h Examining data/modemmanager-1.14.8/src/main.c Examining data/modemmanager-1.14.8/src/mm-plugin.h Examining data/modemmanager-1.14.8/src/mm-port-serial-at.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-oma.h Examining data/modemmanager-1.14.8/src/mm-base-modem.c Examining data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c Examining data/modemmanager-1.14.8/src/mm-context.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-simple.h Examining data/modemmanager-1.14.8/src/mm-sms-part.c Examining data/modemmanager-1.14.8/src/mm-port-serial-gps.c Examining data/modemmanager-1.14.8/src/mm-sms-mbim.h Examining data/modemmanager-1.14.8/src/mm-port-serial.h Examining data/modemmanager-1.14.8/src/mm-base-modem.h Examining data/modemmanager-1.14.8/src/mm-base-call.c Examining data/modemmanager-1.14.8/src/mm-port.h Examining data/modemmanager-1.14.8/src/mm-filter.c Examining data/modemmanager-1.14.8/src/mm-log.h Examining data/modemmanager-1.14.8/src/mm-private-boxed-types.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-location.c Examining data/modemmanager-1.14.8/src/mm-log-test.h Examining data/modemmanager-1.14.8/src/mm-base-modem-at.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-messaging.h Examining data/modemmanager-1.14.8/src/mm-modem-helpers.c Examining data/modemmanager-1.14.8/src/mm-port-mbim.c Examining data/modemmanager-1.14.8/src/mm-port-probe-at.c Examining data/modemmanager-1.14.8/src/mm-broadband-modem.c Examining data/modemmanager-1.14.8/src/mm-base-call.h Examining data/modemmanager-1.14.8/src/mm-call-list.h Examining data/modemmanager-1.14.8/src/mm-sim-mbim.h Examining data/modemmanager-1.14.8/src/mm-serial-parsers.h Examining data/modemmanager-1.14.8/src/mm-error-helpers.h Examining data/modemmanager-1.14.8/src/mm-error-helpers.c Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.h Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic-rules.h Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.h Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.c Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device.h Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic-rules.c Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device.c Examining data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c Examining data/modemmanager-1.14.8/src/mm-sms-part-cdma.h Examining data/modemmanager-1.14.8/src/mm-port-probe.h Examining data/modemmanager-1.14.8/src/mm-sms-qmi.h Examining data/modemmanager-1.14.8/src/mm-sms-list.c Examining data/modemmanager-1.14.8/src/mm-base-sim.c Examining data/modemmanager-1.14.8/src/mm-sleep-monitor.c Examining data/modemmanager-1.14.8/src/mm-sim-qmi.c Examining data/modemmanager-1.14.8/src/mm-shared.h Examining data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-3gpp-ussd.h Examining data/modemmanager-1.14.8/src/mm-bearer-list.h Examining data/modemmanager-1.14.8/src/mm-filter.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-3gpp.h Examining data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.h Examining data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c Examining data/modemmanager-1.14.8/src/mm-modem-helpers.h Examining data/modemmanager-1.14.8/src/mm-charsets.h Examining data/modemmanager-1.14.8/src/mm-serial-parsers.c Examining data/modemmanager-1.14.8/src/mm-modem-helpers-mbim.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-oma.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-3gpp-ussd.c Examining data/modemmanager-1.14.8/src/mm-sms-part-cdma.c Examining data/modemmanager-1.14.8/src/mm-plugin.c Examining data/modemmanager-1.14.8/src/mm-device.c Examining data/modemmanager-1.14.8/src/mm-bearer-mbim.h Examining data/modemmanager-1.14.8/src/mm-port-probe.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-time.h Examining data/modemmanager-1.14.8/src/mm-base-manager.c Examining data/modemmanager-1.14.8/src/mm-base-sms.h Examining data/modemmanager-1.14.8/src/mm-bearer-mbim.c Examining data/modemmanager-1.14.8/src/mm-broadband-bearer.c Examining data/modemmanager-1.14.8/src/mm-modem-helpers-qmi.h Examining data/modemmanager-1.14.8/src/mm-sms-mbim.c Examining data/modemmanager-1.14.8/src/mm-charsets.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-location.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-cdma.h Examining data/modemmanager-1.14.8/src/mm-base-modem-at.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-simple.c Examining data/modemmanager-1.14.8/src/mm-plugin-manager.c Examining data/modemmanager-1.14.8/src/mm-port-mbim.h Examining data/modemmanager-1.14.8/src/mm-port-serial-gps.h Examining data/modemmanager-1.14.8/src/mm-sms-part.h Examining data/modemmanager-1.14.8/src/mm-base-sim.h Examining data/modemmanager-1.14.8/src/mm-base-sms.c Examining data/modemmanager-1.14.8/src/mm-broadband-bearer.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-messaging.c Examining data/modemmanager-1.14.8/src/mm-port-qmi.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-signal.h Examining data/modemmanager-1.14.8/src/mm-iface-modem.c Examining data/modemmanager-1.14.8/src/mm-port.c Examining data/modemmanager-1.14.8/src/mm-modem-helpers-mbim.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-signal.c Examining data/modemmanager-1.14.8/src/mm-private-boxed-types.h Examining data/modemmanager-1.14.8/src/mm-context.h Examining data/modemmanager-1.14.8/src/mm-log-object.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-voice.c Examining data/modemmanager-1.14.8/src/mm-plugin-manager.h Examining data/modemmanager-1.14.8/src/mm-port-serial-at.h Examining data/modemmanager-1.14.8/src/mm-shared-qmi.h Examining data/modemmanager-1.14.8/src/mm-iface-modem-voice.h Examining data/modemmanager-1.14.8/src/mm-log-object.h Examining data/modemmanager-1.14.8/src/mm-port-serial-qcdm.c Examining data/modemmanager-1.14.8/src/mm-iface-modem-time.c Examining data/modemmanager-1.14.8/libqcdm/tests/modepref.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.h Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-crc.c Examining data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.h Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.h Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-crc.h Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-result.h Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-result.c Examining data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c Examining data/modemmanager-1.14.8/libqcdm/tests/reset.c Examining data/modemmanager-1.14.8/libqcdm/src/nv-items.h Examining data/modemmanager-1.14.8/libqcdm/src/commands.h Examining data/modemmanager-1.14.8/libqcdm/src/logs.h Examining data/modemmanager-1.14.8/libqcdm/src/errors.h Examining data/modemmanager-1.14.8/libqcdm/src/utils.h Examining data/modemmanager-1.14.8/libqcdm/src/com.h Examining data/modemmanager-1.14.8/libqcdm/src/commands.c Examining data/modemmanager-1.14.8/libqcdm/src/result-private.h Examining data/modemmanager-1.14.8/libqcdm/src/log-items.h Examining data/modemmanager-1.14.8/libqcdm/src/com.c Examining data/modemmanager-1.14.8/libqcdm/src/result.c Examining data/modemmanager-1.14.8/libqcdm/src/result.h Examining data/modemmanager-1.14.8/libqcdm/src/logs.c Examining data/modemmanager-1.14.8/libqcdm/src/utils.c Examining data/modemmanager-1.14.8/libqcdm/src/errors.c Examining data/modemmanager-1.14.8/libqcdm/src/dm-commands.h Examining data/modemmanager-1.14.8/plugins/huawei/mm-broadband-modem-huawei.h Examining data/modemmanager-1.14.8/plugins/huawei/mm-sim-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-plugin-huawei.h Examining data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.h Examining data/modemmanager-1.14.8/plugins/huawei/tests/test-modem-helpers-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-broadband-modem-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-plugin-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-sim-huawei.h Examining data/modemmanager-1.14.8/plugins/huawei/mm-broadband-bearer-huawei.c Examining data/modemmanager-1.14.8/plugins/huawei/mm-broadband-bearer-huawei.h Examining data/modemmanager-1.14.8/plugins/motorola/mm-plugin-motorola.c Examining data/modemmanager-1.14.8/plugins/motorola/mm-broadband-modem-motorola.c Examining data/modemmanager-1.14.8/plugins/motorola/mm-plugin-motorola.h Examining data/modemmanager-1.14.8/plugins/motorola/mm-broadband-modem-motorola.h Examining data/modemmanager-1.14.8/plugins/thuraya/mm-plugin-thuraya.c Examining data/modemmanager-1.14.8/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c Examining data/modemmanager-1.14.8/plugins/thuraya/mm-broadband-modem-thuraya.h Examining data/modemmanager-1.14.8/plugins/thuraya/mm-broadband-modem-thuraya.c Examining data/modemmanager-1.14.8/plugins/thuraya/mm-modem-helpers-thuraya.h Examining data/modemmanager-1.14.8/plugins/thuraya/mm-plugin-thuraya.h Examining data/modemmanager-1.14.8/plugins/thuraya/mm-modem-helpers-thuraya.c Examining data/modemmanager-1.14.8/plugins/telit/mm-modem-helpers-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-shared.c Examining data/modemmanager-1.14.8/plugins/telit/mm-common-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-common-telit.c Examining data/modemmanager-1.14.8/plugins/telit/tests/test-mm-modem-helpers-telit.c Examining data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-telit.c Examining data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-mbim-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-shared-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-plugin-telit.h Examining data/modemmanager-1.14.8/plugins/telit/mm-plugin-telit.c Examining data/modemmanager-1.14.8/plugins/telit/mm-shared-telit.c Examining data/modemmanager-1.14.8/plugins/telit/mm-modem-helpers-telit.c Examining data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-mbim-telit.c Examining data/modemmanager-1.14.8/plugins/dlink/mm-plugin-dlink.h Examining data/modemmanager-1.14.8/plugins/dlink/mm-plugin-dlink.c Examining data/modemmanager-1.14.8/plugins/tests/test-fixture.h Examining data/modemmanager-1.14.8/plugins/tests/test-udev-rules.c Examining data/modemmanager-1.14.8/plugins/tests/test-keyfiles.c Examining data/modemmanager-1.14.8/plugins/tests/test-port-context.h Examining data/modemmanager-1.14.8/plugins/tests/test-helpers.c Examining data/modemmanager-1.14.8/plugins/tests/test-fixture.c Examining data/modemmanager-1.14.8/plugins/tests/test-helpers.h Examining data/modemmanager-1.14.8/plugins/tests/test-port-context.c Examining data/modemmanager-1.14.8/plugins/wavecom/mm-plugin-wavecom.c Examining data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c Examining data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.h Examining data/modemmanager-1.14.8/plugins/wavecom/mm-plugin-wavecom.h Examining data/modemmanager-1.14.8/plugins/x22x/mm-broadband-modem-x22x.c Examining data/modemmanager-1.14.8/plugins/x22x/mm-broadband-modem-x22x.h Examining data/modemmanager-1.14.8/plugins/x22x/mm-plugin-x22x.h Examining data/modemmanager-1.14.8/plugins/x22x/mm-plugin-x22x.c Examining data/modemmanager-1.14.8/plugins/anydata/mm-plugin-anydata.h Examining data/modemmanager-1.14.8/plugins/anydata/mm-broadband-modem-anydata.c Examining data/modemmanager-1.14.8/plugins/anydata/mm-plugin-anydata.c Examining data/modemmanager-1.14.8/plugins/anydata/mm-broadband-modem-anydata.h Examining data/modemmanager-1.14.8/plugins/icera/mm-shared.c Examining data/modemmanager-1.14.8/plugins/icera/mm-broadband-modem-icera.h Examining data/modemmanager-1.14.8/plugins/icera/tests/test-modem-helpers-icera.c Examining data/modemmanager-1.14.8/plugins/icera/mm-broadband-modem-icera.c Examining data/modemmanager-1.14.8/plugins/icera/mm-modem-helpers-icera.h Examining data/modemmanager-1.14.8/plugins/icera/mm-broadband-bearer-icera.h Examining data/modemmanager-1.14.8/plugins/icera/mm-broadband-bearer-icera.c Examining data/modemmanager-1.14.8/plugins/icera/mm-modem-helpers-icera.c Examining data/modemmanager-1.14.8/plugins/quectel/mm-plugin-quectel.c Examining data/modemmanager-1.14.8/plugins/quectel/mm-broadband-modem-quectel.c Examining data/modemmanager-1.14.8/plugins/quectel/mm-shared-quectel.c Examining data/modemmanager-1.14.8/plugins/quectel/mm-plugin-quectel.h Examining data/modemmanager-1.14.8/plugins/quectel/mm-shared-quectel.h Examining data/modemmanager-1.14.8/plugins/quectel/mm-broadband-modem-qmi-quectel.h Examining data/modemmanager-1.14.8/plugins/quectel/mm-broadband-modem-quectel.h Examining data/modemmanager-1.14.8/plugins/quectel/mm-broadband-modem-qmi-quectel.c Examining data/modemmanager-1.14.8/plugins/haier/mm-plugin-haier.h Examining data/modemmanager-1.14.8/plugins/haier/mm-plugin-haier.c Examining data/modemmanager-1.14.8/plugins/mtk/mm-broadband-modem-mtk.h Examining data/modemmanager-1.14.8/plugins/mtk/mm-broadband-modem-mtk.c Examining data/modemmanager-1.14.8/plugins/mtk/mm-plugin-mtk.c Examining data/modemmanager-1.14.8/plugins/mtk/mm-plugin-mtk.h Examining data/modemmanager-1.14.8/plugins/mbm/mm-plugin-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/tests/test-modem-helpers-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/mm-plugin-mbm.h Examining data/modemmanager-1.14.8/plugins/mbm/mm-sim-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/mm-broadband-modem-mbm.h Examining data/modemmanager-1.14.8/plugins/mbm/mm-broadband-bearer-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/mm-broadband-modem-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/mm-sim-mbm.h Examining data/modemmanager-1.14.8/plugins/mbm/mm-modem-helpers-mbm.h Examining data/modemmanager-1.14.8/plugins/mbm/mm-modem-helpers-mbm.c Examining data/modemmanager-1.14.8/plugins/mbm/mm-broadband-bearer-mbm.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-shared.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel-lte.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-bearer-novatel-lte.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-bearer-novatel-lte.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-common-novatel.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-plugin-novatel.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-common-novatel.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-plugin-novatel.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-sim-novatel-lte.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel-lte.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-plugin-novatel-lte.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel.h Examining data/modemmanager-1.14.8/plugins/novatel/mm-plugin-novatel-lte.c Examining data/modemmanager-1.14.8/plugins/novatel/mm-sim-novatel-lte.h Examining data/modemmanager-1.14.8/plugins/dell/mm-plugin-dell.c Examining data/modemmanager-1.14.8/plugins/dell/mm-plugin-dell.h Examining data/modemmanager-1.14.8/plugins/option/mm-shared.c Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-modem-hso.h Examining data/modemmanager-1.14.8/plugins/option/mm-plugin-hso.h Examining data/modemmanager-1.14.8/plugins/option/mm-plugin-option.c Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-modem-option.c Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-bearer-hso.h Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-modem-hso.c Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-modem-option.h Examining data/modemmanager-1.14.8/plugins/option/mm-plugin-option.h Examining data/modemmanager-1.14.8/plugins/option/mm-broadband-bearer-hso.c Examining data/modemmanager-1.14.8/plugins/option/mm-plugin-hso.c Examining data/modemmanager-1.14.8/plugins/nokia/mm-sim-nokia.h Examining data/modemmanager-1.14.8/plugins/nokia/mm-plugin-nokia-icera.h Examining data/modemmanager-1.14.8/plugins/nokia/mm-plugin-nokia.h Examining data/modemmanager-1.14.8/plugins/nokia/mm-broadband-modem-nokia.c Examining data/modemmanager-1.14.8/plugins/nokia/mm-broadband-modem-nokia.h Examining data/modemmanager-1.14.8/plugins/nokia/mm-plugin-nokia.c Examining data/modemmanager-1.14.8/plugins/nokia/mm-plugin-nokia-icera.c Examining data/modemmanager-1.14.8/plugins/nokia/mm-sim-nokia.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-modem-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/tests/test-modem-helpers-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-bearer-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-plugin-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-modem-qmi-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-plugin-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-shared-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-shared-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-modem-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-modem-qmi-cinterion.c Examining data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.h Examining data/modemmanager-1.14.8/plugins/cinterion/mm-broadband-bearer-cinterion.c Examining data/modemmanager-1.14.8/plugins/simtech/tests/test-modem-helpers-simtech.c Examining data/modemmanager-1.14.8/plugins/simtech/mm-modem-helpers-simtech.c Examining data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-simtech.h Examining data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-qmi-simtech.h Examining data/modemmanager-1.14.8/plugins/simtech/mm-modem-helpers-simtech.h Examining data/modemmanager-1.14.8/plugins/simtech/mm-shared-simtech.c Examining data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-qmi-simtech.c Examining data/modemmanager-1.14.8/plugins/simtech/mm-plugin-simtech.h Examining data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-simtech.c Examining data/modemmanager-1.14.8/plugins/simtech/mm-shared-simtech.h Examining data/modemmanager-1.14.8/plugins/simtech/mm-plugin-simtech.c Examining data/modemmanager-1.14.8/plugins/iridium/mm-broadband-modem-iridium.h Examining data/modemmanager-1.14.8/plugins/iridium/mm-plugin-iridium.h Examining data/modemmanager-1.14.8/plugins/iridium/mm-sim-iridium.h Examining data/modemmanager-1.14.8/plugins/iridium/mm-broadband-modem-iridium.c Examining data/modemmanager-1.14.8/plugins/iridium/mm-sim-iridium.c Examining data/modemmanager-1.14.8/plugins/iridium/mm-plugin-iridium.c Examining data/modemmanager-1.14.8/plugins/iridium/mm-bearer-iridium.c Examining data/modemmanager-1.14.8/plugins/iridium/mm-bearer-iridium.h Examining data/modemmanager-1.14.8/plugins/pantech/mm-sim-pantech.c Examining data/modemmanager-1.14.8/plugins/pantech/mm-sim-pantech.h Examining data/modemmanager-1.14.8/plugins/pantech/mm-broadband-modem-pantech.c Examining data/modemmanager-1.14.8/plugins/pantech/mm-broadband-modem-pantech.h Examining data/modemmanager-1.14.8/plugins/pantech/mm-plugin-pantech.h Examining data/modemmanager-1.14.8/plugins/pantech/mm-plugin-pantech.c Examining data/modemmanager-1.14.8/plugins/via/mm-broadband-modem-via.c Examining data/modemmanager-1.14.8/plugins/via/mm-plugin-via.h Examining data/modemmanager-1.14.8/plugins/via/mm-plugin-via.c Examining data/modemmanager-1.14.8/plugins/via/mm-broadband-modem-via.h Examining data/modemmanager-1.14.8/plugins/altair/mm-broadband-bearer-altair-lte.c Examining data/modemmanager-1.14.8/plugins/altair/tests/test-modem-helpers-altair-lte.c Examining data/modemmanager-1.14.8/plugins/altair/mm-broadband-bearer-altair-lte.h Examining data/modemmanager-1.14.8/plugins/altair/mm-plugin-altair-lte.h Examining data/modemmanager-1.14.8/plugins/altair/mm-modem-helpers-altair-lte.h Examining data/modemmanager-1.14.8/plugins/altair/mm-plugin-altair-lte.c Examining data/modemmanager-1.14.8/plugins/altair/mm-broadband-modem-altair-lte.h Examining data/modemmanager-1.14.8/plugins/altair/mm-modem-helpers-altair-lte.c Examining data/modemmanager-1.14.8/plugins/altair/mm-broadband-modem-altair-lte.c Examining data/modemmanager-1.14.8/plugins/longcheer/mm-plugin-longcheer.c Examining data/modemmanager-1.14.8/plugins/longcheer/mm-plugin-longcheer.h Examining data/modemmanager-1.14.8/plugins/longcheer/mm-broadband-modem-longcheer.h Examining data/modemmanager-1.14.8/plugins/longcheer/mm-broadband-modem-longcheer.c Examining data/modemmanager-1.14.8/plugins/linktop/mm-broadband-modem-linktop.c Examining data/modemmanager-1.14.8/plugins/linktop/tests/test-modem-helpers-linktop.c Examining data/modemmanager-1.14.8/plugins/linktop/mm-modem-helpers-linktop.c Examining data/modemmanager-1.14.8/plugins/linktop/mm-modem-helpers-linktop.h Examining data/modemmanager-1.14.8/plugins/linktop/mm-broadband-modem-linktop.h Examining data/modemmanager-1.14.8/plugins/linktop/mm-plugin-linktop.h Examining data/modemmanager-1.14.8/plugins/linktop/mm-plugin-linktop.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-shared.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-plugin-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-modem-helpers-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-sim-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/tests/test-modem-helpers-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-common-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-plugin-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-bearer-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra-icera.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-bearer-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-plugin-sierra-legacy.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-plugin-sierra-legacy.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra-icera.h Examining data/modemmanager-1.14.8/plugins/sierra/mm-modem-helpers-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-sim-sierra.c Examining data/modemmanager-1.14.8/plugins/sierra/mm-common-sierra.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-broadband-modem-ublox.h Examining data/modemmanager-1.14.8/plugins/ublox/tests/test-modem-helpers-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.h Examining data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-plugin-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-sim-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-broadband-bearer-ublox.h Examining data/modemmanager-1.14.8/plugins/ublox/mm-sim-ublox.h Examining data/modemmanager-1.14.8/plugins/ublox/mm-broadband-bearer-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-broadband-modem-ublox.c Examining data/modemmanager-1.14.8/plugins/ublox/mm-plugin-ublox.h Examining data/modemmanager-1.14.8/plugins/foxconn/mm-shared.c Examining data/modemmanager-1.14.8/plugins/foxconn/mm-plugin-foxconn.h Examining data/modemmanager-1.14.8/plugins/foxconn/mm-broadband-modem-foxconn-t77w968.h Examining data/modemmanager-1.14.8/plugins/foxconn/mm-broadband-modem-foxconn-t77w968.c Examining data/modemmanager-1.14.8/plugins/foxconn/mm-plugin-foxconn.c Examining data/modemmanager-1.14.8/plugins/broadmobi/mm-plugin-broadmobi.c Examining data/modemmanager-1.14.8/plugins/broadmobi/mm-plugin-broadmobi.h Examining data/modemmanager-1.14.8/plugins/xmm/mm-shared.c Examining data/modemmanager-1.14.8/plugins/xmm/tests/test-modem-helpers-xmm.c Examining data/modemmanager-1.14.8/plugins/xmm/mm-broadband-modem-xmm.h Examining data/modemmanager-1.14.8/plugins/xmm/mm-shared-xmm.c Examining data/modemmanager-1.14.8/plugins/xmm/mm-shared-xmm.h Examining data/modemmanager-1.14.8/plugins/xmm/mm-modem-helpers-xmm.c Examining data/modemmanager-1.14.8/plugins/xmm/mm-broadband-modem-mbim-xmm.c Examining data/modemmanager-1.14.8/plugins/xmm/mm-broadband-modem-xmm.c Examining data/modemmanager-1.14.8/plugins/xmm/mm-broadband-modem-mbim-xmm.h Examining data/modemmanager-1.14.8/plugins/xmm/mm-modem-helpers-xmm.h Examining data/modemmanager-1.14.8/plugins/fibocom/mm-plugin-fibocom.c Examining data/modemmanager-1.14.8/plugins/fibocom/mm-plugin-fibocom.h Examining data/modemmanager-1.14.8/plugins/tplink/mm-plugin-tplink.h Examining data/modemmanager-1.14.8/plugins/tplink/mm-plugin-tplink.c Examining data/modemmanager-1.14.8/plugins/zte/mm-broadband-modem-zte.h Examining data/modemmanager-1.14.8/plugins/zte/mm-broadband-modem-zte-icera.h Examining data/modemmanager-1.14.8/plugins/zte/mm-broadband-modem-zte.c Examining data/modemmanager-1.14.8/plugins/zte/mm-common-zte.h Examining data/modemmanager-1.14.8/plugins/zte/mm-broadband-modem-zte-icera.c Examining data/modemmanager-1.14.8/plugins/zte/mm-plugin-zte.h Examining data/modemmanager-1.14.8/plugins/zte/mm-common-zte.c Examining data/modemmanager-1.14.8/plugins/zte/mm-plugin-zte.c Examining data/modemmanager-1.14.8/plugins/samsung/mm-plugin-samsung.h Examining data/modemmanager-1.14.8/plugins/samsung/mm-plugin-samsung.c Examining data/modemmanager-1.14.8/plugins/samsung/mm-broadband-modem-samsung.h Examining data/modemmanager-1.14.8/plugins/samsung/mm-broadband-modem-samsung.c Examining data/modemmanager-1.14.8/plugins/generic/mm-plugin-generic.h Examining data/modemmanager-1.14.8/plugins/generic/tests/test-service-generic.c Examining data/modemmanager-1.14.8/plugins/generic/mm-plugin-generic.c FINAL RESULTS: data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:183:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&buf[1], s); data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:186:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf, s); data/modemmanager-1.14.8/test/lsudev.c:106:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (propstr, *iter); data/modemmanager-1.14.8/test/lsudev.c:110:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (propstr, g_udev_device_get_property (device, *iter)); data/modemmanager-1.14.8/libqcdm/src/errors.c:41:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("QCDM_DEBUG") == NULL) data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:225:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("SERIAL_DEBUG")) data/modemmanager-1.14.8/plugins/sierra/mm-common-sierra.c:162:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("MM_SIERRA_APP1_PPP_OK")) { data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:127:30: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. self->priv->sysfs_path = realpath (tmp, NULL); data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:167:15: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. dirpath = realpath (aux, NULL); data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:183:39: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. canonicalized_subsystem = realpath (subsystem_filepath, NULL); data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:237:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. tmp2 = realpath (tmp, NULL); data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:311:22: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. subsyspath = realpath (aux, NULL); data/modemmanager-1.14.8/src/mm-base-sms.c:561:43: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. self->priv->multipart_reference = g_random_int_range (1,255); data/modemmanager-1.14.8/src/mm-iface-modem-messaging.c:45:17: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. reference = g_random_int_range (1,255); data/modemmanager-1.14.8/libmm-glib/mm-location-gps-nmea.c:86:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (trace_type, trace, i - trace); data/modemmanager-1.14.8/libmm-glib/mm-modem-oma.c:562:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*dup_sessions, self->priv->pending_network_initiated_sessions->data, sizeof (MMOmaPendingNetworkInitiatedSession) * self->priv->pending_network_initiated_sessions->len); data/modemmanager-1.14.8/libmm-glib/mm-modem.c:231:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*dup_capabilities, self->priv->supported_capabilities->data, sizeof (MMModemCapability) * self->priv->supported_capabilities->len); data/modemmanager-1.14.8/libmm-glib/mm-modem.c:1505:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*dup_modes, self->priv->supported_modes->data, sizeof (MMModemModeCombination) * self->priv->supported_modes->len); data/modemmanager-1.14.8/libmm-glib/mm-modem.c:1671:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*dup_bands, self->priv->supported_bands->data, sizeof (MMModemBand) * self->priv->supported_bands->len); data/modemmanager-1.14.8/libmm-glib/mm-modem.c:1802:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*dup_bands, self->priv->current_bands->data, sizeof (MMModemBand) * self->priv->current_bands->len); data/modemmanager-1.14.8/libmm-glib/mm-sms.c:204:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out, orig_data, orig_data_len); data/modemmanager-1.14.8/libqcdm/src/commands.c:303:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:320:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[12]; data/modemmanager-1.14.8/libqcdm/src/commands.c:331:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->comp_date, sizeof (rsp->comp_date)); data/modemmanager-1.14.8/libqcdm/src/commands.c:336:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->comp_time, sizeof (rsp->comp_time)); data/modemmanager-1.14.8/libqcdm/src/commands.c:341:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->rel_date, sizeof (rsp->rel_date)); data/modemmanager-1.14.8/libqcdm/src/commands.c:346:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->rel_time, sizeof (rsp->rel_time)); data/modemmanager-1.14.8/libqcdm/src/commands.c:351:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->model, sizeof (rsp->model)); data/modemmanager-1.14.8/libqcdm/src/commands.c:362:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:410:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[5]; data/modemmanager-1.14.8/libqcdm/src/commands.c:439:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:510:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:527:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[32]; data/modemmanager-1.14.8/libqcdm/src/commands.c:538:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->version, sizeof (rsp->version)); data/modemmanager-1.14.8/libqcdm/src/commands.c:543:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->comp_date, sizeof (rsp->comp_date)); data/modemmanager-1.14.8/libqcdm/src/commands.c:548:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, rsp->comp_time, sizeof (rsp->comp_time)); data/modemmanager-1.14.8/libqcdm/src/commands.c:559:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:641:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[3]; data/modemmanager-1.14.8/libqcdm/src/commands.c:767:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:790:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[11]; data/modemmanager-1.14.8/libqcdm/src/commands.c:808:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, mdn->mdn, sizeof (mdn->mdn)); data/modemmanager-1.14.8/libqcdm/src/commands.c:829:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:881:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:923:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:970:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1007:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1051:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1095:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1139:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1193:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1239:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdNVReadWrite) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1352:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1400:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdExtLogMask) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1494:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[4]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1523:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1562:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysNwSnapshotReq) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1645:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1679:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[50]; data/modemmanager-1.14.8/libqcdm/src/commands.c:1700:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (str, rsp->text, sizeof (rsp->text)); data/modemmanager-1.14.8/libqcdm/src/commands.c:1981:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:2000:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char imxi[18]; data/modemmanager-1.14.8/libqcdm/src/commands.c:2027:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[sizeof (DMCmdSubsysHeader) + 2]; data/modemmanager-1.14.8/libqcdm/src/commands.c:2046:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char imxi[18]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:276:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comp_date[11]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:277:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comp_time[8]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:278:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rel_date[11]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:279:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rel_time[8]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char model[8]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:329:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version[31]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:330:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comp_date[11]; data/modemmanager-1.14.8/libqcdm/src/dm-commands.h:332:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char comp_time[8]; data/modemmanager-1.14.8/libqcdm/src/result.c:125:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (v->u.u8_array, array, array_len); data/modemmanager-1.14.8/libqcdm/src/result.c:172:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (v->u.u16_array, array, sz); data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[500]; data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:68:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (port, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readbuf[1024]; data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:215:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[500]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:68:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (port, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); data/modemmanager-1.14.8/libqcdm/tests/modepref.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readbuf[1024]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:215:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:297:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:333:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/modepref.c:391:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/reset.c:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[500]; data/modemmanager-1.14.8/libqcdm/tests/reset.c:69:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (port, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); data/modemmanager-1.14.8/libqcdm/tests/reset.c:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readbuf[1024]; data/modemmanager-1.14.8/libqcdm/tests/reset.c:180:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:229:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). d->fd = open (port, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:321:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readbuf[1024]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:394:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:444:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:478:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:521:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:579:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:664:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:706:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:761:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:819:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:941:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:985:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1046:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1130:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1258:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1479:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[520]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1535:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[520]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1580:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[520]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1671:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1711:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1765:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1825:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:1920:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.c:78:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char escaped[1024]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.c:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char escaped[1024]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.c:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char escaped[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-escaping.c:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unescaped[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.c:50:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outbuf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.c:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdbuf[10]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.c:73:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outbuf[512]; data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-utils.c:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outbuf[512]; data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:661:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (band, supported, sizeof (guint) * MM_CINTERION_RB_BLOCK_N); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:704:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out_band, band, sizeof (guint) * MM_CINTERION_RB_BLOCK_N); data/modemmanager-1.14.8/plugins/huawei/mm-broadband-modem-huawei.c:1546:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). a = atoi (str); data/modemmanager-1.14.8/plugins/huawei/mm-broadband-modem-huawei.c:1552:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). act = huawei_sysinfo_submode_to_act (atoi (str)); data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:194:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&aux, bin, 4); data/modemmanager-1.14.8/plugins/icera/mm-broadband-modem-icera.c:513:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rssi = atoi (str); data/modemmanager-1.14.8/plugins/longcheer/mm-broadband-modem-longcheer.c:139:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mododr = atoi (str); data/modemmanager-1.14.8/plugins/mbm/mm-modem-helpers-mbm.c:120:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi (id)) { data/modemmanager-1.14.8/plugins/option/mm-broadband-modem-option.c:813:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). quality = atoi (str); data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-simtech.c:682:57: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_task_return_int (task, simtech_act_to_mm_act (atoi (p + 1))); data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-simtech.c:939:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ctx->modepref = atoi (p); data/modemmanager-1.14.8/plugins/simtech/mm-broadband-modem-simtech.c:1017:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ctx->acqord = atoi (p); data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-telit.c:1105:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi (++mode)) { data/modemmanager-1.14.8/plugins/telit/mm-broadband-modem-telit.c:1164:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi (service)) { data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c:684:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). wavecom_band = atoi (p); data/modemmanager-1.14.8/plugins/x22x/mm-broadband-modem-x22x.c:153:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mode = atoi (str); data/modemmanager-1.14.8/src/mm-bearer-qmi.c:706:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET_ADDRSTRLEN]; data/modemmanager-1.14.8/src/mm-bearer-qmi.c:707:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[INET_ADDRSTRLEN]; data/modemmanager-1.14.8/src/mm-bearer-qmi.c:808:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET6_ADDRSTRLEN]; data/modemmanager-1.14.8/src/mm-bearer-qmi.c:809:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[INET6_ADDRSTRLEN]; data/modemmanager-1.14.8/src/mm-broadband-bearer.c:330:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). current_index = (guint) atoi (result); data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c:3684:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&(entries[n_entries]->device_service_id), MBIM_UUID_BASIC_CONNECT, sizeof (MbimUuid)); data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c:3704:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&(entries[n_entries]->device_service_id), MBIM_UUID_MS_BASIC_CONNECT_EXTENSIONS, sizeof (MbimUuid)); data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c:3717:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&(entries[n_entries]->device_service_id), MBIM_UUID_SMS, sizeof (MbimUuid)); data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c:3728:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&(entries[n_entries]->device_service_id), MBIM_UUID_USSD, sizeof (MbimUuid)); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:2955:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*mm_operator_id, mcc, 3); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:2957:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((*mm_operator_id)[3]), mnc, 2); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:2960:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((*mm_operator_id)[3]), mnc, 3); data/modemmanager-1.14.8/src/mm-broadband-modem.c:1227:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *numbers[2] = { NULL, NULL }; data/modemmanager-1.14.8/src/mm-charsets.c:316:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&out_utf8[0], &gsm_def_utf8_alphabet[gsm].chars[0], gsm_def_utf8_alphabet[gsm].len); data/modemmanager-1.14.8/src/mm-charsets.c:369:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&out_utf8[0], &gsm_ext_utf8_alphabet[i].chars[0], gsm_ext_utf8_alphabet[i].len); data/modemmanager-1.14.8/src/mm-log.c:337:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). logfd = open (log_file, data/modemmanager-1.14.8/src/mm-modem-helpers-qmi.c:1784:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&qmi_unique_id->data[0], unique_id, len); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2066:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). min = atoi (s); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2071:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). max = atoi (s); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3435:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). min = atoi (tmp); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3439:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). max = atoi (tmp); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4234:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&aux[0], operator_id, 3); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4236:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tmp = atoi (aux); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4250:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&aux[0], &operator_id[3], 2); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4253:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&aux[0], &operator_id[3], 3); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4254:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *mnc = atoi (aux); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4341:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch (atoi (p)) { data/modemmanager-1.14.8/src/mm-modem-helpers.c:4622:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). min_val = (guint) atoi (aux); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4626:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). max_val = (guint) atoi (aux); data/modemmanager-1.14.8/src/mm-port-serial-at.c:73:20: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. pos += sprintf (pos, "\\%02X", string[i]); data/modemmanager-1.14.8/src/mm-port-serial.c:949:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SERIAL_BUF_SIZE + 1]; data/modemmanager-1.14.8/src/mm-port-serial.c:1191:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). self->priv->fd = open (devfile, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); data/modemmanager-1.14.8/src/mm-private-boxed-types.c:32:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dup, array, i * sizeof (guint16)); data/modemmanager-1.14.8/src/mm-private-boxed-types.c:67:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dup, array, i * sizeof (mm_uint16_pair)); data/modemmanager-1.14.8/src/mm-private-boxed-types.c:152:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dup, array, i * sizeof (gpointer)); data/modemmanager-1.14.8/src/mm-serial-parsers.c:242:63: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). local_error = mm_mobile_equipment_error_for_code (atoi (str), log_object); data/modemmanager-1.14.8/src/mm-serial-parsers.c:255:59: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). local_error = mm_mobile_equipment_error_for_code (atoi (str), log_object); data/modemmanager-1.14.8/src/mm-serial-parsers.c:267:50: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). local_error = mm_message_error_for_code (atoi (str), log_object); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1004:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&pdu[offset], packed, packlen); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1031:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&pdu[offset], array->data, array->len); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1046:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&pdu[offset], data->data, data->len); data/modemmanager-1.14.8/src/mm-sms-part-cdma.c:361:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&teleservice_id, ¶meter->parameter_value[0], 2); data/modemmanager-1.14.8/src/mm-sms-part-cdma.c:402:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&service_category, ¶meter->parameter_value[0], 2); data/modemmanager-1.14.8/src/mm-sms-part-cdma.c:1256:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&pdu[2], &aux16, 2); data/modemmanager-1.14.8/src/tests/test-modem-helpers.c:3318:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_assert_cmpuint ((guint) atoi (pdu_len_str), == , expected_pdu_len); data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readbuf[1024]; data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:239:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char req[512]; data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:294:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char req[512]; data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:330:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char req[512]; data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:366:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char req[512]; data/modemmanager-1.14.8/test/lsudev.c:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char propstr[500]; data/modemmanager-1.14.8/test/lsudev.c:151:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *subsys[2] = { NULL, NULL }; data/modemmanager-1.14.8/cli/mmcli-common.c:171:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((find_any) && (g_ascii_strncasecmp (str, ANY_OBJECT_STR, strlen (str)) == 0)) { data/modemmanager-1.14.8/cli/mmcli-common.c:1584:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). line_length = strlen (line_start); data/modemmanager-1.14.8/cli/mmcli-output.c:810:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aux = strlen (section_infos[field_infos[item_l->field].section].name); data/modemmanager-1.14.8/cli/mmcli-output.c:813:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aux = strlen (field_infos[item_l->field].name); data/modemmanager-1.14.8/cli/mmcli-output.c:881:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_length = strlen (value) + ((i < (n - 1)) ? 2 : 0); data/modemmanager-1.14.8/cli/mmcli-output.c:963:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key_length = strlen (field_infos[item_l->field].key); data/modemmanager-1.14.8/cli/mmcli-output.c:977:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key_length += ((strlen (KEY_ARRAY_VALUE_SUFFIX)) + 3); data/modemmanager-1.14.8/cli/mmcli-output.c:1048:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key_length = strlen (field_infos[field].key); data/modemmanager-1.14.8/cli/mmcli-output.c:1065:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key_length += ((strlen (KEY_ARRAY_VALUE_SUFFIX)) + 3); data/modemmanager-1.14.8/cli/mmcli-output.c:1098:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c:82:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (spc) != 6) { data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c:195:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (mdn) > 15) { data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c:259:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (min) > 15) { data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c:323:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (mn_ha_key) > 16) { data/modemmanager-1.14.8/libmm-glib/mm-cdma-manual-activation-properties.c:388:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (mn_aaa_key) > 16) { data/modemmanager-1.14.8/libmm-glib/mm-common-helpers.c:1598:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/libmm-glib/mm-common-helpers.c:1699:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (hex); data/modemmanager-1.14.8/libmm-glib/mm-common-helpers.c:1727:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (hex); data/modemmanager-1.14.8/libmm-glib/mm-location-3gpp.c:320:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (str) > max_length) { data/modemmanager-1.14.8/libmm-glib/tests/test-common-helpers.c:255:38: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. common_band_array_cmp_test (gboolean equal, data/modemmanager-1.14.8/libmm-glib/tests/test-common-helpers.c:270:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. g_assert_cmpuint (equal, ==, mm_common_bands_garray_cmp (a, b)); data/modemmanager-1.14.8/libmm-glib/tests/test-common-helpers.c:271:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. g_assert_cmpuint (equal, ==, mm_common_bands_garray_cmp (b, a)); data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:109:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:134:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (fd, &readbuf[total], 1); data/modemmanager-1.14.8/libqcdm/tests/ipv6pref.c:141:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (100000); data/modemmanager-1.14.8/libqcdm/tests/modepref.c:109:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/modemmanager-1.14.8/libqcdm/tests/modepref.c:134:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (fd, &readbuf[total], 1); data/modemmanager-1.14.8/libqcdm/tests/modepref.c:141:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (100000); data/modemmanager-1.14.8/libqcdm/tests/reset.c:110:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/modemmanager-1.14.8/libqcdm/tests/reset.c:135:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (fd, &readbuf[total], 1); data/modemmanager-1.14.8/libqcdm/tests/reset.c:142:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (100000); data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:309:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:334:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (d->fd, &readbuf[total], 1); data/modemmanager-1.14.8/libqcdm/tests/test-qcdm-com.c:341:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (100000); data/modemmanager-1.14.8/plugins/altair/mm-modem-helpers-altair-lte.c:120:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (regex, response, strlen (response), 0, 0, &match_info, error)) data/modemmanager-1.14.8/plugins/altair/mm-modem-helpers-altair-lte.c:156:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (regex, pco_info, strlen (pco_info), 0, 0, &match_info, error)) { data/modemmanager-1.14.8/plugins/altair/mm-modem-helpers-altair-lte.c:222:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pco_payload_len = strlen (pco_payload); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:263:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r1, response, strlen (response), 0, 0, &match_info1, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:297:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r2, response, strlen (response), 0, 0, &match_info2, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:409:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:440:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:528:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:814:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:903:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (g_regex_match_full (regex, response, strlen (response), 0, 0, &match_info, &inner_error)) { data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:1026:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:1250:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (pre, response, strlen (response), 0, 0, &match_info_pre, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:1261:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:1273:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/cinterion/mm-modem-helpers-cinterion.c:1290:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/huawei/mm-broadband-modem-huawei.c:650:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, result, strlen (result), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:45:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !(g_ascii_strncasecmp (response, "^NDISSTAT:", strlen ("^NDISSTAT:")) == 0 || data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:46:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_ascii_strncasecmp (response, "^NDISSTATQRY:", strlen ("^NDISSTATQRY:")) == 0)) { data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:78:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:120:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:171:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (s); data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:964:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (n = 0; n < strlen (mode_str); n+=2) { data/modemmanager-1.14.8/plugins/huawei/mm-modem-helpers-huawei.c:1162:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/plugins/huawei/mm-plugin-huawei.c:116:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = 1 + strtol (p + strlen (type), NULL, 10); data/modemmanager-1.14.8/plugins/iridium/mm-bearer-iridium.c:79:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (result && g_str_has_prefix (result, "+CEER: ") && strlen (result) > 7) { data/modemmanager-1.14.8/plugins/mbm/mm-broadband-modem-mbm.c:1260:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_byte_array_append (buf, (const guint8 *) command, strlen (command)); data/modemmanager-1.14.8/plugins/mtk/mm-broadband-modem-mtk.c:93:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &match_error)){ data/modemmanager-1.14.8/plugins/mtk/mm-broadband-modem-mtk.c:201:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/plugins/mtk/mm-broadband-modem-mtk.c:332:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel.c:179:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &error)) { data/modemmanager-1.14.8/plugins/novatel/mm-broadband-modem-novatel.c:740:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (tag); data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:156:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (tag); data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:273:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (*iter, MODEM_REG_TAG, strlen (MODEM_REG_TAG))) { data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:287:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (SYS_MODE_TAG); data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:290:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (p, SYS_MODE_NO_SERVICE_TAG, strlen (SYS_MODE_NO_SERVICE_TAG))) data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:292:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (!strncmp (p, SYS_MODE_EVDO_TAG, strlen (SYS_MODE_EVDO_TAG))) data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:294:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if ( !strncmp (p, SYS_MODE_1X_TAG, strlen (SYS_MODE_1X_TAG)) data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:295:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || !strncmp (p, SYS_MODE_CDMA_TAG, strlen (SYS_MODE_CDMA_TAG))) data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:302:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (EVDO_REV_TAG); data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:314:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (SID_TAG); data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:662:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &error)) { data/modemmanager-1.14.8/plugins/sierra/mm-broadband-modem-sierra.c:995:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). response = p + strlen (MDN_TAG); data/modemmanager-1.14.8/plugins/sierra/mm-modem-helpers-sierra.c:40:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, reply, strlen (reply), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/telit/mm-common-telit.c:126:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, reply, strlen (reply), 0, 0, &match_info, &error)) data/modemmanager-1.14.8/plugins/tests/test-port-context.c:165:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (response), data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:54:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:128:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:186:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:257:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:1565:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:1654:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:1778:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/ublox/mm-modem-helpers-ublox.c:2005:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c:338:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (WAVECOM_MS_CLASS_A_IDSTR)) == 0) { data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c:356:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (WAVECOM_MS_CLASS_B_IDSTR)) == 0) { data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c:362:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (WAVECOM_MS_CLASS_CG_IDSTR)) == 0) { data/modemmanager-1.14.8/plugins/wavecom/mm-broadband-modem-wavecom.c:368:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (WAVECOM_MS_CLASS_CC_IDSTR)) == 0) { data/modemmanager-1.14.8/plugins/x22x/mm-broadband-modem-x22x.c:137:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/plugins/xmm/mm-modem-helpers-xmm.c:392:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/xmm/mm-modem-helpers-xmm.c:640:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/xmm/mm-modem-helpers-xmm.c:977:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/plugins/zte/mm-broadband-modem-zte.c:350:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic-rules.c:152:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left_len = strlen (left); data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:587:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (start[strlen (start) - 1] == '*') { data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:589:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start[strlen (start) - 1] = '\0'; data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-generic.c:650:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (match->value[0] && match->value[strlen (match->value) - 1] != '*') data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.c:110:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pci_id && strlen (pci_id) == 9 && pci_id[4] == ':') { data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.c:126:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (vid) != 4) data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.c:136:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (pid) != 4) data/modemmanager-1.14.8/src/kerneldevice/mm-kernel-device-udev.c:153:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (rid) == 4) { data/modemmanager-1.14.8/src/mm-base-sms.c:182:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i, (guint) strlen (part_text)); data/modemmanager-1.14.8/src/mm-broadband-bearer.c:480:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (result) > 7) { data/modemmanager-1.14.8/src/mm-broadband-modem-mbim.c:4590:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). array = g_byte_array_sized_new (strlen (command) * 2); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:500:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:512:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:7244:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). command_len = strlen (command); data/modemmanager-1.14.8/src/mm-broadband-modem-qmi.c:8016:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). modem_id_len = strlen (modem_id); data/modemmanager-1.14.8/src/mm-broadband-modem.c:923:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reply = p + strlen (prefix); data/modemmanager-1.14.8/src/mm-broadband-modem.c:1260:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (numbers[0]) < 6 || strlen (numbers[0]) > 15) data/modemmanager-1.14.8/src/mm-broadband-modem.c:1260:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (numbers[0]) < 6 || strlen (numbers[0]) > 15) data/modemmanager-1.14.8/src/mm-charsets.c:212:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). converted = g_convert (src, strlen (src), data/modemmanager-1.14.8/src/mm-charsets.c:782:81: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utf8 = (gchar *) mm_charset_gsm_unpacked_to_utf8 ((const guint8 *) str, strlen (str)); data/modemmanager-1.14.8/src/mm-charsets.c:793:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utf8 = g_convert (str, strlen (str), data/modemmanager-1.14.8/src/mm-charsets.c:812:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/src/mm-charsets.c:837:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utf8 = g_convert (str, strlen (str), data/modemmanager-1.14.8/src/mm-charsets.c:851:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utf8 = g_convert (str, strlen (str), data/modemmanager-1.14.8/src/mm-charsets.c:922:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded = g_convert (str, strlen (str), data/modemmanager-1.14.8/src/mm-charsets.c:942:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded = g_convert (str, strlen (str), data/modemmanager-1.14.8/src/mm-log.c:275:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). log_backend (NULL, NULL, glib_to_syslog_priority (level), message, strlen (message)); data/modemmanager-1.14.8/src/mm-log.c:316:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (level && strlen (level) && !mm_log_set_level (level, error)) data/modemmanager-1.14.8/src/mm-modem-helpers-qmi.c:1744:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (unique_id); data/modemmanager-1.14.8/src/mm-modem-helpers.c:46:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/modemmanager-1.14.8/src/mm-modem-helpers.c:61:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (p, cmd, strlen (cmd))) data/modemmanager-1.14.8/src/mm-modem-helpers.c:62:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (cmd); data/modemmanager-1.14.8/src/mm-modem-helpers.c:292:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen (devid->str)) data/modemmanager-1.14.8/src/mm-modem-helpers.c:296:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msg = g_string_sized_new (strlen (devid->str) + 17); data/modemmanager-1.14.8/src/mm-modem-helpers.c:301:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (sum, (const guchar *) &str_vid[0], strlen (str_vid)); data/modemmanager-1.14.8/src/mm-modem-helpers.c:306:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (sum, (const guchar *) &str_pid[0], strlen (str_pid)); data/modemmanager-1.14.8/src/mm-modem-helpers.c:615:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:762:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1016:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1179:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (str) != 1 || data/modemmanager-1.14.8/src/mm-modem-helpers.c:1195:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (str) != 1 || data/modemmanager-1.14.8/src/mm-modem-helpers.c:1308:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (info->operator_code && (strlen (info->operator_code) >= 5)) { data/modemmanager-1.14.8/src/mm-modem-helpers.c:1373:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1445:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). requested_len = strlen (requested); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1460:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). existing_len = strlen (existing); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1638:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1725:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, reply, strlen (reply), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1810:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, reply, strlen (reply), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:1865:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). is_lac = (strchr (str, '"') || strlen (str) > 1); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2045:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reply += strlen (CMGF_TAG); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2308:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2423:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2490:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:2801:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3342:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r->desc = p = g_malloc0 (strlen (desc) + 1); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3412:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reply += strlen (CIND_TAG); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3647:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3730:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3791:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:3869:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_regex_match_full (r, str, strlen (str), 0, 0, &match_info, &inner_error); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4003:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (string); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4215:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (operator_id); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4278:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rawlen = strlen (raw); data/modemmanager-1.14.8/src/mm-modem-helpers.c:4616:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (g_regex_match_full (r, reply, strlen (reply), 0, 0, &match_info, &match_error)) { data/modemmanager-1.14.8/src/mm-port-probe.c:852:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). iter_len = strlen (*iter); data/modemmanager-1.14.8/src/mm-port-serial-at.c:66:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (string); data/modemmanager-1.14.8/src/mm-port-serial-at.c:319:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdlen = strlen (command); data/modemmanager-1.14.8/src/mm-shared-qmi.c:2462:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (mccmnc, ctx->imsi, 6); data/modemmanager-1.14.8/src/mm-sim-qmi.c:337:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (imsi) < 3) data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:102:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addrlen = slen = strlen (string); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:790:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf[0] = strlen (address); /* number of digits in address */ data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1012:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). array = g_byte_array_sized_new (strlen (mm_sms_part_get_text (part)) * 2); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1190:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return util_split_text_gsm7 (text, strlen (text), log_object); data/modemmanager-1.14.8/src/mm-sms-part-3gpp.c:1195:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return util_split_text_utf16_or_ucs2 (text, strlen (text), log_object); data/modemmanager-1.14.8/src/mm-sms-part-cdma.c:1286:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n_digits = strlen (number); data/modemmanager-1.14.8/src/mm-sms-part-cdma.c:1391:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (text); data/modemmanager-1.14.8/src/tests/test-at-serial-port.c:54:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ba = g_byte_array_sized_new (strlen (echo_removal_tests[i].original) + 1); data/modemmanager-1.14.8/src/tests/test-at-serial-port.c:57:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (echo_removal_tests[i].original) + 1); data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:107:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:130:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (fd, &readbuf[total], 1); data/modemmanager-1.14.8/src/tests/test-qcdm-serial-port.c:137:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (100000); data/modemmanager-1.14.8/test/lsudev.c:100:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (*iter) > namelen) data/modemmanager-1.14.8/test/lsudev.c:101:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen = strlen (*iter); data/modemmanager-1.14.8/test/lsudev.c:107:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (propstr, ":"); data/modemmanager-1.14.8/test/lsudev.c:108:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < namelen - strlen (*iter); i++) data/modemmanager-1.14.8/test/lsudev.c:109:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (propstr, " "); data/modemmanager-1.14.8/test/mmtty.c:186:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). device_name += strlen ("/dev/"); ANALYSIS SUMMARY: Hits = 374 Lines analyzed = 257954 in approximately 5.21 seconds (49496 lines/second) Physical Source Lines of Code (SLOC) = 183743 Hits@level = [0] 100 [1] 183 [2] 177 [3] 10 [4] 4 [5] 0 Hits@level+ = [0+] 474 [1+] 374 [2+] 191 [3+] 14 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 2.57969 [1+] 2.03545 [2+] 1.0395 [3+] 0.0761934 [4+] 0.0217695 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.