diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-02-28 09:43:07 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-02-28 12:46:45 +0000 |
commit | dfce603e377b20693d6b2fd9169c0d155519659d (patch) | |
tree | 48721cb12149820170b3bfcb6cf6b25e1dc5e8ea /databases/mysql57-server | |
parent | 01259dd6d8da60ad7ee325a06a3cfaf0fdfa7120 (diff) | |
download | ports-dfce603e377b20693d6b2fd9169c0d155519659d.tar.gz ports-dfce603e377b20693d6b2fd9169c0d155519659d.zip |
databases/mysql57-server: Fix build with protobuf 3.18.0+
Deprecated 2-parameter SetTotalBytesLimit() has be removed since protobuf 3.18.0.
Reference: https://github.com/protocolbuffers/protobuf/commit/cda795437d00a15f375d3d5e2659adac715459c6
Diffstat (limited to 'databases/mysql57-server')
-rw-r--r-- | databases/mysql57-server/files/patch-protobuf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/mysql57-server/files/patch-protobuf b/databases/mysql57-server/files/patch-protobuf new file mode 100644 index 000000000000..3c1a23fdd859 --- /dev/null +++ b/databases/mysql57-server/files/patch-protobuf @@ -0,0 +1,15 @@ +Deprecated 2-parameter SetTotalBytesLimit() has be removed since protobuf 3.18.0. + +Reference: https://github.com/protocolbuffers/protobuf/commit/cda795437d00a15f375d3d5e2659adac715459c6 + +--- rapid/plugin/x/ngs/src/protocol_decoder.cc.orig 2021-11-29 20:09:43 UTC ++++ rapid/plugin/x/ngs/src/protocol_decoder.cc +@@ -123,7 +123,7 @@ Error_code Message_decoder::parse(Request &request) + google::protobuf::io::CodedInputStream stream(reinterpret_cast<const uint8_t*>(request.buffer()), + static_cast<int>(request.buffer_size())); + // variable 'mysqlx_max_allowed_packet' has been checked when buffer was filling by data +- stream.SetTotalBytesLimit(static_cast<int>(request.buffer_size()), -1 /*no warnings*/); ++ stream.SetTotalBytesLimit(static_cast<int>(request.buffer_size())); + // Protobuf limits the number of nested objects when decoding messages + // lets set the value in explicit way (to ensure that is set accordingly with + // out stack size) |