Bladeren bron

fix max unpack length

Thomas Waldmann 10 jaren geleden
bovenliggende
commit
f767d5803e
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      attic/key.py

+ 1 - 1
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.
     meta is a Meta namedtuple and contains all required information about data.
     data is maybe compressed (see meta) and maybe encrypted (see meta).
     data is maybe compressed (see meta) and maybe encrypted (see meta).
     """
     """
-    max_len = 2000000  # XXX formula?
+    max_len = 10000000  # XXX formula?
     unpacker = msgpack.Unpacker(
     unpacker = msgpack.Unpacker(
         use_list=False,
         use_list=False,
         # avoid memory allocation issues causes by tampered input data.
         # avoid memory allocation issues causes by tampered input data.