Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CID-1205053] - Resource leak on fingerprint calculation in Directory…
…BrowserSupport The issue is related to JENKINS-18351. Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
- Loading branch information
2ea0276
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something that should be in LTS?
2ea0276
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. The issue may overflow OpenedFiles if somebody starts browsing workspaces using a server with a very custom Java installation.
hudson.Util.getDigestOf()
should close the stream in common cases. The risk appears ifMessageDigest.getInstance("MD5")
inhudson.Util.getDigestOf()
throws an exception.2ea0276
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the fact, we managed to catch it on a corrupted installation of HotSpot JVM