]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:17:52 +0000 (13:17 -0700)
commitf4ee150ede7f8ff1a1d8992579c2e1a7e2520815
treebe939bacd7337ae968608ea5c07b3c46e48cb2c7
parent97c63b87be9bdfa8b1f0fb1d000937df0e5c28a8
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