[Webkit-unassigned] [Bug 246862] New: Decide how to handle -Wrestrict warning in SFrameUtils.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 21 09:52:42 PDT 2022


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

            Bug ID: 246862
           Summary: Decide how to handle -Wrestrict warning in
                    SFrameUtils.cpp
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: youennf at gmail.com

GCC is complaining about a memcpy in SFrameUtils.cpp:

SFrameUtils.cpp:139:16: warning: ‘void* memcpy(void*, const void*, size_t)’ accessing 18446744073709551614 bytes at offsets 0 and 0 overlaps 9223372036854775805 bytes at offset -9223372036854775807 [-Wrestrict]

Note that 18446744073709551614 is 2^64 - 2, so GCC is complaining that it thinks spsPpsLength can overflow, which would probably be real bad. For now I'll suppress it, but seemed worth reporting a bug to look into this closer.

-- 
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/20221021/550a7075/attachment.htm>


More information about the webkit-unassigned mailing list