Fix possible uaf in WebRtcSessionDescriptionFactory::Post Move the callback out of the callbacks_ queue before invoking it. This prevents access to the destroyed callbacks_ queue if the callback synchronously destroys the factory. Also convert the on_certificate_ready callback from std::function to absl::AnyInvocable (move-only) and add a validation check in constructor. Bug: b/428836165, b/515407473 Change-Id: I433e0f908dd7737924db1bfe0839b2be699f7517 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/478842 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47935}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.