commit | 48ac38ec9b606844a346fb82b9101ba0c2d7be2b | [log] [tgz] |
---|---|---|
author | Mirko Bonadei <mbonadei@webrtc.org> | Mon Aug 15 08:20:44 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 15 10:11:46 2022 |
tree | 0dffa6fcadcbd1088cbf1408d7a9e9920e6875c0 | |
parent | 2f764dd53d5a060327ef081e29ce9e596cce9020 [diff] |
Prevent UB on BufferT::AppendData. As per https://en.cppreference.com/w/cpp/string/byte/memcpy, calling std::memcpy with dest or src as nullptr is UB. This CL prevents this from happening and is also looking into why UBSan didn't catch the issue. Bug: webrtc:14292 Change-Id: I99833f28ac865719d0dcb02c4de00f33a48c3992 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271502 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37783}
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.