processing / processing/processing4

Export path leaks streams in java/src/processing/mode/java/JavaBuild.java and can hang on malformed jar entries

オープン
#1,451 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@avinxshKD がすでに取り組んでいます。

2026年2月27日 から。

主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。