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
20724211
Commit
20724211
authored
May 16, 2012
by
xiaofeng@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue 378
parent
a269a2c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
cpp_string_field.cc
src/google/protobuf/compiler/cpp/cpp_string_field.cc
+2
-1
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+2
-1
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+2
-1
No files found.
src/google/protobuf/compiler/cpp/cpp_string_field.cc
View file @
20724211
...
@@ -398,7 +398,8 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
...
@@ -398,7 +398,8 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
descriptor_
->
type
()
==
FieldDescriptor
::
TYPE_STRING
)
{
descriptor_
->
type
()
==
FieldDescriptor
::
TYPE_STRING
)
{
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
"::google::protobuf::internal::WireFormat::VerifyUTF8String(
\n
"
"::google::protobuf::internal::WireFormat::VerifyUTF8String(
\n
"
" this->$name$(0).data(), this->$name$(0).length(),
\n
"
" this->$name$(this->$name$_size() - 1).data(),
\n
"
" this->$name$(this->$name$_size() - 1).length(),
\n
"
" ::google::protobuf::internal::WireFormat::PARSE);
\n
"
);
" ::google::protobuf::internal::WireFormat::PARSE);
\n
"
);
}
}
}
}
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
20724211
...
@@ -243,7 +243,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
...
@@ -243,7 +243,8 @@ bool CodeGeneratorRequest::MergePartialFromCodedStream(
DO_
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
ReadString
(
DO_
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
ReadString
(
input
,
this
->
add_file_to_generate
()));
input
,
this
->
add_file_to_generate
()));
::
google
::
protobuf
::
internal
::
WireFormat
::
VerifyUTF8String
(
::
google
::
protobuf
::
internal
::
WireFormat
::
VerifyUTF8String
(
this
->
file_to_generate
(
0
).
data
(),
this
->
file_to_generate
(
0
).
length
(),
this
->
file_to_generate
(
this
->
file_to_generate_size
()
-
1
).
data
(),
this
->
file_to_generate
(
this
->
file_to_generate_size
()
-
1
).
length
(),
::
google
::
protobuf
::
internal
::
WireFormat
::
PARSE
);
::
google
::
protobuf
::
internal
::
WireFormat
::
PARSE
);
}
else
{
}
else
{
goto
handle_uninterpreted
;
goto
handle_uninterpreted
;
...
...
src/google/protobuf/descriptor.pb.cc
View file @
20724211
...
@@ -1065,7 +1065,8 @@ bool FileDescriptorProto::MergePartialFromCodedStream(
...
@@ -1065,7 +1065,8 @@ bool FileDescriptorProto::MergePartialFromCodedStream(
DO_
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
ReadString
(
DO_
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
ReadString
(
input
,
this
->
add_dependency
()));
input
,
this
->
add_dependency
()));
::
google
::
protobuf
::
internal
::
WireFormat
::
VerifyUTF8String
(
::
google
::
protobuf
::
internal
::
WireFormat
::
VerifyUTF8String
(
this
->
dependency
(
0
).
data
(),
this
->
dependency
(
0
).
length
(),
this
->
dependency
(
this
->
dependency_size
()
-
1
).
data
(),
this
->
dependency
(
this
->
dependency_size
()
-
1
).
length
(),
::
google
::
protobuf
::
internal
::
WireFormat
::
PARSE
);
::
google
::
protobuf
::
internal
::
WireFormat
::
PARSE
);
}
else
{
}
else
{
goto
handle_uninterpreted
;
goto
handle_uninterpreted
;
...
...
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