[jboss-jira] [JBoss JIRA] (WFLY-7829) Coverity: wrong condition in ProviderLoaderService.unregisterProviders (Elytron subsystem)

Darran Lofthouse (JIRA) issues at jboss.org
Thu Jan 12 13:57:00 EST 2017


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

Darran Lofthouse updated WFLY-7829:
-----------------------------------
    Fix Version/s: 11.0.0.Alpha1


> Coverity: wrong condition in ProviderLoaderService.unregisterProviders (Elytron subsystem)
> ------------------------------------------------------------------------------------------
>
>                 Key: WFLY-7829
>                 URL: https://issues.jboss.org/browse/WFLY-7829
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>            Reporter: Josef Cacek
>            Assignee: Ilia Vassilev
>            Priority: Critical
>             Fix For: 11.0.0.Alpha1
>
>
> Coverity static-analysis scan found an issue in a loop within the {{ProviderLoaderService.unregisterProviders}} method.
> https://scan7.coverity.com/reports.htm#v16159/p12663/fileInstanceId=6892104&defectInstanceId=1794523&mergedDefectId=1388480&fileStart=1&fileEnd=250
> The condition is wrong in the code
> {code:java}
> for (int i = providers.length - 1; i < 0; i--) {
>     Security.removeProvider(providers[i].getName());
> }
> {code}
> There should be {{i >= 0}} instead of {{i < 0}}.



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


More information about the jboss-jira mailing list