WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
312509
[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
Add attachment
proposed patch, testcase, etc.
Jani Hautakangas
Comment 1
2026-04-16 14:00:01 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/62921
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
<
rdar://problem/175140903
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug