vmvalidator

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

copy from wagon/validate and customized it Copyright 2017 The go-interpreter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Modify by contentos Authors

Index

Constants

This section is empty.

Variables

View Source
var ErrProhibitFloat = errors.New("float type be prohibited")
View Source
var ErrProhibitFloatComparision = errors.New("comparision between float type be prohibited")
View Source
var ErrProhibitFloatOperation = errors.New("operations of float type be prohibited")
View Source
var ErrStackUnderflow = errors.New("validate: stack underflow")

Functions

func VerifyModule

func VerifyModule(module *wasm.Module) error

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
}

func (Error) Error

func (e Error) Error() string

type InvalidElementIndexError

type InvalidElementIndexError uint32

func (InvalidElementIndexError) Error

func (e InvalidElementIndexError) Error() string

type InvalidImmediateError

type InvalidImmediateError struct {
	ImmType string
	OpName  string
}

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

type InvalidTypeError struct {
	Wanted wasm.ValueType
	Got    wasm.ValueType
}

func (InvalidTypeError) Error

func (e InvalidTypeError) Error() string

type NoSectionError

type NoSectionError wasm.SectionID

func (NoSectionError) Error

func (e NoSectionError) Error() string

type UnmatchedOpError

type UnmatchedOpError byte

func (UnmatchedOpError) Error

func (e UnmatchedOpError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL