New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.util.zip.ZipException: unexpected EOF - Scan hangs in an infinite loop on Linux #24
Comments
Thanks !!!! Guess the symlink cycle detection is not quite right - ugh... |
Try now ? |
I've pushed back the previous log4j-detector-2021.12.14.jar pre-compiled binary in case this infinite loop is still a problem. Would love a test case if you have one. Haven't been able to reproduce this over here yet. Unfortunately I have to go to sleep now, but I really appreciate this bug report - thank you !!!!! |
I worked on a rewrite that will not try to load files in memory anymore and scan them streamlined. Maybe we can try to merge the versions. I am not sure, why you took the approach of a "getFreshZipStream" and all that trying to find the beginning of the zip stream in the file but it seems we should not copy stuff in memory. If you want we can discuss. See this version: |
Using 8fa4c76 it woks:
|
Closing this as fixed! @domoran - can you create a ticket so i don't forget your idea to improve the memory overhead? |
Using log4j-detector-2021.12.15.jar on Red Hat Enterprise Linux release 8.5 (Ootpa) with openjdk version "1.8.0_312"
The following output is from infinite loop:
The text was updated successfully, but these errors were encountered: