Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c7ed9fcf795770aaef1c237379693dbfc4b205c3
https://github.com/WebKit/WebKit/commit/c7ed9fcf795770aaef1c237379693dbfc4b205c3
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
A JSTests/stress/typedarray-put-out-of-range-canonical-numeric-index.js
M Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h
M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewInlines.h
Log Message:
-----------
[JSC] Propagate uint64_t index until we do bound-check for TypedArray
https://bugs.webkit.org/show_bug.cgi?id=321317
rdar://184355743
Reviewed by Yijia Huang.
It is 32bit only issue. We should propagate uint64_t index until we do
bound check, after that, we can use size_t. In 64bit, it does not matter
since sizeof(uint64_t) == sizeof(size_t).
Test: JSTests/stress/typedarray-put-out-of-range-canonical-numeric-index.js
* JSTests/stress/typedarray-put-out-of-range-canonical-numeric-index.js: Added.
(shouldBe):
* Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewInlines.h:
(JSC::JSGenericTypedArrayView<Adaptor>::defineOwnProperty):
(JSC::JSGenericTypedArrayView<Adaptor>::setIndex):
Canonical link: https://commits.webkit.org/318821@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications