Bug 300192
| Summary: | [LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocketClient.cpp | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Philippe Normand <philn> |
| Component: | WebRTC | Assignee: | Philippe Normand <philn> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Philippe Normand
Source/WebKit/NetworkProcess/webrtc/LibWebRTCSocketClient.cpp:106:15: warning: the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information [-Wunsafe-buffer-usage-in-container]
106 | std::span data(byteCast<uint8_t>(value), length);
| ^
1 warning generated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Philippe Normand
Pull request: https://github.com/WebKit/WebKit/pull/51830
EWS
Committed 301024@main (d81bae8b63b1): <https://commits.webkit.org/301024@main>
Reviewed commits have been landed. Closing PR #51830 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/161988027>