Closed Bug 1221898 Opened 9 years ago Closed 9 years ago

Followup of bug 1211769: Fix PBAP memory leakage

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.2r+, firefox45 fixed, b2g-v2.2r fixed)

RESOLVED FIXED
FxOS-S11 (13Nov)
blocking-b2g 2.2r+
Tracking Status
firefox45 --- fixed
b2g-v2.2r --- fixed

People

(Reporter: shawnjohnjr, Assigned: ben.tian)

References

Details

Attachments

(1 file, 1 obsolete file)

Follow up:
https://bugzilla.mozilla.org/show_bug.cgi?id=1211769#c38

https://dxr.mozilla.org/mozilla-central/source/dom/bluetooth/bluedroid/BluetoothPbapManager.cpp?from=bluetoothpbapmanager.cpp#928

      // ----  Part 2b: [headerId:1][length:2][Body:var] ---- //
      index += AppendHeaderBody(&res[index],
                                remainingPacketSize,
                                (uint8_t*) buf.forget(),
                                numRead);

Passing (uint8_t*)buf.forget() can cause memory leakage.
Summary: Fix PBAP leakage → Followup of bug 1211769: Fix PBAP memory leakage
Blocks: 892179
Assignee: nobody → btian
Attachment #8683561 - Flags: review?(brsun)
Attachment #8683561 - Flags: review?(brsun)
Attachment #8683561 - Attachment is obsolete: true
Attachment #8683562 - Flags: review?(brsun)
Set 2.2r blocker for PBAP memory leakage.
blocking-b2g: --- → 2.2r+
Comment on attachment 8683562 [details] [diff] [review]
Patch 1 (v2): Fix PBAP memory leakage

Review of attachment 8683562 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM
Attachment #8683562 - Flags: review?(brsun) → review+
https://hg.mozilla.org/mozilla-central/rev/6cf483eb34a6
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S11 (13Nov)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: