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