Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Issue 2849113002: bluetooth: Fix crash when a notification arrives during a write (Closed)

Created:
3 years, 7 months ago by ortuno
Modified:
3 years, 7 months ago
Reviewers:
scheib
CC:
chromium-reviews, mac-reviews_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Fix crash when a notification arrives during a write 1. Instead of using a boolean to keep track of pending read or writes, check if there are non-null callbacks. 2. Check HasPendingRead only when a notification arrives. BUG=716655 Review-Url: https://codereview.chromium.org/2849113002 Cr-Commit-Position: refs/heads/master@{#468519} Committed: https://chromium.googlesource.com/chromium/src/+/6ce865fc28199a11109d3b72ad3b5eb52b3ae826

Patch Set 1 #

Patch Set 2 : disable windows #

Patch Set 3 : clean up #

Patch Set 4 : fix merge problems' #

Patch Set 5 : moar clean up #

Total comments: 2

Patch Set 6 : Fix comment typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -14 lines) Patch
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm View 1 2 3 4 9 chunks +7 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc View 1 2 3 4 5 1 chunk +93 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
ortuno
scheib: PTAL
3 years, 7 months ago (2017-05-01 05:45:12 UTC) #4
scheib
lgtm https://codereview.chromium.org/2849113002/diff/80001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2849113002/diff/80001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode1075 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1075: // Tests that a notification arriving during a ...
3 years, 7 months ago (2017-05-01 17:41:51 UTC) #14
ortuno
Thanks! https://codereview.chromium.org/2849113002/diff/80001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2849113002/diff/80001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode1075 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1075: // Tests that a notification arriving during a ...
3 years, 7 months ago (2017-05-01 23:51:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2849113002/100001
3 years, 7 months ago (2017-05-01 23:51:56 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 01:06:57 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6ce865fc28199a11109d3b72ad3b...

Powered by Google App Engine
This is Rietveld 408576698