irda: validate peer name and attribute lengths
commit0fc3fc08ecdb5496de33fb55955a0dab1a633329
authorDan Rosenberg <drosenberg@vsecurity.com>
Sun, 20 Mar 2011 15:32:06 +0000 (20 15:32 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:52:52 +0000 (14 16:52 -0700)
treeadc60bd5703581335dca63ebe64545c3c899cdfe
parent7de774750bc8dee73855df5bf7aa4c92e7446088
irda: validate peer name and attribute lengths

commit d370af0ef7951188daeb15bae75db7ba57c67846 upstream.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/irda/iriap.c