]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit925a4d483a2870c7284e11a2d145deaab6581ff7
tree8e279d2e0b9b3e2d165a2669da002cf7324d24b0
parent57ee3d3bc868c0104da01806a4301a1f164557c4
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