Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 243 by john.carrino: Improve mergeDelimitedFrom in the java Impl to setSizeLimit on the CodedInputStream
http://code.google.com/p/protobuf/issues/detail?id=243

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 proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to