FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix stream/zip leaks and infinite loop in export path by avinxshKD · Pull Request #1458 · processing/processing4 · GitHub

Fix stream/zip leaks and infinite loop in export path - #1458

Open
avinxshKD wants to merge 1 commit into
processing:mainfrom
avinxshKD:fix/export-stream-leaks
Open

Fix stream/zip leaks and infinite loop in export path#1458
avinxshKD wants to merge 1 commit into
processing:mainfrom
avinxshKD:fix/export-stream-leaks

Conversation

Copy link
Copy Markdown
Contributor

Fixes #1451

Four FileInputStream calls, a ZipFile, and the entry InputStream in packClassPathIntoZipFile were all leaking. Also the read loop would spin forever if read() returned -1 on a bad jar. Wrapped everything in try-with-resources and added an EOF break.

Copy link
Copy Markdown
Contributor Author

@catilac pls take a look on it

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant


Back | FazBrowse Home | New Git URL