commit | 41e236aa5995297d6f47f5e3e11897a45cd71e72 | [log] [tgz] |
---|---|---|
author | Jonas Oreland <jonaso@webrtc.org> | Thu Mar 21 13:04:45 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 21 15:58:22 2024 |
tree | f8ee717e72726652a1aa5e42e1823b8ea78839f0 | |
parent | 709374b33385aa9fecfd994aa429254efca45f46 [diff] |
Fix ubsan warning in ParseError testcase The parse error testcase creates a random byte string and tries to parse it as a delta attribute expecting it to fail. Ubsan detected that there was "unsafe" static_cast<>, where a value from network is static_casted:ed into a enum. That enum was then *checked* for validity, so I think it was same before aswell. This fix changes to do the check/convering as one step. Bug: webrtc:15392 Change-Id: Ie2534deef8988bc3c3179e194155cfd48b0ee6e5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/343980 Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41942}
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.