1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00
Files
godot/core/io
Fabio Alessandrelli ccbd810934 [Net] Fix Marshalls infinite recursion crash.
Variants like dictionaries and arrays can have cyclic references, which
caused `encode_variant` to run an infinite recursion.
Instead of keeping a stack and looking for cyclic references which would
make serialization slower, this commit adds a `MAX_RECURSION_DEPTH`
constant to Variant, and have `encode_variant` keep track of the current
recursion depth, bailing when it's too high since this likely means a
cyclic reference has been encountered.

(cherry picked from commit 324636473a)
2021-08-03 09:33:24 +02:00
..
2021-06-16 11:56:25 +01:00
2021-01-13 16:17:06 +01:00