-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpenCV3] fix build with latest protobuf (#20301)
* [OpenCV3] fix compatibility with latest protobuf * [OpenCV3] fix references
- Loading branch information
Showing
5 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/modules/dnn/src/caffe/caffe_io.cpp | ||
+++ b/modules/dnn/src/caffe/caffe_io.cpp | ||
@@ -1111,7 +1111,7 @@ static const int kProtoReadBytesLimit = INT_MAX; // Max size of 2 GB minus 1 by | ||
|
||
bool ReadProtoFromBinary(ZeroCopyInputStream* input, Message *proto) { | ||
CodedInputStream coded_input(input); | ||
- coded_input.SetTotalBytesLimit(kProtoReadBytesLimit, 536870912); | ||
+ coded_input.SetTotalBytesLimit(kProtoReadBytesLimit); | ||
|
||
return proto->ParseFromCodedStream(&coded_input); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters