Documentation
¶
Overview ¶
Package validate provides functions for validating WebAssembly modules
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrStackUnderflow = errors.New("validate: stack underflow")
ErrStackUnderflow define the error message
Functions ¶
func VerifyModule ¶
VerifyModule verifies the given module according to WebAssembly verification specs.
Types ¶
type Error ¶
type Error struct { Offset int // Byte offset in the bytecode vector where the error occurs. Function int // Index into the function index space for the offending function. Err error }
Error define the error struct
type InvalidElementIndexError ¶
type InvalidElementIndexError uint32
InvalidElementIndexError define invalid element index error
type InvalidImmediateError ¶
InvalidImmediateError define invalid immediate error
func (InvalidImmediateError) Error ¶
func (e InvalidImmediateError) Error() string
Error define invalid immediate error message
type InvalidLabelError ¶
type InvalidLabelError uint32
InvalidLabelError define uint32 type
func (InvalidLabelError) Error ¶
func (e InvalidLabelError) Error() string
Error define invalid label error
type InvalidLocalIndexError ¶
type InvalidLocalIndexError uint32
InvalidLocalIndexError define uint32 type
func (InvalidLocalIndexError) Error ¶
func (e InvalidLocalIndexError) Error() string
Error define invalid local index error
type InvalidTypeError ¶
InvalidTypeError define invalid type error struct
func (InvalidTypeError) Error ¶
func (e InvalidTypeError) Error() string
Error define invalid type error
type NoSectionError ¶
NoSectionError define section id
type UnmatchedOpError ¶
type UnmatchedOpError byte
UnmatchedOpError define byte type
func (UnmatchedOpError) Error ¶
func (e UnmatchedOpError) Error() string
Error define unmathed operator error