aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs
Commit message (Collapse)AuthorAgeFilesLines
* Remove 64MB memory limit when deserializing messages in C#John Brock2018-01-311-0/+83
| | | | Increased `CodedInputStream.DefaultSizeLimit` to `Int32.MaxValue` to make it consistent with the Java implementation.
* Detect invalid tags with a field number of 0 in C#Jon Skeet2017-08-111-0/+14
| | | | | | | | Previously we only rejected the tag if the tag itself was 0, i.e. field=0, type=varint. The type doesn't matter: field 0 is always invalid. This removes the last of the C# conformance failures.
* Ensure leaveOpen is true when writing to a bufferJon Skeet2017-07-041-1/+8
| | | | | | | | Note that the compatibility tests have had to cahnge as well, to cope with internal changes. (The test project has access to internals in the main project.) Fixes #3209.
* Fix copy/paste typo in CodedInputStreamTestJon Skeet2016-03-011-1/+1
|
* Implement IDisposable for CodedInputStream and CodedOutputStreamJon Skeet2016-02-291-0/+22
| | | | | This fixes issue #679 and issue #1282. (The .gitignore change is just around ncrunch; I can put it in a separate PR if you really want.)
* Validate that end-group tags match their corresponding start-group tagsJon Skeet2016-02-151-2/+48
| | | | | | | | This detects: - An end-group tag with the wrong field number (doesn't match the start-group field) - An end-group tag with no preceding start-group tag Fixes issue #688.
* Add recursion limit handling to JSON parsing.Jon Skeet2015-11-041-2/+2
| | | | Fixes issue #932.
* More TODOs done.Jon Skeet2015-08-101-25/+23
| | | | | | - Removed a TODO without change in DescriptorPool.LookupSymbol - the TODOs were around performance, and this is only used during descriptor initialization - Make the CodedInputStream limits read-only, adding a static factory method for the rare cases when this is useful - Extracted IDeepCloneable into its own file.
* Tidying up - fix a bunch of TODOs and remove outdated ones.Jon Skeet2015-08-081-1/+0
|
* Skip groups properly.Jon Skeet2015-08-061-0/+87
| | | | | | | | | | | Now the generated code doesn't need to check for end group tags, as it will skip whole groups at a time. Currently it will ignore extraneous end group tags, which may or may not be a good thing. Renamed ConsumeLastField to SkipLastField as it felt more natural. Removed WireFormat.IsEndGroupTag as it's no longer useful. This mostly fixes issue 688. (Generated code changes coming in next commit.)
* Change ReadTag and PeekTag to just use 0 as a return value for "end of ↵Jon Skeet2015-08-051-9/+11
| | | | | | | | stream", rather than using an awkward out parameter. This simplifies quite a lot of code. Generated code in next commit.
* Expose Coded*Stream constructors directly.Jon Skeet2015-08-031-19/+19
|
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-171-0/+444
We'll see what I've missed when CI fails...