Documentation
¶
Overview ¶
package validate provides functions for validating WebAssembly modules.
Index ¶
- Variables
- func VerifyModule(module *wasm.Module) error
- func VerifyWasmCodeFromRust(code []byte) error
- type Error
- type InvalidElementIndexError
- type InvalidImmediateError
- type InvalidLabelError
- type InvalidLocalIndexError
- type InvalidTypeError
- type NoSectionError
- type RustValidator
- type UnmatchedOpError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocalEntryCount = errors.New("validate: function local entry cout overflow")
View Source
var ErrStackUnderflow = errors.New("validate: stack underflow")
View Source
var PrintDebugInfo = false
Functions ¶
func VerifyModule ¶
VerifyModule verifies the given module according to WebAssembly verification specs.
func VerifyWasmCodeFromRust ¶
Types ¶
type Error ¶
type InvalidElementIndexError ¶
type InvalidElementIndexError uint32
func (InvalidElementIndexError) Error ¶
func (e InvalidElementIndexError) Error() string
type InvalidImmediateError ¶
func (InvalidImmediateError) Error ¶
func (e InvalidImmediateError) Error() string
type InvalidLabelError ¶
type InvalidLabelError uint32
func (InvalidLabelError) Error ¶
func (e InvalidLabelError) Error() string
type InvalidLocalIndexError ¶
type InvalidLocalIndexError uint32
func (InvalidLocalIndexError) Error ¶
func (e InvalidLocalIndexError) Error() string
type InvalidTypeError ¶
func (InvalidTypeError) Error ¶
func (e InvalidTypeError) Error() string
type NoSectionError ¶
func (NoSectionError) Error ¶
func (e NoSectionError) Error() string
type RustValidator ¶
type RustValidator struct {
// contains filtered or unexported fields
}
type UnmatchedOpError ¶
type UnmatchedOpError byte
func (UnmatchedOpError) Error ¶
func (e UnmatchedOpError) Error() string
Click to show internal directories.
Click to hide internal directories.