Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Use the non-deprecated version of a protobuf API. #727

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcsema/CFG/CFG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ NativeModule *ReadProtoBuf(const std::string &file_name,

google::protobuf::io::IstreamInputStream pstream(&fstream);
google::protobuf::io::CodedInputStream cstream(&pstream);
cstream.SetTotalBytesLimit(512 * 1024 * 1024, -1);
cstream.SetTotalBytesLimit(512 * 1024 * 1024);
Module cfg;
CHECK(cfg.ParseFromCodedStream(&cstream))
<< "Unable to read module from CFG file " << file_name;
Expand Down