OSDN Git Service

Fix crash on GATT service unregistration
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 15 May 2017 07:58:07 +0000 (00:58 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Mon, 15 May 2017 08:04:09 +0000 (01:04 -0700)
commit0d892120359af4cd1af7f9c13897c1002eac59f3
treee9c4fb608fc2c1e904acf38f248c9946584e75d5
parent8451ad010e26562d4a4c7d0d135c70c4325ee6b5
Fix crash on GATT service unregistration

When SDP_MAX_RECORDS were reached in SDP db, which usually happen by
registering big number of GATT services, unregistration of a service was
causing a crash. This was because we moved from memory after the array
into last element.

Bug: 38265174
Test: manual
Change-Id: I7b0235213fb07c85dcc1245f1c840b41267521d5
stack/sdp/sdp_db.cc