From f767d5803e3e6379bdccc57eb13fc423060a6097 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 18 Mar 2015 21:37:12 +0100 Subject: [PATCH] fix max unpack length --- attic/key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attic/key.py b/attic/key.py index 5c26e1661..6f480e870 100644 --- a/attic/key.py +++ b/attic/key.py @@ -658,7 +658,7 @@ def parser03(all_data): # new & flexible meta is a Meta namedtuple and contains all required information about data. data is maybe compressed (see meta) and maybe encrypted (see meta). """ - max_len = 2000000 # XXX formula? + max_len = 10000000 # XXX formula? unpacker = msgpack.Unpacker( use_list=False, # avoid memory allocation issues causes by tampered input data.