X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FLibrary%2FParserValidate.py;h=dc93cedd917e604b607b3868b960fe88a4b09931;hp=3f8ca9d609aec524cf9f2d999678230bc0ae2b90;hb=0d1f5b2b5dc3c1cf381be0a1ec8f960dc6029a93;hpb=2617a73c3628473bacea887d885bdd1e7808ccc6 diff --git a/BaseTools/Source/Python/UPT/Library/ParserValidate.py b/BaseTools/Source/Python/UPT/Library/ParserValidate.py index 3f8ca9d609..dc93cedd91 100644 --- a/BaseTools/Source/Python/UPT/Library/ParserValidate.py +++ b/BaseTools/Source/Python/UPT/Library/ParserValidate.py @@ -341,7 +341,7 @@ def IsValidCFormatGuid(Guid): # # Index may out of bound # - if type(List[Index]) != type(1) or \ + if not isinstance(List[Index], type(1)) or \ len(Value) > List[Index] or len(Value) < 3: return False