Update log4j-finder.py

This commit is contained in:
Darius Braziunas
2021-12-16 18:59:20 -05:00
committed by GitHub
parent 5648f5e6df
commit 823c9a2194

View File

@@ -147,7 +147,7 @@ def iter_jarfile(fobj, parents=None, stats=None):
yield (zinfo, zfile, zpath, parents)
elif zpath.name.lower().endswith(JAR_EXTENSIONS):
yield from iter_jarfile(
zfile.open(zinfo.filename), parents=parents + [zpath]
io.BytesIO(zfile.open(zinfo.filename).read()), parents=parents + [zpath]
)
except IOError as e:
log.debug(f"{fobj}: {e}")