Closed
Bug 1225788
Opened 10 years ago
Closed 8 years ago
Runtime crash while handling write/read request on local BluetoothGattServer.
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: brsun, Unassigned)
Details
Attachments
(1 file)
|mRequest.Put|[1] would experience a "Logic flaw in the caller" runtime crash if one duplicated request id is going to be put in |mRequest|.
[1] https://dxr.mozilla.org/mozilla-central/source/dom/bluetooth/common/webapi/BluetoothGattServer.cpp#235
[2] https://dxr.mozilla.org/mozilla-central/source/xpcom/base/nsAutoPtr.h#37
| Reporter | ||
Comment 1•10 years ago
|
||
Attachment #8689375 -
Flags: review?(joliu)
Comment 2•10 years ago
|
||
Comment on attachment 8689375 [details] [diff] [review]
bug1225788_bluetooth_runtime_crash_read_write_request.patch
Review of attachment 8689375 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/bluetooth/common/webapi/BluetoothGattServer.cpp
@@ +231,5 @@
> // Save the request information for sending the response later
> + if (mRequestMap.Get(requestId, nullptr)) {
> + BT_WARNING("Duplicated request id: %d", requestId);
> + mRequestMap.Remove(requestId);
> + }
When will this happen?
Why do we choose to remove the existing entry?
BTW, I think we might also need to remove requests when connection drops.
Attachment #8689375 -
Flags: review?(joliu)
Comment 3•10 years ago
|
||
Set Bruce as the assignee since he's actively working on this bug.
Assignee: nobody → brsun
| Reporter | ||
Comment 4•10 years ago
|
||
Unassign myself due to not working on this issue currently.
Assignee: brsun → nobody
Comment 5•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•