]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c
pointer verification (not NULL) and buffer overrun fixes.
[mirror_edk2.git] / ShellPkg / Library / UefiShellLevel2CommandsLib / Vol.c
index e9cd0d098244aff95dd0b63096a1ca2f26884068..53b7770dfe12073e9a2d05e1e5ac3f0d2ce43179 100644 (file)
@@ -97,6 +97,8 @@ HandleVol(
       SysInfo);\r
   }\r
 \r
+  ASSERT(SysInfo != NULL);\r
+\r
   if (Delete) {\r
     StrCpy ((CHAR16 *) SysInfo->VolumeLabel, L"");\r
     SysInfo->Size = SIZE_OF_EFI_FILE_SYSTEM_INFO + StrSize(SysInfo->VolumeLabel);\r