Status: New
Labels: Type-Defect Priority-Medium

New issue 243 by john.carrino: Improve mergeDelimitedFrom in the java Impl to setSizeLimit on the CodedInputStream

CodedInputStream defaults to 64MB size limit. For buffers rendered with writeDelimited, there is no public api way to process it if it is above 64MB.

If I could create a CodedInputStream and set it's size and call merge, that would work for me, but I don't have access to CodedInputStream.readRawVarint32

So since readRawVarint32 isn't public, another alternative is to modify AbstractMessageLite$Builder.mergeDelimitedFrom to create a codedInputStream and call setSizeLimit on it with the raw size.

This makes sense because we are merging something delimited with a known size, that size happens to be over the codedStream default, but we knew that going into it.

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to