migrator / guava-libraries-2

Guava: Google Core Libraries for Java 1.6+
0 stars 0 forks source link

FileBackedOutputStream can leak open files on IO error #15

Open migrator opened 9 years ago

migrator commented 9 years ago

In https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/io/FileBackedOutputStream.java#203, if there is a file IO error when transferring to an on-disk buffer we'll leak the temp file (if resetOnFinalize is false) and will leak an open file handle until the finalizer for FileOutputStream happens to run.

relevance: 1

migrator commented 9 years ago

summary: Not Defined

I think this is a duplicate of #1664 (or at the very least closely related to).

status Not Defined creator: b...@cwconsult.dk created at: Jun 27, 2014

migrator commented 9 years ago

summary: Not Defined (No comment was entered for this change.)

status Not Defined creator: kak@google.com created at: Jun 29, 2014