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/UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.cpp

    r105670 r108794  
    1818  #include <Library/BaseLib.h>
    1919  #include <Library/UnitTestLib.h>
     20
     21  //
     22  // If address sanitizer is enabled, then declare the function that is used to
     23  // handle custom long jump implementation.
     24  //
     25 #ifdef __SANITIZE_ADDRESS__
     26  void
     27  __asan_handle_no_return (
     28    );
     29
     30 #endif
    2031
    2132  ///
     
    4859    if (gUnitTestExpectAssertFailureJumpBuffer != NULL) {
    4960      UT_LOG_INFO ("Detected expected ASSERT: %a(%d): %a\n", FileName, LineNumber, Description);
     61
     62      //
     63      // If address sanitizer is enabled, then inform sanitizer that a no return
     64      // function is being called that will reset to a previous stack frame.
     65      // This is required to avoid false positives from the address sanitizer
     66      // due to the use of a custom long jump implementation.
     67      //
     68 #ifdef __SANITIZE_ADDRESS__
     69      __asan_handle_no_return ();
     70 #endif
     71
    5072      LongJump (gUnitTestExpectAssertFailureJumpBuffer, 1);
    5173    } else {
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