mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-14 16:59:53 +00:00
temp code to find out how to tell if json reference to vendor-table.json object is empty
This commit is contained in:
parent
4834f166f7
commit
6d15d1effa
@ -45,6 +45,10 @@ public class UefiGuid {
|
||||
System.arraycopy(guidBytes, 0, guid, 0, UefiConstants.SIZE_16);
|
||||
uuid = processGuid(guidBytes);
|
||||
uefiVendorRef = JsonUtils.getSpecificJsonObject(JSON_PATH, "VendorTable");
|
||||
|
||||
if(uefiVendorRef.isEmpty()) {
|
||||
System.out.println("XXXX IS EMPTY");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -114,6 +114,9 @@ public class UefiSignatureList {
|
||||
byte[] guid = new byte[UefiConstants.SIZE_16];
|
||||
lists.read(guid);
|
||||
signatureType = new UefiGuid(guid);
|
||||
// if(signatureType.getVendorTableReference().isEmpty()) {
|
||||
// System.out.println("XXXX IS EMPTY");
|
||||
// }
|
||||
|
||||
// if signatureType is invalid, don't even process any of the data
|
||||
// however, if signatureTYpe is valid, but some of the data later on is invalid, that will
|
||||
|
Loading…
Reference in New Issue
Block a user