]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Mon, 8 Aug 2011 17:23:09 +0000 (10:23 -0700)
commit51faabb807245bd12d026660d8957168df64abef
treef5c98296bef8c2385f1f7f739c7d339a0ae7c410
parent82b6e85062ae9db54a97590a473d98e2bef10789
staging: comedi: fix infoleak to userspace

commit 819cbb120eaec7e014e5abd029260db1ca8c5735 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c