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/NetworkPkg/HttpDxe/HttpImpl.c

    r105670 r108794  
    22  Implementation of EFI_HTTP_PROTOCOL protocol interfaces.
    33
    4   Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
    55  (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>
    66  Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
     
    342342    Url    = HttpInstance->Url;
    343343    UrlLen = StrLen (Request->Url) + 1;
    344     if (UrlLen > HTTP_URL_BUFFER_LEN) {
     344    if (UrlLen > HttpInstance->UrlLen) {
    345345      Url = AllocateZeroPool (UrlLen);
    346346      if (Url == NULL) {
     
    348348      }
    349349
    350       FreePool (HttpInstance->Url);
    351       HttpInstance->Url = Url;
     350      if (HttpInstance->Url != NULL) {
     351        FreePool (HttpInstance->Url);
     352      }
     353
     354      HttpInstance->Url    = Url;
     355      HttpInstance->UrlLen = UrlLen;
    352356    }
    353357
     
    11051109    //
    11061110    StatusCodeStr = HttpHeaders + AsciiStrLen (HTTP_VERSION_STR) + 1;
    1107     if (StatusCodeStr == NULL) {
    1108       Status = EFI_NOT_READY;
    1109       goto Error;
    1110     }
    11111111
    11121112    StatusCode = AsciiStrDecimalToUintn (StatusCodeStr);
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