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-07-13 12:13:01 +02:00
2021-05-14 12:20:31 +03:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-04 16:30:23 +02:00
2021-01-13 16:17:06 +01:00
2021-05-16 17:52:31 +02:00
2021-05-16 17:52:31 +02:00
2021-06-07 22:36:07 +02:00
2021-05-16 17:52:31 +02:00
2021-06-07 22:36:07 +02:00
2021-05-16 17:52:31 +02:00
2021-05-16 17:52:31 +02:00
2021-05-16 17:52:31 +02:00
2021-05-16 17:52:31 +02:00
2021-05-22 17:36:16 +03:00
2021-05-24 12:56:41 +02:00
2021-05-16 17:52:31 +02:00
2021-07-13 10:20:03 +02:00
2021-05-04 14:45:16 +02:00
2021-06-16 11:56:25 +01:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-06-16 11:56:25 +01:00
2021-06-09 12:06:46 +07:00
2021-06-17 12:47:53 +02:00
2021-06-17 12:47:53 +02:00
2021-06-13 19:18:09 +02:00
2021-05-04 14:45:16 +02:00
2021-08-03 09:33:24 +02:00
2021-08-03 09:33:24 +02:00
2021-07-20 13:05:13 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-04 14:45:16 +02:00
2021-05-04 14:45:16 +02:00
2021-05-04 16:30:23 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-16 17:52:31 +02:00
2021-05-16 17:52:31 +02:00
2021-06-18 12:57:59 +01:00
2021-05-04 16:30:23 +02:00
2021-07-26 13:26:58 +02:00
2021-07-26 13:26:58 +02:00
2021-06-16 11:56:25 +01:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2020-06-10 15:30:52 +02:00
2021-05-05 15:02:01 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:02:01 +02:00
2021-01-13 16:17:06 +01:00
2021-06-03 11:44:47 +02:00
2021-06-03 11:44:47 +02:00
2021-05-16 17:52:31 +02:00
2021-01-13 16:17:06 +01:00