neo-go/pkg/vm/stackitem
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
..
item.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
item_test.go vm: handle very big int creation properly 2020-10-07 11:50:42 +03:00
json.go stackitem: limit JSONization nesting level 2021-07-06 17:33:16 +03:00
json_test.go stackitem: escape control characters in ToJSON() 2021-03-02 10:47:02 +03:00
serialization.go stackitem: add limit to serialized items 2021-07-06 19:34:02 +03:00
serialization_test.go stackitem: add limit to serialized items 2021-07-06 19:34:02 +03:00
type.go state: allow to encode AppExecResult with recursive items 2020-12-18 13:04:31 +03:00
type_test.go stackitem: allow to convert type from string 2020-07-31 16:07:16 +03:00