Skip to content

Commit

Permalink
python interface: increase traversal limit
Browse files Browse the repository at this point in the history
Sometimes, when iterating through the repository, it would throw:
KjException: capnp/arena.c++:130: failed: Exceeded message traversal limit.  See capnp::ReaderOptions.

The limit is likely meant to be a message-size-bomb-attack prevention. No need for that here.
  • Loading branch information
walachey committed Oct 30, 2017
1 parent f12f927 commit e3417de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/bb_binary/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _mkdir_p(path):
def load_frame_container(fname):
"""Loads :obj:`.FrameContainer` from this filename."""
with open(fname, 'rb') as f:
return FrameContainer.read(f)
return FrameContainer.read(f, traversal_limit_in_words=2**63)


class Repository(object):
Expand Down

0 comments on commit e3417de

Please sign in to comment.