irda: off by one
authorDan Carpenter <error27@gmail.com>
Sat, 4 Sep 2010 03:14:35 +0000 (03:14 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:03:20 +0000 (13:03 -0700)
commita80e26256afc836ea0b0e09444b1087cea46fd0a
tree345374c347c3683431a1f67c429e6f29ded8c2b0
parent9af1d24a2b18b890a9f73aa6e3efdc70a16c54aa
irda: off by one

commit cf9b94f88bdbe8a02015fc30d7c232b2d262d4ad upstream.

This is an off by one.  We would go past the end when we NUL terminate
the "value" string at end of the function.  The "value" buffer is
allocated in irlan_client_parse_response() or
irlan_provider_parse_command().

CC: stable@kernel.org
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irlan/irlan_common.c