Skip to content

Commit 3be89cc

Browse files
joyeecheungaduh95
authored andcommitted
deps: V8: cherry-pick e061cf9970d9
Original commit message: [arraybuffers] initialize max byte length of empty array buffers Without initializing the max byte length field, any empty array buffer captured in the snapshot can make the snapshot unreproducible. Refs: #53579 Change-Id: I2489ab2e57ecbb405ec431a87d0acc92822b777c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5662576 Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/main@{#94754} Refs: v8/v8@e061cf9 PR-URL: #53755 Fixes: #53579 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 311f033 commit 3be89cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.15',
39+
'v8_embedder_string': '-node.16',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/src/builtins/builtins-typed-array-gen.cc

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ TNode<JSArrayBuffer> TypedArrayBuiltinsAssembler::AllocateEmptyOnHeapBuffer(
6868
UndefinedConstant());
6969
StoreBoundedSizeToObject(buffer, JSArrayBuffer::kRawByteLengthOffset,
7070
UintPtrConstant(0));
71+
StoreBoundedSizeToObject(buffer, JSArrayBuffer::kRawMaxByteLengthOffset,
72+
UintPtrConstant(0));
7173
StoreSandboxedPointerToObject(buffer, JSArrayBuffer::kBackingStoreOffset,
7274
EmptyBackingStoreBufferConstant());
7375
#ifdef V8_COMPRESS_POINTERS

0 commit comments

Comments
 (0)