commit | b164e704505fc16cf0e6c0f471dd02010b8e6e2c | [log] [tgz] |
---|---|---|
author | Dan Minor <dminor@webrtc.org> | Thu May 28 13:21:42 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Fri May 29 11:42:06 2020 |
tree | 5e9098d4942e60f201fb4df45755aca7f02ada15 | |
parent | f1393e23a22cca5982231203c1ce01d653d19902 [diff] |
Check that data_ is non-null before memcpy in EnsureCapacityWithHeadroom Since we've passed IsConsistent(), if data_ is null, size_ must be zero, so we might attempt to copy zero bytes from a nullptr. This does not seem to cause problems in practice, but is still undefined behaviour. This was caught on an UBsan test run in Firefox. Bug: webrtc:11613 Change-Id: Iad795bf19ed69b56e066958a54a7e3a434b996cf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176280 Commit-Queue: Dan Minor <dminor@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31386}
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.