mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
has_known_vulnerability(): check .so files with version in filename
This commit is contained in:
parent
e90212fb3a
commit
28740ee036
@ -641,7 +641,7 @@ def has_known_vulnerability(filename):
|
||||
files_in_apk = set()
|
||||
with zipfile.ZipFile(filename) as zf:
|
||||
for name in zf.namelist():
|
||||
if name.endswith('libcrypto.so') or name.endswith('libssl.so'):
|
||||
if name.endswith('.so') and ('libcrypto' in name or 'libssl' in name):
|
||||
lib = zf.open(name)
|
||||
while True:
|
||||
chunk = lib.read(4096)
|
||||
|
Loading…
Reference in New Issue
Block a user