Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 92526e91925a340c038a992cc96046000db76905
      
https://github.com/WebKit/WebKit/commit/92526e91925a340c038a992cc96046000db76905
  Author: Jani Hautakangas <[email protected]>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/bytecode/InlineCacheHandler.cpp
    M Source/JavaScriptCore/runtime/MarkedVector.cpp

  Log Message:
  -----------
  [JSC] Suppress -Wunsafe-buffer-usage warnings
https://bugs.webkit.org/show_bug.cgi?id=312509

Reviewed by Yusuke Suzuki.

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.

* Source/JavaScriptCore/bytecode/InlineCacheHandler.cpp:
* Source/JavaScriptCore/runtime/MarkedVector.cpp:
(JSC::MarkedVectorBase::expandCapacity):

Canonical link: https://commits.webkit.org/311560@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to