Closed Bug 808829 Opened 12 years ago Closed 12 years ago

WebRTC use-after-free crash [@mozilla::GetUserMediaStreamRunnable::Run]

Categories

(Core :: WebRTC, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 801227
Tracking Status
firefox16 --- unaffected
firefox17 --- disabled
firefox18 --- disabled
firefox19 --- affected
firefox-esr10 --- unaffected
firefox-esr17 --- unaffected

People

(Reporter: posidron, Assigned: anant)

References

Details

(Keywords: crash, sec-critical, testcase)

Attachments

(3 files)

Attached file testcase (deleted) —
alloc: dom/media/MediaManager.cpp:804 listeners = new StreamListeners; free: dom/media/MediaManager.cpp:962 GetActiveWindows()->Remove(aWindowID); re-use: dom/media/MediaManager.cpp:290 mListeners->AppendElement(listener); To reproduce refresh the page very often. Tested with m-c changeset: 112272:ab099c9e1a09
Attached file callstack (deleted) —
Failure is in getUserMedia; adding anant
Attached patch Set to NULL when freed (deleted) — Splinter Review
I cannot reproduce this, because I crash on a seemingly different bug. However, I think I know why this is happening and have attached a tentative fix.
Assignee: nobody → anant
Status: NEW → ASSIGNED
The other crash is bug 809637, BTW.
Anant: are you using a ASan build to reproduce this bug?
No, I'm using gmalloc (which appears to the only reliable memory inspection tool on OS X 10.8, since valgrind is not yet supported) which can be used to detect use-after-free. If you are able to make a build fairly quickly, I'd appreciate it if you could try one with this patch applied!
This bug will likely be fixed by the patch for bug 801227 (and in fact I think it's a variant of the same bug. Also, that last "listeners = NULL" is irrelevant; it's a local. I suggest duping against 801227 or make it dependent on that and retest with that fix.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: