commit | 9a86275860fca9f4e2232342648bf293467e562e | [log] [tgz] |
---|---|---|
author | Elad Alon <eladalon@webrtc.org> | Wed Apr 24 09:41:32 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 24 12:58:19 2019 |
tree | c9aba83db1185903eeed16547681c12572dd1565 | |
parent | 84ae2b6efd12d818e492c304247c6852b3cd614a [diff] |
Fix dangling pointers issue in LibvpxVp8Encoder::Encode() LibvpxVp8Encoder::Encode() creates a local instance of rtc::scoped_refptr<I420BufferInterface>, then sets members to point into the internal state of that I420BufferInterface. These pointers remain in place after the buffer is destroyed. This CL fixes the issue by deleting the references when the function exits. Bug: webrtc:10570 Change-Id: I9623e2ff3dd43e8fd1d1cc7696a3f28227d4544b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133882 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27738}
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 http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.