WasmParserLimits

data class WasmParserLimits(val maxModuleBytes: Long = 64L * 1024 * 1024, val maxSectionBytes: Int = 32 * 1024 * 1024, val maxCustomSectionBytes: Int = 4 * 1024 * 1024, val maxNameBytes: Int = 64 * 1024, val maxVectorElements: Int, val maxTypes: Int, val maxRecGroupTypes: Int, val maxSupertypes: Int = 1, val maxStructFields: Int, val maxImports: Int, val maxFunctions: Int, val maxTables: Int, val maxMemories: Int = 16, val maxGlobals: Int, val maxExports: Int, val maxElementSegments: Int, val maxDataSegments: Int, val maxTags: Int, val maxFunctionParams: Int, val maxFunctionResults: Int, val maxFunctionBytes: Int = 8 * 1024 * 1024, val maxFunctionLocals: Int, val maxInstructionsPerFunction: Int, val maxControlDepth: Int)

Resource limits applied while decoding an untrusted WebAssembly binary.

Constructors

Link copied to clipboard
constructor(maxModuleBytes: Long = 64L * 1024 * 1024, maxSectionBytes: Int = 32 * 1024 * 1024, maxCustomSectionBytes: Int = 4 * 1024 * 1024, maxNameBytes: Int = 64 * 1024, maxVectorElements: Int, maxTypes: Int, maxRecGroupTypes: Int, maxSupertypes: Int = 1, maxStructFields: Int, maxImports: Int, maxFunctions: Int, maxTables: Int, maxMemories: Int = 16, maxGlobals: Int, maxExports: Int, maxElementSegments: Int, maxDataSegments: Int, maxTags: Int, maxFunctionParams: Int, maxFunctionResults: Int, maxFunctionBytes: Int = 8 * 1024 * 1024, maxFunctionLocals: Int, maxInstructionsPerFunction: Int, maxControlDepth: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard