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
de3494fe
Commit
de3494fe
authored
Feb 25, 2013
by
xiaofeng@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue 403, issue 456, issue 462
parent
e406747c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
java_service.cc
src/google/protobuf/compiler/java/java_service.cc
+6
-0
coded_stream_inl.h
src/google/protobuf/io/coded_stream_inl.h
+6
-2
message.cc
src/google/protobuf/message.cc
+1
-1
No files found.
src/google/protobuf/compiler/java/java_service.cc
View file @
de3494fe
...
@@ -88,6 +88,12 @@ void ServiceGenerator::Generate(io::Printer* printer) {
...
@@ -88,6 +88,12 @@ void ServiceGenerator::Generate(io::Printer* printer) {
GenerateStub
(
printer
);
GenerateStub
(
printer
);
GenerateBlockingStub
(
printer
);
GenerateBlockingStub
(
printer
);
// Add an insertion point.
printer
->
Print
(
"
\n
"
"// @@protoc_insertion_point(class_scope:$full_name$)
\n
"
,
"full_name"
,
descriptor_
->
full_name
());
printer
->
Outdent
();
printer
->
Outdent
();
printer
->
Print
(
"}
\n\n
"
);
printer
->
Print
(
"}
\n\n
"
);
}
}
...
...
src/google/protobuf/io/coded_stream_inl.h
View file @
de3494fe
...
@@ -50,8 +50,12 @@ inline bool CodedInputStream::InternalReadStringInline(string* buffer,
...
@@ -50,8 +50,12 @@ inline bool CodedInputStream::InternalReadStringInline(string* buffer,
if
(
BufferSize
()
>=
size
)
{
if
(
BufferSize
()
>=
size
)
{
STLStringResizeUninitialized
(
buffer
,
size
);
STLStringResizeUninitialized
(
buffer
,
size
);
memcpy
(
string_as_array
(
buffer
),
buffer_
,
size
);
// When buffer is empty, string_as_array(buffer) will return NULL but memcpy
Advance
(
size
);
// requires non-NULL pointers even when size is 0. Hench this check.
if
(
size
>
0
)
{
memcpy
(
string_as_array
(
buffer
),
buffer_
,
size
);
Advance
(
size
);
}
return
true
;
return
true
;
}
}
...
...
src/google/protobuf/message.cc
View file @
de3494fe
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
// Based on original Protocol Buffers design by
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
// Sanjay Ghemawat, Jeff Dean, and others.
#include <i
o
stream>
#include <istream>
#include <stack>
#include <stack>
#include <google/protobuf/stubs/hash.h>
#include <google/protobuf/stubs/hash.h>
...
...
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