VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c

    r99404 r108794  
    4949  OutShellFileHandle = NULL;
    5050  InBuffer           = NULL;
     51  Package            = NULL;
    5152
    5253  //
     
    8081    } else {
    8182      TempParam = ShellCommandLineGetRawValue (Package, 1);
    82       ASSERT (TempParam != NULL);
     83      if (TempParam == NULL) {
     84        ASSERT (TempParam != NULL);
     85        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"eficompress");
     86        ShellStatus = SHELL_INVALID_PARAMETER;
     87        goto Exit;
     88      }
     89
    8390      InFileName  = ShellFindFilePath (TempParam);
    8491      OutFileName = ShellCommandLineGetRawValue (Package, 2);
    85       if (InFileName == NULL) {
     92      if ((InFileName == NULL) || (OutFileName == NULL)) {
    8693        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"eficompress", TempParam);
    8794        ShellStatus = SHELL_NOT_FOUND;
     
    151158  }
    152159
     160Exit:
     161  if ((ShellStatus != SHELL_SUCCESS) && (Package != NULL)) {
     162    ShellCommandLineFreeVarList (Package);
     163  }
     164
    153165  if (InShellFileHandle != NULL) {
    154166    gEfiShellProtocol->CloseFile (InShellFileHandle);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette