neoneo-go/pkg/vm
Roman Khimov b9ff07f32c stackitem: add limit to serialized items
Standard binary serialization/deserialization is mostly used in VM to put/get
elements into/from storage, so they never should exceed MaxSize (otherwise one
won't be able to deserialize these items).

This patch leaves EncodeBinaryStackItem unprotected, but that's a streaming
interface, so it's up to the user of it to ensure its appropriate use (and our
uses are mostly for native contract's data, so they're fine).
2021-07-06 19:34:02 +03:00
..
cli vm: increase waiting time for vm cli program 2021-06-01 16:29:08 +03:00
emit vm: allow emit.Array handle uint256 2021-04-16 16:20:30 +03:00
opcode *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
stackitem stackitem: add limit to serialized items 2021-07-06 19:34:02 +03:00
testdata opcode: fix GTE, LTE string representations 2021-04-29 16:08:48 +03:00
context.go vm: add instruction correctness check 2021-02-09 22:31:26 +03:00
contract_checks.go core: rename Neo.Crypto.CheckMultisig interop 2021-05-11 18:38:14 +03:00
contract_checks_test.go core: refactor Neo.Crypto.CheckMultisigWithECDsaSecpr1 2021-03-10 21:46:05 +03:00
debug_test.go vm: fix debugger and add tests 2020-08-18 11:26:27 +03:00
exception.go stackitem: change Bool() to TryBool(), prepare for its failures 2020-08-21 20:55:20 +03:00
interop.go interop: remove System.Iterator.Create, fix #1935 2021-05-11 12:13:30 +03:00
json_test.go vm: simplify some test code 2021-05-12 18:44:35 +03:00
opcodebench_test.go opcode: fix GTE, LTE string representations 2021-04-29 16:08:48 +03:00
ref_counter.go vm: move StackItem to a separate package 2020-06-08 13:27:08 +03:00
ref_counter_test.go vm: move StackItem to a separate package 2020-06-08 13:27:08 +03:00
slot.go vm: allow to initialize static slot in method 2020-07-27 13:00:35 +03:00
slot_test.go vm: allow to initialize static slot in method 2020-07-27 13:00:35 +03:00
stack.go vm: optimize reversing items on the stack 2020-10-15 16:19:59 +03:00
stack_test.go vm: allow to convert stack to a slice 2020-07-31 16:07:16 +03:00
state.go remove github.com/pkg/errors from dependencies 2020-08-07 12:21:52 +03:00
state_test.go core, vm: store VMState as byte instead of string 2020-07-29 10:14:08 +03:00
vm.go vm, cli: allow to specify flags while loading VM 2021-05-28 12:07:41 +03:00
vm_test.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00