[Webkit-unassigned] [Bug 240596] New: Build with -Wno-stringop-overflow
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 18 13:33:08 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=240596
Bug ID: 240596
Summary: Build with -Wno-stringop-overflow
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
CC: bugs-noreply at webkitgtk.org
I'm starting to see more -Wstringop-overflow warnings from GCC, similar to bug #239340. E.g.:
[547/807] Building CXX object Source/WebKit/CMakeFiles/Web...ces/WebKit/unified-sources/UnifiedSource-54928a2b-33.cpp.o
In file included from /usr/include/c++/12/bits/shared_ptr_atomic.h:33,
from /usr/include/c++/12/memory:78,
from /home/mcatanzaro/Projects/WebKit/WebKitBuild/GNOME-gtk3/WTF/Headers/wtf/StdLibExtras.h:30,
from /home/mcatanzaro/Projects/WebKit/WebKitBuild/GNOME-gtk3/WTF/Headers/wtf/FastMalloc.h:26,
from /home/mcatanzaro/Projects/WebKit/Source/WebKit/config.h:42,
from /home/mcatanzaro/Projects/WebKit/Source/WebKit/WebProcess/UserContent/WebUserContentController.cpp:26,
from /home/mcatanzaro/Projects/WebKit/WebKitBuild/GNOME-gtk3/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-33.cpp:1:
In member function ‘std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::operator++() [with _ITp = unsigned int]’,
inlined from ‘void WTF::ThreadSafeRefCountedBase::ref() const’ at /home/mcatanzaro/Projects/WebKit/WebKitBuild/GNOME-gtk3/WTF/Headers/wtf/ThreadSafeRefCounted.h:60:9,
inlined from ‘WTF::Ref<T, <template-parameter-1-2> >::Ref(T&) [with T = WebCore::Frame; Traits = WTF::RawPtrTraits<WebCore::Frame>]’ at /home/mcatanzaro/Projects/WebKit/WebKitBuild/GNOME-gtk3/WTF/Headers/wtf/Ref.h:67:19,
inlined from ‘WTF::RefPtr<WebKit::ShareableBitmap> WebKit::createShareableBitmap(WebCore::RenderImage&, CreateShareableBitmapFromImageOptions&&)’ at /home/mcatanzaro/Projects/WebKit/Source/WebKit/WebProcess/WebCoreSupport/ShareableBitmapUtilities.cpp:46:35:
/usr/include/c++/12/bits/atomic_base.h:385:34: warning: ‘unsigned int __atomic_add_fetch_4(volatile void*, unsigned int, int)’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
385 | { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); }
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There's another one in HTMLMediaElement. It's not a very impressive showing for GCC, because incrementing a refcount does not involve any string operations. It's time to just give up and suppress this project-wide.
--
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/20220518/3aae6e2a/attachment.htm>
More information about the webkit-unassigned
mailing list