diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-16 12:24:42 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-17 12:03:16 -0800 |
commit | 6f1c835221d18199962273def4386e0385820c67 (patch) | |
tree | fc5b8b667ffafb3cef4139f53c071427d8400784 | |
parent | c385321248c2bd181d42b7ce7a2f60baa365aa8d (diff) | |
download | nextpnr-6f1c835221d18199962273def4386e0385820c67.tar.gz nextpnr-6f1c835221d18199962273def4386e0385820c67.tar.bz2 nextpnr-6f1c835221d18199962273def4386e0385820c67.zip |
Disable traversal limit when reading logical netlist.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
-rw-r--r-- | fpga_interchange/fpga_interchange.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fpga_interchange/fpga_interchange.cpp b/fpga_interchange/fpga_interchange.cpp index 98580261..13f58e66 100644 --- a/fpga_interchange/fpga_interchange.cpp +++ b/fpga_interchange/fpga_interchange.cpp @@ -814,7 +814,9 @@ void FpgaInterchange::read_logical_netlist(Context * ctx, const std::string &fil sstream.seekg(0); kj::std::StdInputStream istream(sstream); - capnp::InputStreamMessageReader message_reader(istream); + capnp::ReaderOptions reader_options; + reader_options.traversalLimitInWords = 32llu*1024llu*1024llu*1024llu; + capnp::InputStreamMessageReader message_reader(istream, reader_options); LogicalNetlist::Netlist::Reader netlist = message_reader.getRoot<LogicalNetlist::Netlist>(); LogicalNetlistImpl netlist_reader(netlist); |