We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCV uses deprecated version of Protobuf's SetTotalBytesLimit(). See protocolbuffers/protobuf#8794 Patch to fix the issue:
--- modules/dnn/src/caffe/caffe_io.cpp.orig 2021-10-06 19:52:42.000000000 +0000 +++ modules/dnn/src/caffe/caffe_io.cpp @@ -1111,7 +1111,7 @@ static const int kProtoReadBytesLimit = bool ReadProtoFromBinary(ZeroCopyInputStream* input, Message *proto) { CodedInputStream coded_input(input); - coded_input.SetTotalBytesLimit(kProtoReadBytesLimit, 536870912); + coded_input.SetTotalBytesLimit(kProtoReadBytesLimit); return proto->ParseFromCodedStream(&coded_input); }
Build OpenCV.
The text was updated successfully, but these errors were encountered:
Already fixed here: #20386
I updated to latest OpenCV version and the issue is still there
Sorry, something went wrong.
No branches or pull requests
System information (version)
Detailed description
OpenCV uses deprecated version of Protobuf's SetTotalBytesLimit().
See protocolbuffers/protobuf#8794
Patch to fix the issue:
Steps to reproduce
Build OpenCV.
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: