processing / processing/processing4
Export path leaks streams in java/src/processing/mode/java/JavaBuild.java and can hang on malformed jar entries
@avinxshKD ci sta già lavorando.
Dal 27/2/2026.
- Lingua principale
- Java
- Stelle
- 494
- Fork
- 183
- Merge medio
- 4h 39m
- PR unite (30g)
- 3
Descrizione
Not seeing this reported yet, so filing it.
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.