[jboss-jira] [JBoss JIRA] (SECURITY-648) Files are not being closed properly in some places
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Sun Mar 4 19:15:36 EST 2012
[ https://issues.jboss.org/browse/SECURITY-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673433#comment-12673433 ]
Stuart Douglas commented on SECURITY-648:
-----------------------------------------
There are also heaps of other places where java.net.URL#openStream is used and the stream is not closed
> Files are not being closed properly in some places
> ---------------------------------------------------
>
> Key: SECURITY-648
> URL: https://issues.jboss.org/browse/SECURITY-648
> Project: PicketBox (JBoss Security and Identity Management)
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Stuart Douglas
> Assignee: Anil Saldhana
>
> org.picketbox.plugins.vault.PicketBoxSecurityVault#init opens two FileInputStreams and does not appear to close them in a finally block
> org.jboss.security.plugins.TmpFilePassword#toCharArray closes the file but does not use a finally block, so if there is an exception the file can leak
> org.picketbox.util.KeyStoreUtil#getKeyStore also open a FileInputStream and does not close it (in both versions of the function)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list