Bug 123343

Summary: UserMediaRequest use-after-free
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: eric.carlson, thiago.lacerda
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Philippe Normand 2013-10-25 08:08:14 PDT
The request created in NavigatorMediaStream::webkitGetUserMedia() is freed too early. I wonder if we should make it a unique_ptr.
Comment 1 Philippe Normand 2013-10-28 08:25:04 PDT
Eric and Thiago, have you seen this issue as well?

The life cycle of the request is not very clear to me.
Comment 2 Philippe Normand 2013-10-28 10:13:17 PDT
Turns out this can be fixed by storing the requests correctly as RefPtrs (not raw pointers) in the UserMediaRequestManager (implemented in bug 123158).

Thanks Eric for the help and advice :)