[Webkit-unassigned] [Bug 282193] New: error: the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information [-Werror, -Wunsafe-buffer-
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 28 12:02:58 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=282193
Bug ID: 282193
Summary: error: the two-parameter std::span construction is
unsafe as it can introduce mismatch between buffer
size and the bound information
[-Werror,-Wunsafe-buffer-
Product: WebKit
Version: Other
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at redhat.com
CC: bugs-noreply at webkitgtk.org
With Clang 19.1.0, we have a large number of errors of this form:
In file included from /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk4/DerivedSources/WebKit/unified-sources/UnifiedSource-50d0d8dd-21.cpp:1:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp:46:16: 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]
46 | encoder << std::span(array->data, array->len);
| ^
I will add WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN and WTF_ALLOW_UNSAFE_BUFFER_USAGE_END usage to avoid this.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241028/afb1935a/attachment.htm>
More information about the webkit-unassigned
mailing list