You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export path leaks streams in java/src/processing/mode/java/JavaBuild.java and can hang on malformed jar entries #1451
While checking export code, spotted a few stream/zip handling bugs in java/src/processing/mode/java/JavaBuild.java:
new FileInputStream(...) is passed into saveStream() in multiple places, but that source stream is never closed.
ZipFile.getInputStream(entry) is also left open.
ZipFile itself is only closed on the happy path.
In the jar-entry read loop, if read() returns -1, remaining goes the wrong way and the loop can run forever.
This is in the Export Application path, so it’s not edge-only. Repeated exports can leak FDs/handles (worse on Windows due to file locks), and a bad/truncated jar can stall export.
Activity
avinxshKD commentedon Feb 27, 2026
@SableRaf here you go, If this is okay to proceed, I can send a fix with try-with-resources + EOF guard.
catilac commentedon Feb 27, 2026
assigned