]> git.karo-electronics.de Git - linux-beck.git/commit
rtl871x: avoid running off end of buffer
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Mon, 15 Feb 2016 18:58:10 +0000 (18:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 22:48:04 +0000 (14:48 -0800)
commit0c68423556b59d1ebd65b056e7f24ab7089da401
tree30e9e664a043455be64676ebbe215ea0f5015b30
parentd6e29ca1f6cf566f67012dce269b5f9ba72a1659
rtl871x: avoid running off end of buffer

If 32 bytes of non zero are passed in pdata->pointer then the mac_pton
function will run off the end of the buffer. Make sure we always have a
terminated string kernel side.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c