Fix UB when comparing two empty webrtc::Buffer objects operator== invoked std::memcmp(nullptr, nullptr, 0) when both buffers were empty, which is undefined behavior and triggers a ubsan crash. Fix the issue by returning early if both buffers have size 0. Bug: webrtc:42224551 Change-Id: I073171f57640e20115361146ebbe89e1781be0af Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/472020 Commit-Queue: Joachim Reiersen <joachimr@meta.com> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47694}
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.