We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e643f99 commit 05f91b1Copy full SHA for 05f91b1
chromium/v8/src/wasm/module-decoder-impl.h
@@ -675,6 +675,11 @@ class ModuleDecoderImpl : public Decoder {
675
}
676
} else {
677
if (tracer_) tracer_->TypeOffset(pc_offset());
678
+ if (initial_size + 1 > kV8MaxWasmTypes) {
679
+ errorf(pc(), "Type definition count exceeds maximum %zu",
680
+ kV8MaxWasmTypes);
681
+ return;
682
+ }
683
// Similarly to above, we need to resize types for a group of size 1.
684
module_->types.resize(initial_size + 1);
685
module_->isorecursive_canonical_type_ids.resize(initial_size + 1);
0 commit comments