OSDN Git Service

Check device name length
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 28 Apr 2017 12:15:16 +0000 (05:15 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Mon, 8 May 2017 08:39:11 +0000 (01:39 -0700)
commitd7ed7c0e3d8930a77aa665cfaf57bf28a07d4084
tree81eb43d57d6716c8c19f2425f305fd677ca87cef
parentb7bdbe76e98d1159b31485e2ffd6a9f609cfc057
Check device name length

BT spec limits the length of device name to 248 bytes. With the new
LE advertising packets, that can go up to 1650 bytes long, we must check
the length of device name received.

Bug: 37671082
Test: manual
Change-Id: Iad309d638003c2391014c9764605d84ed5717cb1
(cherry picked from commit 3a4e7622ff07772a512052c23cada59f5830941f)
btif/src/btif_ble_scanner.cc