Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e3466e4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: prevent string buffer overflows"

parents 9f54d28c ee7fcf9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2485,6 +2485,9 @@ int rmnet_ipa_set_data_quota(struct wan_ioctl_set_data_quota *data)
	int index;
	struct ipa_set_data_usage_quota_req_msg_v01 req;

	/* prevent string buffer overflows */
	data->interface_name[IFNAMSIZ-1] = '\0';

	index = find_vchannel_name_index(data->interface_name);
	IPAWANERR("iface name %s, quota %lu\n",
			  data->interface_name,
+3 −0
Original line number Diff line number Diff line
@@ -2634,6 +2634,9 @@ int rmnet_ipa3_set_data_quota(struct wan_ioctl_set_data_quota *data)
	int index;
	struct ipa_set_data_usage_quota_req_msg_v01 req;

	/* prevent string buffer overflows */
	data->interface_name[IFNAMSIZ-1] = '\0';

	index = find_vchannel_name_index(data->interface_name);
	IPAWANERR("iface name %s, quota %lu\n",
		  data->interface_name,