Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
81f4fe5a
Commit
81f4fe5a
authored
Mar 10, 2017
by
Feng Xiao
Committed by
GitHub
Mar 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2827 from xfxyjwf/i1251
Update comments for setSizeLimit.
parents
616e68ec
03c8c8be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CodedInputStream.java
...e/src/main/java/com/google/protobuf/CodedInputStream.java
+3
-3
No files found.
java/core/src/main/java/com/google/protobuf/CodedInputStream.java
View file @
81f4fe5a
...
...
@@ -354,9 +354,9 @@ public abstract class CodedInputStream {
*
* <p>Set the maximum message size. In order to prevent malicious messages from exhausting memory
* or causing integer overflows, {@code CodedInputStream} limits how large a message may be. The
* default limit is
64MB. You should set this limit as small as you can without harming your app's
*
functionality. Note that size limits only apply when reading from an {@code InputStream}, not
*
when constructed around a raw byte array (nor with {@link ByteString#newCodedInput})
.
* default limit is
{@code Integer.MAX_INT}. You should set this limit as small as you can without
*
harming your app's functionality. Note that size limits only apply when reading from an
*
{@code InputStream}, not when constructed around a raw byte array
.
*
* <p>If you want to read several messages from a single CodedInputStream, you could call {@link
* #resetSizeCounter()} after each one to avoid hitting the size limit.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment