irda: validate peer name and attribute lengths
authorDan Rosenberg <drosenberg@vsecurity.com>
Sun, 20 Mar 2011 15:32:06 +0000 (15:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 00:59:02 +0000 (17:59 -0700)
commitd370af0ef7951188daeb15bae75db7ba57c67846
treef884335124cf68d375afef3226a7378e6f5f3d33
parentd50e7e3604778bfc2dc40f440e0742dbae399d54
irda: validate peer name and attribute lengths

Length fields provided by a peer for names and attributes may be longer
than the destination array sizes.  Validate lengths to prevent stack
buffer overflows.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/iriap.c