]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:46 +0000 (18:07 -0500)
commit639e5434c802fd0e3106f0049d4fa1a7a908653f
tree0757dd2b447c364c7d9b258ec0ceef0d1eaf4d0f
parented6c29b8a1a35463ec9fc6843543f0a19e0af158
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().

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/irda/irlan/irlan_common.c