irda: validate peer name and attribute lengths
commit396c7c0bf6a876915b4041cac703ce31b0bd6fb2
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:53:25 +0000 (14 16:53 -0700)
treec899ea0613202d3c394db1af4b4693cdaa83cebf
parente22b468f54b409e2b1c79b44dca2626a713f452d
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