Closed
Bug 1166587
Opened 9 years ago
Closed 9 years ago
Check OBEX packet length before accessing it
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(blocking-b2g:2.2r+, firefox41 fixed, b2g-v2.2r fixed, b2g-master fixed)
RESOLVED
FIXED
blocking-b2g | 2.2r+ |
People
(Reporter: ben.tian, Assigned: ben.tian)
References
Details
Attachments
(3 files, 1 obsolete file)
12.80 KB,
patch
|
Details | Diff | Splinter Review | |
12.79 KB,
patch
|
wiwang
:
review+
|
Details | Diff | Splinter Review |
1.01 KB,
patch
|
shawnjohnjr
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1162902 +++ Bug #1162902 comment 7 mentions OBEX packet length problem we should check for both OPP and PBAP managers. Create this bug to fix them: - ensure received packet length smaller than max packet length - ensure received packet length equals to or larger than we expect for different opcodes.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → btian
Attachment #8607952 -
Flags: review?(shuang)
Comment on attachment 8607952 [details] [diff] [review] Patch 1 (v1): Check OBEX packet length before accessing it Review of attachment 8607952 [details] [diff] [review]: ----------------------------------------------------------------- The code looks good to me. Thanks, Ben!
Attachment #8607952 -
Flags: review?(shuang) → review+
Assignee | ||
Comment 3•9 years ago
|
||
try fails to build on ICS emulator for lack of BlueZ OPP manger change. I'll add BlueZ OPP change into the patch. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f246c2a123ce
Assignee | ||
Comment 4•9 years ago
|
||
Attach revised patch with successful try result. https://treeherder.mozilla.org/#/jobs?repo=try&revision=69554945647e
Attachment #8607952 -
Attachment is obsolete: true
Comment 7•9 years ago
|
||
Hi Ben, According to Bug #1162902 comment 7, the patch prevents the invalid memory access. Since Bug 1162902 had been landed to 2.2r, we might consider landing this patch to 2.2r too. What do you think ?
Flags: needinfo?(btian)
Assignee | ||
Comment 8•9 years ago
|
||
Set 2.2r+ blocker per comment 7.
blocking-b2g: --- → 2.2r+
Flags: needinfo?(btian)
Comment 9•9 years ago
|
||
Rebased patch for branch 2.2r. Carry r+ from previous patch.
Attachment #8677436 -
Flags: review+
Comment 10•9 years ago
|
||
Second rebased patch for 2.2r, for the related function call in BluetoothMapSmsManager.cpp. Hi Shawn, Since I am currently not familiar with MAP profile, could you help to review for this slight modification? Thanks!
Attachment #8677438 -
Flags: review?(shuang)
Attachment #8677438 -
Flags: review?(shuang) → review+
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•9 years ago
|
status-b2g-v2.2r:
--- → affected
status-b2g-master:
--- → fixed
Comment 11•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2r/rev/ee98f6b5eb10 https://hg.mozilla.org/releases/mozilla-b2g37_v2_2r/rev/9e345b193452
Keywords: checkin-needed
Updated•9 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•