diff options
author | Arman Uguray <armansito@chromium.org> | 2014-11-17 08:08:11 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-11-18 16:34:07 +0200 |
commit | c7617662d585d91703e3c2d2450d5100d82edcac (patch) | |
tree | 933ae687bfbf296ef03c2cab6e6554087a49b488 /TODO | |
parent | dbf12268ac30c66a64e7f5f152d49964b6900513 (diff) | |
download | bluez-c7617662d585d91703e3c2d2450d5100d82edcac.tar.gz |
tools/btgatt-server: Free and early return if device name has length 0.
In the write callback for the device name characteristic, we should
check early if the value is being truncated completely and free the
value and return. Otherwise, the realloc call might correctly return
NULL if called with a length of 0, which would be incorrectly treated as
an error.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions