diff options
author | Jon Skeet <jonskeet@google.com> | 2015-11-04 09:28:28 +0000 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-11-04 11:30:22 +0000 |
commit | 3d257a9dc1427acf163603cea95fb015e839bd2b (patch) | |
tree | 79bebd7f6c9c09e15c6f25bc9dc7dd4fedfce61b /csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs | |
parent | b6a32e909b1f58f157c19276af233e44627093f4 (diff) | |
download | protobuf-3d257a9dc1427acf163603cea95fb015e839bd2b.tar.gz protobuf-3d257a9dc1427acf163603cea95fb015e839bd2b.tar.bz2 protobuf-3d257a9dc1427acf163603cea95fb015e839bd2b.zip |
Add recursion limit handling to JSON parsing.
Fixes issue #932.
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs')
-rw-r--r-- | csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs b/csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs index 54c44e47..6ae02112 100644 --- a/csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs +++ b/csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs @@ -284,7 +284,7 @@ namespace Google.Protobuf Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes());
}
- private static TestRecursiveMessage MakeRecursiveMessage(int depth)
+ internal static TestRecursiveMessage MakeRecursiveMessage(int depth)
{
if (depth == 0)
{
@@ -296,7 +296,7 @@ namespace Google.Protobuf }
}
- private static void AssertMessageDepth(TestRecursiveMessage message, int depth)
+ internal static void AssertMessageDepth(TestRecursiveMessage message, int depth)
{
if (depth == 0)
{
|