temp code to find out how to tell if json reference to vendor-table.json object is empty

This commit is contained in:
iadgovuser58 2024-05-10 20:26:58 -04:00 committed by chubtub
parent 4834f166f7
commit 6d15d1effa
2 changed files with 7 additions and 0 deletions

View File

@ -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");
}
}
/**

View File

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