Skip to content

Commit b321e27

Browse files
gahaasV8 LUCI CQ
authored andcommitted
[wasm] Check for access checks in InstallConditionalFeatures
[email protected] Together-with: [email protected] Bug: 333926321 Change-Id: Ib319f64ac08e8081ffea49dae3a395a65c4b5db2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5445557 Commit-Queue: Andreas Haas <[email protected]> Reviewed-by: Jakob Kummerow <[email protected]> Cr-Commit-Position: refs/heads/main@{#93369}
1 parent b278093 commit b321e27

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/wasm/wasm-js.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,6 +3379,7 @@ void WasmJs::InstallConditionalFeatures(Isolate* isolate,
33793379
if (!maybe_wasm.ToHandle(&wasm_obj) || !IsJSObject(*wasm_obj)) return;
33803380
Handle<JSObject> webassembly = Handle<JSObject>::cast(wasm_obj);
33813381
if (!webassembly->map()->is_extensible()) return;
3382+
if (webassembly->map()->is_access_check_needed()) return;
33823383

33833384
/*
33843385
If you need to install some optional features, follow the pattern:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2024 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
d8.test.enableJSPI();
6+
this.WebAssembly = this;
7+
d8.test.installConditionalFeatures();

0 commit comments

Comments
 (0)