[jboss-jira] [JBoss JIRA] (ELY-830) Coverity static analysis: Resource leak in KeyStoreCredentialStore (Elytron)

Ilia Vassilev (JIRA) issues at jboss.org
Fri Feb 17 14:20:00 EST 2017


     [ https://issues.jboss.org/browse/ELY-830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilia Vassilev updated ELY-830:
------------------------------
    Fix Version/s: 1.1.0.Beta19


> Coverity static analysis: Resource leak in KeyStoreCredentialStore (Elytron)
> ----------------------------------------------------------------------------
>
>                 Key: ELY-830
>                 URL: https://issues.jboss.org/browse/ELY-830
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Josef Cacek
>            Assignee: Ilia Vassilev
>            Priority: Critical
>              Labels: static_analysis
>             Fix For: 1.1.0.Beta19
>
>
> Coverity static-analysis scan found resource leak in {{KeyStoreCredentialStore.load(String)}} method.
> https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=6803973&defectInstanceId=1776761&mergedDefectId=1388282
> The method calls
> {code}
> keyStore.load(Files.newInputStream(location), getStorePassword(protectionParameter));
> {code}
> The resource {{java.nio.file.Files.newInputStream(location)}} is not closed in the {{load}} method.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list