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
15bff99d
Commit
15bff99d
authored
May 04, 2015
by
Andre Eisenbach
Committed by
Brian Duff
May 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle 0-length byte buffers in micro and nano protobufs
Change-Id: I845ee1ab1005d25c8d77a8c2ed801c0f7b7c847b
parent
16a283f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
CodedInputByteBufferNano.java
...va/com/google/protobuf/nano/CodedInputByteBufferNano.java
+2
-0
No files found.
javanano/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano.java
View file @
15bff99d
...
...
@@ -236,6 +236,8 @@ public final class CodedInputByteBufferNano {
System
.
arraycopy
(
buffer
,
bufferPos
,
result
,
0
,
size
);
bufferPos
+=
size
;
return
result
;
}
else
if
(
size
==
0
)
{
return
WireFormatNano
.
EMPTY_BYTES
;
}
else
{
// Slow path: Build a byte array first then copy it.
return
readRawBytes
(
size
);
...
...
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