RESOLVED FIXED321926
[LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocket.cpp
https://bugs.webkit.org/show_bug.cgi?id=321926
Summary [LibWebRTC] Fix unsafe-buffer-usage-in-container warning in LibWebRTCSocket.cpp
Diego Pino
Reported 2026-08-17 06:08:21 PDT
While building WPEWebKit with LibWebRTC: ``` In file included from /home/pwuser/webkit/WebKitBuild/WPE/Release/DerivedSources/WebKit/unified-sources/UnifiedSource-WebProcess-26.cpp:2: /home/pwuser/webkit/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCSocket.cpp:90:28: error: the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information [-Werror,-Wunsafe-buffer-usage-in-container] 90 | NotifyPacketReceived({ { data.data(), data.size() }, m_remoteAddress, packetTimestamp, ecn }); | ^ 1 error generated. [11657/11976] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir///DerivedSources/WebKit/unified-sources/UnifiedSource-WebProcess-38.cpp.o ninja: build stopped: subcommand failed. ```
Attachments
Diego Pino
Comment 1 2026-08-17 06:09:41 PDT
EWS
Comment 2 2026-08-18 00:46:30 PDT
Committed 319352@main (ab28a079a8a7): <https://commits.webkit.org/319352@main> Reviewed commits have been landed. Closing PR #71770 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-08-18 00:47:12 PDT
Note You need to log in before you can comment on or make changes to this bug.