[entropy.tools] _locate_edb: raise threshold to 90mb for safety

This commit is contained in:
Fabio Erculiani
2011-09-27 20:40:03 +02:00
parent e755e8ec39
commit 984f2ddd96

View File

@@ -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