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-22 12:43:39 +02:00
2021-07-06 11:10:47 +02:00
2021-08-03 09:33:24 +02:00
2021-08-03 08:45:27 +02:00
2021-07-30 15:35:39 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-07-14 11:43:23 +01:00
2021-07-14 11:43:23 +01: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-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-14 23:09:47 +02:00
2021-05-04 16:30:23 +02: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-05-04 16:30:23 +02:00
2021-07-20 13:58:07 +03:00
2021-07-20 13:58:07 +03:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-07-14 11:43:23 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-06-03 15:45:05 +01:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-14 21:49:23 +05:30
2021-06-29 14:02:23 +02:00
2021-07-30 15:35:39 +02:00
2021-07-30 15:35:39 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-07-06 11:10:44 +02:00
2020-06-10 15:30:52 +02:00
2021-05-05 15:02:01 +02:00
2021-06-16 11:56:25 +01:00
2021-05-04 14:45:16 +02: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
2021-07-09 11:43:05 -07:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:39:13 +02:00
2021-01-13 16:17:06 +01:00
2021-01-13 16:17:06 +01:00
2021-06-16 11:56:25 +01:00
2021-07-14 11:43:23 +01:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:22:40 +02:00
2021-05-04 16:30:23 +02:00
2021-05-22 08:16:43 +02:00
2021-05-04 14:45:16 +02:00
2021-01-13 16:17:06 +01:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +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-07-14 11:43:23 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-07-19 23:34:23 -04: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-05 15:02:01 +02:00
2021-05-20 13:29:38 +03:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-02-19 11:48:30 +01:00
2021-05-04 14:45:15 +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-25 00:31:39 +02:00
2021-05-14 15:15:25 +02: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
2021-05-05 15:02:01 +02: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
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-20 13:05:13 +02:00
2021-05-04 14:45:16 +02:00
2021-06-16 11:56:25 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-07-24 00:51:42 +02:00
2021-05-09 09:29:45 +02:00
2021-07-13 10:20:03 +02:00
2021-05-05 15:02:01 +02:00
2021-07-09 12:49:12 +02:00
2021-05-05 15:02:01 +02:00
2021-07-06 11:24:06 +02:00
2021-05-04 16:30:23 +02:00
2021-06-17 12:47:53 +02:00
2021-08-03 09:33:24 +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-05 15:02:01 +02:00