]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
isdn: icn: use strlcpy() when parsing setup options
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 15 Mar 2015 10:48:03 +0000 (13:48 +0300)
committerJiri Slaby <jslaby@suse.cz>
Wed, 10 Jun 2015 11:42:17 +0000 (13:42 +0200)
commit5d557c9cc29b05fd281ce704070cd487723fc07c
treeb42e81a159a90367f5ea595517ffcab003c816b5
parent376ab7b755abd61296eeb1d5f46935a25e907f9f
isdn: icn: use strlcpy() when parsing setup options

commit 10640d34552ccd8fabe7b15b0c4e3a102247952d upstream.

If you pass an invalid string here then you probably deserve the memory
corruption, but it annoys static analysis tools so lets fix it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/isdn/icn/icn.c