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 4349868 commit 0c7f8cdCopy full SHA for 0c7f8cd
chromium/v8/src/wasm/module-decoder-impl.h
@@ -687,6 +687,11 @@ class ModuleDecoderImpl : public Decoder {
687
}
688
} else {
689
if (tracer_) tracer_->TypeOffset(pc_offset());
690
+ if (initial_size + 1 > kV8MaxWasmTypes) {
691
+ errorf(pc(), "Type definition count exceeds maximum %zu",
692
+ kV8MaxWasmTypes);
693
+ return;
694
+ }
695
// Similarly to above, we need to resize types for a group of size 1.
696
module_->types.resize(initial_size + 1);
697
module_->isorecursive_canonical_type_ids.resize(initial_size + 1);
0 commit comments