aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-16 12:24:42 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-17 12:03:16 -0800
commit6f1c835221d18199962273def4386e0385820c67 (patch)
treefc5b8b667ffafb3cef4139f53c071427d8400784 /fpga_interchange
parentc385321248c2bd181d42b7ce7a2f60baa365aa8d (diff)
downloadnextpnr-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>
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/fpga_interchange.cpp4
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);