irda: off by one
authorDan Carpenter <error27@gmail.com>
Sat, 4 Sep 2010 03:14:35 +0000 (03:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 20:57:22 +0000 (13:57 -0700)
commitcf9b94f88bdbe8a02015fc30d7c232b2d262d4ad
tree8e279d2e0b9b3e2d165a2669da002cf7324d24b0
parent89b12faba4f3441c9457c5278851e8a93ffd008d
irda: off by one

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