vm: introduce MaxArraySize constant

This is both for #373 and for interop functions that have to check some
inputs.
This commit is contained in:
Roman Khimov 2019-10-03 15:58:52 +03:00
parent cfa0c13322
commit a357d99624

View file

@ -24,8 +24,10 @@ var (
)
const (
maxSHLArg = 256
minSHLArg = -256
// MaxArraySize is the maximum array size allowed in the VM.
MaxArraySize = 1024
maxSHLArg = 256
minSHLArg = -256
)
// VM represents the virtual machine.