]
Ilia Vassilev updated WFLY-7829:
--------------------------------
Component/s: Security
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
Coverity static-analysis scan found an issue in a loop within the
{{ProviderLoaderService.unregisterProviders}} method.
https://scan7.coverity.com/reports.htm#v16159/p12663/fileInstanceId=68921...
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}}.