Changeset 108794 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.cpp
- Timestamp:
- Mar 31, 2025 11:31:09 AM (2 weeks ago)
- svn:sync-xref-src-repo-rev:
- 168237
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-164365 /vendor/edk2/current 103735-103757,103769-103776,129194-168232
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.cpp
r105670 r108794 18 18 #include <Library/BaseLib.h> 19 19 #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 20 31 21 32 /// … … 48 59 if (gUnitTestExpectAssertFailureJumpBuffer != NULL) { 49 60 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 50 72 LongJump (gUnitTestExpectAssertFailureJumpBuffer, 1); 51 73 } else {
Note:
See TracChangeset
for help on using the changeset viewer.