Fix infoleak to userspace.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 27 Jun 2011 10:05:39 +0000 (11:05 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 27 Jun 2011 10:05:39 +0000 (11:05 +0100)
commit235b6b00c564871680cee0a615761d9bcf6c5043
tree75fa666855b560862228617d5022a568a112f4c6
parent881cb5429cd2d47ba0bee5f826d14035f1b24b3a
Fix infoleak to userspace.

Following Vasiliy Kulikov <segoon _at_ openwall _dot_ org>'s patch for
the staging sources:

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: Ian Abbott <abbotti@mev.co.uk>
comedi/comedi_fops.c