--- a/base/tools/aapt2/io/Util.h +++ b/base/tools/aapt2/io/Util.h @@ -131,8 +131,7 @@ template bool ReadMessage(T *message) { ZeroCopyInputAdaptor adapter(in_); google::protobuf::io::CodedInputStream coded_stream(&adapter); - coded_stream.SetTotalBytesLimit(std::numeric_limits::max(), - coded_stream.BytesUntilTotalBytesLimit()); + coded_stream.SetTotalBytesLimit(std::numeric_limits::max()); return message->ParseFromCodedStream(&coded_stream); }