mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
b29f8ef37e
* [protobuf] upgrade to latest release (v3.18.0) This requires patching OpenCV as it uses a function removed in the latest version of protobuf (FWIW, upstream OpenCV has a similar patch). * The arcus port also needs a patch * The caffe2 port also needs a patch * The brpc port also needs a patch
14 lines
624 B
Diff
14 lines
624 B
Diff
diff --git a/src/brpc/protocol.cpp b/src/brpc/protocol.cpp
|
|
index 11297ea..c998edb 100644
|
|
--- a/src/brpc/protocol.cpp
|
|
+++ b/src/brpc/protocol.cpp
|
|
@@ -203,7 +203,7 @@ BUTIL_FORCE_INLINE bool ParsePbFromZeroCopyStreamInlined(
|
|
// According to source code of pb, SetTotalBytesLimit is not a simple set,
|
|
// avoid calling the function when the limit is definitely unreached.
|
|
if (PB_TOTAL_BYETS_LIMITS < FLAGS_max_body_size) {
|
|
- decoder.SetTotalBytesLimit(INT_MAX, -1);
|
|
+ decoder.SetTotalBytesLimit(INT_MAX);
|
|
}
|
|
return msg->ParseFromCodedStream(&decoder) && decoder.ConsumedEntireMessage();
|
|
}
|