git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: hidp: fix buffer overflow
[pandora-kernel.git]
/
net
/
bluetooth
/
hidp
/
sock.c
diff --git
a/net/bluetooth/hidp/sock.c
b/net/bluetooth/hidp/sock.c
index
178ac7f
..
69140e2
100644
(file)
--- a/
net/bluetooth/hidp/sock.c
+++ b/
net/bluetooth/hidp/sock.c
@@
-84,6
+84,7
@@
static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
sockfd_put(csock);
return err;
}
+ ca.name[sizeof(ca.name)-1] = 0;
if (csock->sk->sk_state != BT_CONNECTED ||
isock->sk->sk_state != BT_CONNECTED) {