]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: fix information leak
authorDan Carpenter <error27@gmail.com>
Wed, 4 Aug 2010 23:38:06 +0000 (23:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2010 20:21:25 +0000 (13:21 -0700)
commit0889021e39f77075e707bcc761ffabba1884f037
tree90c999a27f71fa258db88e2b859d31930d112ba3
parent4eea30376369b293a91aca328e536d3047c715ac
isdn: fix information leak

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>
drivers/isdn/sc/ioctl.c