Fix Call use-after-free in PushdownMediaDescription PushdownMediaDescription previously ran its ScopedOperationsBatcher and then posted a separate task to network_thread() capturing a raw Call* to call SetPreferredRtcpCcAckType(). When signaling_thread and network_thread are the same thread, the caller can invoke PeerConnection::Close() synchronously (for example, inside the SetLocalDescription or SetRemoteDescription completion observer) before the posted task executes, destroying Call on the shared thread and leaving the queued task with a dangling pointer. Queue SetPreferredRtcpCcAckType() on the existing ScopedOperationsBatcher before Run(), guarded by a null check on call_ptr(). This executes synchronously with the channel content updates while Call is alive, preserves abort-on-error semantics if a preceding batched channel update fails, and avoids an extra thread hop. Bug: webrtc:42225697, webrtc:447037083 Change-Id: I17d9d255db3675ca9182cbae348caadd2c63849c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/517840 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/main@{#49331}
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.