WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
300192
[LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocketClient.cpp
https://bugs.webkit.org/show_bug.cgi?id=300192
Summary
[LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocketCl...
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
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2025-10-05 03:15:20 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/51830
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
<
rdar://problem/161988027
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug