OSDN Git Service

Advertisement parsing fix for zero padding
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 4 Aug 2017 15:56:53 +0000 (08:56 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 4 Aug 2017 15:59:36 +0000 (08:59 -0700)
commit35a9ea352d59e6d261eba1254814f7238e3ed022
tree0bd0d16c9ce75928fb6742d25d557eec4de35d90
parent427da915630c0d8282e53da77759079877b9f227
Advertisement parsing fix for zero padding

When AD data is zero padded, and Scan Response is appended at end, data
becomes invalid. Instead, zero paddning must be removed first.

Test: AdvertiseDataParserTest.RemoveTrailingZeros
Bug: 38489707
Change-Id: I229ca3db6c92bc06bc1429e72412417010721063
stack/btm/btm_ble_gap.cc
stack/include/advertise_data_parser.h
stack/test/ad_parser_unittest.cc