commit | a3f2e7200877fbceaf2c3c6d475774198fd1f00c | [log] [tgz] |
---|---|---|
author | Erik Språng <sprang@webrtc.org> | Tue Jul 26 08:30:49 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 26 09:19:34 2022 |
tree | 2330fea1e51b79f5ef922bfc3e53aef9d744fb1e | |
parent | 5793ed8ff933f9b238477d0eb3d6a8462de0f3d5 [diff] |
Fix potential UAF in unit test. In WebRtcVideoChannelBaseTest.EncoderSelectorSwitchCodec a mock encoder selecter or stack allocated and then registered with the channel. Since this test uses real-time clocks/threads, there is a chance that the selector callback will be called after the mock goes out of scope, but before the test had time to be torn down. This CL fixes that by simply de-registering the callback before the end of the test. Bug: b/239855550 Change-Id: Ibb38a914933494fd04c963b9a13f2cc4aee160d6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269402 Auto-Submit: Erik Språng <sprang@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37618}
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.