summaryrefslogtreecommitdiff
path: root/core/variant/variant.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-30 17:15:13 +0200
committerGitHub <noreply@github.com>2021-07-30 17:15:13 +0200
commitc27ef1565ff44eaacc081081b6b21b23665fbe10 (patch)
tree81feb76f016d7fd280d6d2485a273e7dd3eb0f08 /core/variant/variant.h
parent23bf04ae9acfa5ec74e960564fe91ffe683ec934 (diff)
parent324636473aa65165caeee29e9b70e2d8c21fcb96 (diff)
Merge pull request #51068 from Faless/net/4.x_marshalls_recurse
[Net] Fix Marshalls infinite recursion crash.
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r--core/variant/variant.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h
index 4dc706e853..780f9b4e70 100644
--- a/core/variant/variant.h
+++ b/core/variant/variant.h
@@ -118,6 +118,11 @@ public:
VARIANT_MAX
};
+ enum {
+ // Maximum recursion depth allowed when serializing variants.
+ MAX_RECURSION_DEPTH = 1024,
+ };
+
private:
friend struct _VariantCall;
friend class VariantInternal;