diff options
| author | 2013-01-31 11:16:46 +0300 | |
|---|---|---|
| committer | 2013-02-08 14:51:31 -0500 | |
| commit | e9a4aa3ba386c8a368baaadde6f9e5c3d5f17cfe (patch) | |
| tree | 5a92893b34d4d7ef1f1913c1113fbe5999b2e65b /tools/lib/python | |
| parent | Merge tag 'nfc-next-3.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/nfc-next (diff) | |
NFC: llcp: integer underflow in nfc_llcp_set_remote_gb()
If gb_len is less than 3 it would cause an integer underflow and
possibly memory corruption in nfc_llcp_parse_gb_tlv().
I removed the old test for gb_len == 0. I also removed the test for
->remote_gb == NULL. It's not possible for ->remote_gb to be NULL and
we have already dereferenced ->remote_gb_len so it's too late to test.
The old test return -ENODEV but my test returns -EINVAL.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
