From 984f2ddd96aaa11169fcf0ed37d264cbaf9df300 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 27 Sep 2011 20:40:03 +0200 Subject: [PATCH] [entropy.tools] _locate_edb: raise threshold to 90mb for safety --- libraries/entropy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entropy/tools.py b/libraries/entropy/tools.py index 041aafb8f..357ae0bc9 100644 --- a/libraries/entropy/tools.py +++ b/libraries/entropy/tools.py @@ -1475,7 +1475,7 @@ def _locate_edb(fileobj): raw_db_tag = const_convert_to_rawstring(db_tag) db_tag_len = len(db_tag) # NOTE: it was 30Mb, but app-doc/php-docs db size was 31MB - give_up_threshold = 1024000 * 60 # 60Mb + give_up_threshold = 1024000 * 90 # 90Mb # cannot index a bytes object in Python3, it returns int ! entry_point = const_convert_to_rawstring(db_tag[::-1][0]) max_read_len = 8