staging: comedi: fix infoleak to userspace
authorVasiliy Kulikov <segoon@openwall.com>
Sun, 26 Jun 2011 08:56:22 +0000 (12:56 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 16:24:18 +0000 (09:24 -0700)
commit819cbb120eaec7e014e5abd029260db1ca8c5735
tree4f669b6161eca72a3b1feace6edb14beb1e9cc24
parent85678d5d27cb0ea1005316f51b1b062bf4609b66
staging: comedi: fix infoleak to userspace

driver_name and board_name are pointers to strings, not buffers of size
COMEDI_NAMELEN.  Copying COMEDI_NAMELEN bytes of a string containing
less than COMEDI_NAMELEN-1 bytes would leak some unrelated bytes.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c