mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 16:24:11 +01:00
added build-id to specific items in the manifest to patch dependencies like batli-util.jar in issue #34
Former-commit-id: 1dfd295cc9c9fa18ab2d271c2a51f4acd98f6421
This commit is contained in:
@@ -768,7 +768,16 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
} else {
|
} else {
|
||||||
versionEvidence.addEvidence(source, key, value, Confidence.MEDIUM);
|
versionEvidence.addEvidence(source, key, value, Confidence.MEDIUM);
|
||||||
}
|
}
|
||||||
|
} else if (key.equals("build-id")) {
|
||||||
|
int pos = value.indexOf('(');
|
||||||
|
if (pos >= 0) {
|
||||||
|
value = value.substring(0, pos - 1);
|
||||||
|
}
|
||||||
|
pos = value.indexOf('[');
|
||||||
|
if (pos >= 0) {
|
||||||
|
value = value.substring(0, pos - 1);
|
||||||
|
}
|
||||||
|
versionEvidence.addEvidence(source, key, value, Confidence.MEDIUM);
|
||||||
} else if (key.contains("title")) {
|
} else if (key.contains("title")) {
|
||||||
productEvidence.addEvidence(source, key, value, Confidence.MEDIUM);
|
productEvidence.addEvidence(source, key, value, Confidence.MEDIUM);
|
||||||
addMatchingValues(classInformation, value, productEvidence);
|
addMatchingValues(classInformation, value, productEvidence);
|
||||||
|
|||||||
Reference in New Issue
Block a user