Changeset 96580 in vbox
- Timestamp:
- Sep 2, 2022 12:22:45 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/compiler/vcc/stacksup-vcc.cpp
r96573 r96580 51 51 # include <iprt/win/windows.h> 52 52 # include "../../../r3/win/internal-r3-win.h" /* ugly, but need some windows API function pointers */ 53 #endif 54 55 56 /********************************************************************************************************************************* 57 * Defined Constants And Macros * 58 *********************************************************************************************************************************/ 59 /** Gets the program counter member of Windows' CONTEXT structure. */ 60 #if defined(RT_ARCH_AMD64) 61 # define MY_GET_PC_FROM_CONTEXT(a_pCtx) ((a_pCtx)->Rip) 62 #elif defined(RT_ARCH_X86) 63 # define MY_GET_PC_FROM_CONTEXT(a_pCtx) ((a_pCtx)->Eip) 64 #else 65 # error "Port Me!" 53 66 #endif 54 67 … … 275 288 276 289 290 DECLASM(void) rtVccRangeCheckFailed(PCONTEXT pCpuCtx) 291 { 292 # ifdef IPRT_NOCRT_WITHOUT_FATAL_WRITE 293 RTAssertMsg2("\n\n!!Range check failed at %p!!\n\n", MY_GET_PC_FROM_CONTEXT(pCpuCtx)); 294 # else 295 rtNoCrtFatalWriteBegin(RT_STR_TUPLE("\r\n\r\n!!Range check failed at ")); 296 rtNoCrtFatalWritePtr((void *)MY_GET_PC_FROM_CONTEXT(pCpuCtx)); 297 rtNoCrtFatalWriteEnd(RT_STR_TUPLE("!!\r\n")); 298 # endif 299 rtVccFatalSecurityErrorWithCtx(FAST_FAIL_RANGE_CHECK_FAILURE, pCpuCtx); 300 } 277 301 278 302
Note:
See TracChangeset
for help on using the changeset viewer.