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:
Cyrus 2024-01-31 16:18:23 -05:00
parent 1d0a71a1a2
commit bb5b2b6a68

View File

@ -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;