]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: make sure strings are null terminated
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2011 02:41:49 +0000 (02:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Nov 2011 23:39:36 +0000 (18:39 -0500)
commit2e3de0ea725cd4901bee70fbabd9d9e2c5e8cf9b
treee05346d8584aae51cae021b5832aeae53aa311ed
parentc39aba09593ae8f78f10bf7bfcfb111a002c2b44
isdn: make sure strings are null terminated

These strings come from the user.  We strcpy() them inside
cf_command() so we should check that they are NULL terminated and
return an error if not.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/divert/divert_procfs.c