OSDN Git Service

Fix pointer arithmetic in BTA_DmBleCfgFilterCondition
authorAndre Eisenbach <eisenbach@google.com>
Tue, 27 Dec 2016 22:48:34 +0000 (14:48 -0800)
committerMyles Watson <mylesgw@google.com>
Tue, 27 Dec 2016 22:55:04 +0000 (22:55 +0000)
commitbced7f0c0b1155e3619644b1d2db1f7fe9a12703
tree5db590a42bc38f0f0c6851d304e342d939866efe
parent17c66c45e69ef645cec25b508b4e284f58daf3cd
Fix pointer arithmetic in BTA_DmBleCfgFilterCondition

Using the pointer to the beginning of a union in a member of the union,
which will then be over-written, is a bad idea(TM).

Bug: 33910711
Test: manual
Change-Id: I0b979e493688bf8c02119a2ef6707d6c8e730dcb
bta/dm/bta_dm_api.cc