]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
Add some security check.
[mirror_edk2.git] / MdeModulePkg / Universal / SetupBrowserDxe / IfrParse.c
index 8a53c63a507f3f732221cb39c4782ea374809496..02684e46ca799614817287e4aa26f1987e8219ae 100644 (file)
@@ -1505,6 +1505,7 @@ ParseOpCodes (
       //\r
       // Now we know the Storage width of nested Ordered List\r
       //\r
+      ASSERT (CurrentStatement != NULL);\r
       if ((CurrentStatement->Operand == EFI_IFR_ORDERED_LIST_OP) && (CurrentStatement->BufferValue == NULL)) {\r
         Width = 1;\r
         switch (CurrentOption->Value.Type) {\r