Bug 246862

Summary: Decide how to handle -Wrestrict warning in SFrameUtils.cpp
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
See Also: https://bugs.webkit.org/show_bug.cgi?id=246861

Michael Catanzaro
Reported 2022-10-21 09:52:42 PDT
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-10-28 09:53:19 PDT
Note You need to log in before you can comment on or make changes to this bug.