VirtualBox

Changeset 96580 in vbox


Ignore:
Timestamp:
Sep 2, 2022 12:22:45 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Forgot to add rtVccRangeCheckFailed when working on stack-vcc.asm and friends. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/compiler/vcc/stacksup-vcc.cpp

    r96573 r96580  
    5151# include <iprt/win/windows.h>
    5252# 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!"
    5366#endif
    5467
     
    275288
    276289
     290DECLASM(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}
    277301
    278302
Note: See TracChangeset for help on using the changeset viewer.

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