mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 09:09:31 +01:00
fixed bug allowing more then a single vulnerability to be removed
Former-commit-id: aa2e87885e7a3ddc4947a81c3c3e104630630e23
This commit is contained in:
@@ -264,8 +264,8 @@ public class SuppressionRule {
|
|||||||
}
|
}
|
||||||
if (hasCve() || hasCwe() || hasCvssBelow()) {
|
if (hasCve() || hasCwe() || hasCvssBelow()) {
|
||||||
final Iterator<Vulnerability> itr = dependency.getVulnerabilities().iterator();
|
final Iterator<Vulnerability> itr = dependency.getVulnerabilities().iterator();
|
||||||
boolean remove = false;
|
while (itr.hasNext()) {
|
||||||
while (!remove && itr.hasNext()) {
|
boolean remove = false;
|
||||||
final Vulnerability v = itr.next();
|
final Vulnerability v = itr.next();
|
||||||
for (String entry : this.cve) {
|
for (String entry : this.cve) {
|
||||||
if (entry.equalsIgnoreCase(v.getName())) {
|
if (entry.equalsIgnoreCase(v.getName())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user