Bug 300192

Summary: [LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocketClient.cpp
Product: WebKit Reporter: Philippe Normand <philn>
Component: WebRTCAssignee: 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
Reported 2025-10-05 03:09:19 PDT
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
Philippe Normand
Comment 1 2025-10-05 03:15:20 PDT
EWS
Comment 2 2025-10-05 07:01:14 PDT
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
Comment 3 2025-10-05 07:02:17 PDT
Note You need to log in before you can comment on or make changes to this bug.