Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom

Issue 2312813002: Limit Mojo messages recursion depth (Closed)
Patch Set: Address more review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
diff --git a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
index 705650bc18774a4cbc672337735c489d2e58c9b3..6a6b6e25c076b329d025f3225749e34cfd3aee0d 100644
--- a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
+++ b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
@@ -90,6 +90,7 @@ interface ConformanceTestInterface {
Method16(map<EnumA, EnumA>? param0);
Method17(array<InterfaceA> param0);
Method18(UnionA? param0);
+ Method19(Recursive recursive);
};
struct BasicStruct {
@@ -117,3 +118,8 @@ struct StructWithEnum {
A, B, C, D
};
};
+
+// This is used to test that deeply recursive structures don't blow the stack.
+struct Recursive {
+ Recursive? recursive;
+};

Powered by Google App Engine
This is Rietveld 408576698