Skip to content

Commit

Permalink
fix: remove unecessary limit setting call to protobuf codedstream
Browse files Browse the repository at this point in the history
comment: default limit is already set to INT_MAX
  • Loading branch information
beniz authored and sileht committed Oct 6, 2020
1 parent d7e5515 commit ae26f59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/backends/ncnn/caffe2ncnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,6 @@ static bool read_proto_from_binary(const char *filepath,
google::protobuf::io::IstreamInputStream input(&fs);
google::protobuf::io::CodedInputStream codedstr(&input);

codedstr.SetTotalBytesLimit(INT_MAX);

bool success = message->ParseFromCodedStream(&codedstr);

fs.close();
Expand Down

0 comments on commit ae26f59

Please sign in to comment.