VirtualBox

Changeset 86403 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
Oct 1, 2020 8:36:46 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140699
Message:

tstVMMR0CallHost-1: sanitizer tweak. bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r82968 r86403  
    141141        {
    142142            /* Note! gcc does funny rounding up of alloca(). */
     143# ifndef VBOX_WITH_GCC_SANITIZER
    143144            void  *pv2 = alloca((i % 63) | 1);
    144145            size_t cb2 = (uintptr_t)pvPrev - (uintptr_t)pv2;
     146# else
     147            size_t cb2 = ((i % 3) + 1) * 16; /* We get what we ask for here, and it's not at RSP/ESP due to guards. */
     148            void  *pv2 = alloca(cb2);
     149# endif
    145150            RTTESTI_CHECK_MSG(cb2 >= 16 && cb2 <= 128, ("cb2=%zu pv2=%p pvPrev=%p iAlloca=%d\n", cb2, pv2, pvPrev, iItr));
    146151            memset(pv2, 0xff, cb2);
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