Skip to content

Commit 77d8572

Browse files
committed
Use the key instead of the CVE since some CVE contain multiple bugs/patches
1 parent ac84592 commit 77d8572

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/src/main/java/fuzion24/device/vulnerability/test/VulnerabilityDescriptor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ public static Map<String, VulnerabilityDescriptor> getParsedVulnMap(Context ctx)
7070
Map<String, VulnerabilityDescriptor> descriptorMap = new HashMap<String, VulnerabilityDescriptor>();
7171
Iterator<String> keys = vulnMap.keys();
7272

73-
74-
75-
7673
while (keys.hasNext()) {
7774
JSONObject jobj = null;
7875
String description = null;
@@ -104,7 +101,7 @@ public static Map<String, VulnerabilityDescriptor> getParsedVulnMap(Context ctx)
104101
altNames,
105102
patches);
106103

107-
descriptorMap.put(cve, vd);
104+
descriptorMap.put(key, vd);
108105
}
109106

110107
return descriptorMap;

0 commit comments

Comments
 (0)