mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-31 21:31:17 -04:00
Improve recursion warning, thx Hans!
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
94ccd022c4
commit
925cdbe542
@@ -109,8 +109,7 @@ def get_embedded_classes(apkfile, depth=0):
|
||||
:return: set of Java classes names as string
|
||||
"""
|
||||
if depth > 10: # zipbomb protection
|
||||
logging.error(_('max recursion depth in zip file reached: %s') % apkfile)
|
||||
return set()
|
||||
return {_('Max recursion depth in ZIP file reached: %s') % apkfile}
|
||||
|
||||
apk_regex = re.compile(r'.*\.apk')
|
||||
class_regex = re.compile(r'classes.*\.dex')
|
||||
|
||||
Reference in New Issue
Block a user