OSDN Git Service

Fix advertise data parsing
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 16 Feb 2017 17:23:48 +0000 (09:23 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 16 Feb 2017 18:38:00 +0000 (18:38 +0000)
commit2e97666062bd6a8f9777b6f43c12456dc8b5ed6f
treebb2c4f24b45d568d20c03b708c88c3dcfd7bf80d
parent3e2201163b609aab6dcc0778158e790c3201353b
Fix advertise data parsing

This patch fixes overflow of position variable, and possible read
outside of vector boundaries when parsing advertise data.

Parsing 1004 bytes of hex "112233112233.." was causing infinite loop.

Bug: 30622771
Test: manual
Change-Id: I0d669f7958de73f5d53350fb293ff27fea172f44
stack/btm/btm_ble_gap.cc
stack/btm/btm_inq.cc