From 6aede992a9db749d6e420b645416d9a6f5fe356b Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 14 Feb 2022 23:04:05 +0300 Subject: Fixed variant decoding Segmentation Fault --- core/io/marshalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io/marshalls.h') diff --git a/core/io/marshalls.h b/core/io/marshalls.h index 4d7b98b749..fef3a1c2c1 100644 --- a/core/io/marshalls.h +++ b/core/io/marshalls.h @@ -212,7 +212,7 @@ public: EncodedObjectAsID() {} }; -Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = nullptr, bool p_allow_objects = false); +Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = nullptr, bool p_allow_objects = false, int p_depth = 0); Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bool p_full_objects = false, int p_depth = 0); #endif // MARSHALLS_H -- cgit v1.2.3