mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
pci.ids was not being exercised against the updated BC version. And the
ASN1UTF8String change to DERUTF8String so that the vendor string aren't throwing exceptions
This commit is contained in:
parent
1d0a71a1a2
commit
bb5b2b6a68
@ -159,7 +159,7 @@ public final class PciIds {
|
||||
if (manufacturer != null && manufacturer.getString().trim().matches("^[0-9A-Fa-f]{4}$")) {
|
||||
Vendor ven = DB.findVendor(manufacturer.getString().toLowerCase());
|
||||
if (ven != null && !Strings.isNullOrEmpty(ven.getName())) {
|
||||
manufacturer = ASN1UTF8String.getInstance(ven.getName());
|
||||
manufacturer = new DERUTF8String(ven.getName());
|
||||
}
|
||||
}
|
||||
return manufacturer;
|
||||
@ -184,7 +184,7 @@ public final class PciIds {
|
||||
Device dev = DB.findDevice(manufacturer.getString().toLowerCase(),
|
||||
model.getString().toLowerCase());
|
||||
if (dev != null && !Strings.isNullOrEmpty(dev.getName())) {
|
||||
model = ASN1UTF8String.getInstance(dev.getName());
|
||||
model = new DERUTF8String(dev.getName());
|
||||
}
|
||||
}
|
||||
return model;
|
||||
|
Loading…
Reference in New Issue
Block a user