isdn: fix information leak
commit9ee75e1b9432504b88b6235ade3bfa8bf210fb33
authorDan Carpenter <error27@gmail.com>
Wed, 4 Aug 2010 23:38:06 +0000 (4 23:38 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:43:46 +0000 (26 16:43 -0700)
treeeb8c53c22a1ebc006ee1377c987678fee323f8fd
parent47dbdd885639768ae1889e4317f2dc0bb25cc8ac
isdn: fix information leak

[ Upstream commit 4b030d4288a569d6bdeca884d7f102d951f097f2 ]

The main motivation of this patch changing strcpy() to strlcpy().
We strcpy() to copy a 48 byte buffers into a 49 byte buffers.  So at
best the last byte has leaked information, or maybe there is an
overflow?  Anyway, this patch closes the information leaks by zeroing
the memory and the calls to strlcpy() prevent overflows.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/isdn/sc/ioctl.c