mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Improve recursion warning, thx Hans!
This commit is contained in:
parent
94ccd022c4
commit
925cdbe542
1 changed files with 1 additions and 2 deletions
|
|
@ -109,8 +109,7 @@ def get_embedded_classes(apkfile, depth=0):
|
||||||
:return: set of Java classes names as string
|
:return: set of Java classes names as string
|
||||||
"""
|
"""
|
||||||
if depth > 10: # zipbomb protection
|
if depth > 10: # zipbomb protection
|
||||||
logging.error(_('max recursion depth in zip file reached: %s') % apkfile)
|
return {_('Max recursion depth in ZIP file reached: %s') % apkfile}
|
||||||
return set()
|
|
||||||
|
|
||||||
apk_regex = re.compile(r'.*\.apk')
|
apk_regex = re.compile(r'.*\.apk')
|
||||||
class_regex = re.compile(r'classes.*\.dex')
|
class_regex = re.compile(r'classes.*\.dex')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue