Files
linux/drivers
Dan Carpenter d89dba7a27 libertas: fix write past end of array in mesh_id_get()
defs.meshie.val.mesh_id is 32 chars long.  It's not supposed to be NUL
terminated.  This code puts a terminator on the end to make it easier to
print to sysfs.  The problem is that if the mesh_id fills the entire
buffer the original code puts the terminator one spot past the end.

The way the original code was written, there was a check to make sure
that maxlen was less than PAGE_SIZE.  Since we know that maxlen is at
most 34 chars, I just removed the check.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-03-11 14:15:36 -05:00
..
…
…
2011-01-13 08:03:09 -08:00
…
…
2011-01-18 12:22:54 -08:00
…
…
2011-01-17 11:15:30 -08:00
2011-01-12 04:59:44 -05:00
…
2011-01-14 12:38:16 +01:00
…
2011-01-10 08:51:44 -08:00
…
…
2011-01-12 05:14:15 -05:00
…
…