Re: [PATCH] mISDN: make sure device name is NUL terminated

2019-05-22 Thread David Miller
From: Dan Carpenter Date: Wed, 22 May 2019 11:45:13 +0300 > The user can change the device_name with the IMSETDEVNAME ioctl, but we > need to ensure that the user's name is NUL terminated. Otherwise it > could result in a buffer overflow when we copy the name back to the user > with IMGETDEVINFO

[PATCH] mISDN: make sure device name is NUL terminated

2019-05-22 Thread Dan Carpenter
The user can change the device_name with the IMSETDEVNAME ioctl, but we need to ensure that the user's name is NUL terminated. Otherwise it could result in a buffer overflow when we copy the name back to the user with IMGETDEVINFO ioctl. I also changed two strcpy() calls which handle the name to