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

Commit efe52f14 authored by Shihuan Liu's avatar Shihuan Liu Committed by Mohammed Javid
Browse files

msm: ipa: add null terminator



Add null terminator at the end of string
extend_ioctl_data.u.rmnet_mux_val.vchannel_name
to avoid potential security issue.

Change-Id: I57fe3a9f7e3ad6a499b62a9cfc49bc6b2f3b42e0
Acked-by: default avatarShihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent f035a4ad
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1606,6 +1606,8 @@ static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
					&rmnet_ipa3_ctx->add_mux_channel_lock);
				return -EFAULT;
			}
			extend_ioctl_data.u.rmnet_mux_val.vchannel_name
				[IFNAMSIZ-1] = '\0';
			IPAWANDBG("ADD_MUX_CHANNEL(%d, name: %s)\n",
			ext_ioctl_data.u.rmnet_mux_val.mux_id,
			ext_ioctl_data.u.rmnet_mux_val.vchannel_name);