diff options
author | xiaofeng@google.com <xiaofeng@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-05-16 05:41:31 +0000 |
---|---|---|
committer | xiaofeng@google.com <xiaofeng@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-05-16 05:41:31 +0000 |
commit | 20724211247b27e903bd25cdbe4ee4aab81445a8 (patch) | |
tree | 49f7cb3736aedb5a507fbd995f9eef329e603533 /src/google/protobuf/descriptor.pb.cc | |
parent | a269a2c48bf8d6c1b0ed88e66beff4577c764739 (diff) | |
download | protobuf-20724211247b27e903bd25cdbe4ee4aab81445a8.tar.gz protobuf-20724211247b27e903bd25cdbe4ee4aab81445a8.tar.bz2 protobuf-20724211247b27e903bd25cdbe4ee4aab81445a8.zip |
Fix issue 378
Diffstat (limited to 'src/google/protobuf/descriptor.pb.cc')
-rw-r--r-- | src/google/protobuf/descriptor.pb.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 5697b38a..b0f0e90e 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -1065,7 +1065,8 @@ bool FileDescriptorProto::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_dependency())); ::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); } else { goto handle_uninterpreted; |