OSDN Git Service

Initializing the SDP event message pointer before sending
authorManu Viswanadhan <manuv@codeaurora.org>
Tue, 7 Jun 2016 10:51:18 +0000 (16:21 +0530)
committerAjay Panicker <apanicke@google.com>
Thu, 2 Feb 2017 22:09:00 +0000 (22:09 +0000)
commit65cca8f2ccdc9224162f81dded617de04be41313
tree62e9ec5c5282e3f28c31b70e9729f26eacbd7cc6
parente36d707b00e5a6c011e5ba41d67a82374a5cfab5
Initializing the SDP event message pointer before sending

Use case: Crash while copying SDP results in case of SDP
ServiceSearchAttributeRequest failure

Steps : Repeated connection-disconnection with multiple devices

Failure: Crash while copying SDP results

Root cause: In case of SDP_ServiceSearchAttributeRequest failure,
garbage value sent for discovery result structure due to improper
initialization

Fix: Initialize the discovery result structure to zero before
sending

Test: code compilation.

Change-Id: I46d92d6262bae3b5def5401270465a3a06468c1a
bta/dm/bta_dm_act.cc