diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-02-15 11:05:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 11:05:34 +0100 |
commit | fdeed6ea061891838cf9b464570141bbf28fc4a0 (patch) | |
tree | 099c0e63c2d96a555df5bec9cdc09f3770c2ecf3 /core/io/marshalls.h | |
parent | 5a6da0b2a94a55798e8f79aefae379df7cab9e3e (diff) | |
parent | 6aede992a9db749d6e420b645416d9a6f5fe356b (diff) |
Merge pull request #58111 from maksloboda/decoding-master-fix
Fixed variant decoding Segmentation Fault
Diffstat (limited to 'core/io/marshalls.h')
-rw-r--r-- | core/io/marshalls.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |