Bug 312509
| Summary: | [JSC] Suppress -Wunsafe-buffer-usage warnings in InlineCacheHandler and MarkedVector | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jani Hautakangas <jani> |
| Component: | New Bugs | Assignee: | Jani Hautakangas <jani> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jani Hautakangas
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
Pull request: https://github.com/WebKit/WebKit/pull/62921
EWS
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
<rdar://problem/175140903>