RESOLVED FIXED312509
[JSC] Suppress -Wunsafe-buffer-usage warnings in InlineCacheHandler and MarkedVector
https://bugs.webkit.org/show_bug.cgi?id=312509
Summary [JSC] Suppress -Wunsafe-buffer-usage warnings in InlineCacheHandler and Marke...
Jani Hautakangas
Reported 2026-04-16 13:56:28 PDT
Wrap unsafe pointer arithmetic with WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN/END in two JSC files that trigger -Werror,-Wunsafe-buffer-usage with clang - InlineCacheHandler: m_jumpTarget computation offsets a CodePtr via dataLocation<uint8_t*>() + prologueSizeInBytesDataIC. - MarkedVector: expandCapacity() uses raw pointer indexing to copy buffer contents during reallocation.
Attachments
Jani Hautakangas
Comment 1 2026-04-16 14:00:01 PDT
EWS
Comment 2 2026-04-19 22:28:16 PDT
Committed 311560@main (92526e91925a): <https://commits.webkit.org/311560@main> Reviewed commits have been landed. Closing PR #62921 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-04-19 22:29:12 PDT
Note You need to log in before you can comment on or make changes to this bug.