Closed
Bug 1170971
Opened 11 years ago
Closed 11 years ago
Fix BluetoothGattReadParam and BluetoothGattAdvData unpacking in daemon backend
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
2.2 S14 (12june)
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: yrliou, Assigned: yrliou)
Details
Attachments
(2 files, 2 obsolete files)
|
1.46 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.44 KB,
patch
|
Details | Diff | Splinter Review |
We need to fix BluetoothGattReadParam unpack function to follow the structure defined in https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/hal-msg.h#n1811.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8614618 -
Flags: review?(tzimmermann)
Updated•11 years ago
|
Attachment #8614618 -
Flags: review?(tzimmermann) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Revise the bug title to cover a similar unpacking bug.
Summary: Fix BluetoothGattReadParam unpacking in daemon backend → Fix BluetoothGattReadParam and BluetoothGattAdvData unpacking in daemon backend
| Assignee | ||
Comment 3•11 years ago
|
||
diff:
- fix GattAdvData unpacking
Attachment #8614618 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8614800 [details] [diff] [review]
Bug 1170971(v2): Fix BluetoothGattReadParam and BluetoothGattAdvData unpacking in daemon backend.
Hi Thomas,
I would like to fix another similar unpacking bit together in this bug.
May I have your help to review my patch again?
Thanks,
Jocelyn
Attachment #8614800 -
Flags: review?(tzimmermann)
Comment 5•11 years ago
|
||
Comment on attachment 8614800 [details] [diff] [review]
Bug 1170971(v2): Fix BluetoothGattReadParam and BluetoothGattAdvData unpacking in daemon backend.
Review of attachment 8614800 [details] [diff] [review]:
-----------------------------------------------------------------
I would be preferred this being two separate patches.
::: dom/bluetooth/bluedroid/BluetoothDaemonGattInterface.cpp
@@ +1071,5 @@
> return rv;
> }
> /* Read Adv Data */
> + rv = UnpackPDU(pdu, UnpackArray<uint8_t>(aArg3.mAdvData,
> + static_cast<size_t>(length)));
This cast to 'size_t' shouldn't be required.
Attachment #8614800 -
Flags: review?(tzimmermann) → review+
Comment 6•11 years ago
|
||
Maybe just put any required change into this bug and we land it all at once.
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8614800 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•11 years ago
|
||
- address review comments
Thanks for your time, Thomas.
| Assignee | ||
Comment 9•11 years ago
|
||
Keywords: checkin-needed
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/dbd50258c090
https://hg.mozilla.org/integration/b2g-inbound/rev/ea5ab01d081b
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/dbd50258c090
https://hg.mozilla.org/mozilla-central/rev/ea5ab01d081b
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S14 (12june)
You need to log in
before you can comment on or make changes to this bug.
Description
•