Re: [PATCH v3 3/3] Bluetooth: Validate data size before accessing mgmt commands
From: Gustavo F. Padovan <hidden> Date: 2011-02-27 19:58:28
Hi Szymon,
* Szymon Janc [off-list ref] [2011-02-25 19:05:49 +0100]:
Crafted (too small) data buffer could result in reading data outside of buffer.
Validate buffer size and return EINVAL if size is wrong.
Signed-off-by: Szymon Janc <redacted>
---
net/bluetooth/mgmt.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)