neoneo-go/pkg/vm/stackitem
Evgeniy Stratonikov a8d2df874f stackitem: limit JSON size in ToJSONWithTypes
Also do not limit depth. It was introduced in e34fa2e915 as a simple
solution to OOM problem. In this commit we do exactly the refactoring
described there. Maximum size is the same as stack item size and
can be changed if needed withouth significat refactoring.
`1 MiB` seems sufficient, though.

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2022-03-09 10:29:23 +03:00
..
item.go vm/emit: check big integer size 2022-02-11 12:48:55 +03:00
item_test.go stackitem: make ByteArray an alias to []byte 2021-08-13 14:41:26 +03:00
json.go stackitem: limit JSON size in ToJSONWithTypes 2022-03-09 10:29:23 +03:00
json_test.go stackitem: limit JSON size in ToJSONWithTypes 2022-03-09 10:29:23 +03:00
reference.go vm: embed reference counter in compound items 2021-08-13 14:41:26 +03:00
serialization.go stackitem: simplify extracting value from map 2021-12-01 21:36:35 +03:00
serialization_test.go stackitem: avoid going through Value() in serialization 2021-08-23 18:29:07 +03:00
type.go stackitem: rework error handling 2021-07-07 00:18:00 +03:00
type_test.go stackitem: allow to convert type from string 2020-07-31 16:07:16 +03:00