[Webkit-unassigned] [Bug 232989] [GTK] 2.34.1 Compiler warnings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 07:55:07 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=232989

Michael Catanzaro <mcatanzaro at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at gnome.org

--- Comment #1 from Michael Catanzaro <mcatanzaro at gnome.org> ---
They all look like spam to me. Which of those do you consider important? I try to keep trunk warning-free, so these should mostly all be fixed already on trunk, but I don't make any such effort for the release branches.

> In function 'memcpy',
>     inlined from 'get' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WTF/Headers/wtf/
> Packed.h:146:15,
>     inlined from '__conv_op ' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WTF/Headers/wtf/
> Packed.h:195:48,
>     inlined from '__conv_op ' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WTF/Headers/wtf/
> RefPtr.h:89:57,
>     inlined from 'isShared' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/JavaScriptCore/
> PrivateHeaders/JavaScriptCore/ArrayBuffer.h:84:36,
>     inlined from 'isShared' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/JavaScriptCore/
> PrivateHeaders/JavaScriptCore/ArrayBuffer.h:202:31,
>     inlined from 'unsharedBuffer' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/JavaScriptCore/
> PrivateHeaders/JavaScriptCore/ArrayBufferView.h:60:9,
>     inlined from 'send' at
> /builddir/build/BUILD/webkitgtk-2.34.1/Source/WebCore/Modules/websockets/
> WebSocket.cpp:389:52,
>     inlined from 'operator()' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WebCore/
> DerivedSources/JSWebSocket.cpp:535:5,
>     inlined from 'toJS' at
> /builddir/build/BUILD/webkitgtk-2.34.1/Source/WebCore/bindings/js/
> JSDOMConvertBase.h:168:18,
>     inlined from 'jsWebSocketPrototypeFunction_send2Body' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WebCore/
> DerivedSources/JSWebSocket.cpp:535:5,
>     inlined from 'jsWebSocketPrototypeFunction_sendOverloadDispatcher' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WebCore/
> DerivedSources/JSWebSocket.cpp:576:13,
>     inlined from 'call' at
> /builddir/build/BUILD/webkitgtk-2.34.1/Source/WebCore/bindings/js/
> JSDOMOperation.h:63:9,
>     inlined from 'jsWebSocketPrototypeFunction_send' at
> /builddir/build/BUILD/webkitgtk-2.34.1/redhat-linux-build/WebCore/
> DerivedSources/JSWebSocket.cpp:586:96:
> /usr/include/bits/string_fortified.h:29:33: warning: '__builtin_memcpy'
> reading 6 bytes from a region of size 0 [-Wstringop-overread]
>    29 |   return __builtin___memcpy_chk (__dest, __src, __len,
>       |                                 ^
> 
> I do not know whether it's a false positive or not.

I haven't looked closely, but my experience with -Wstringop-overread is the warning is almost always a false positive, or else so obtuse and unclear that it's unclear whether anything is actually wrong. This one is particularly annoying since it's coming from generated sources, so we'd have to investigate the generator to see what's going on. I think it's only worth investigating if the warning still happens when building trunk.

-Wodr is bug #229867.

-- 
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/20211111/8146279b/attachment.htm>


More information about the webkit-unassigned mailing list