Changeset 86403 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Oct 1, 2020 8:36:46 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140699
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp
r82968 r86403 141 141 { 142 142 /* Note! gcc does funny rounding up of alloca(). */ 143 # ifndef VBOX_WITH_GCC_SANITIZER 143 144 void *pv2 = alloca((i % 63) | 1); 144 145 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 145 150 RTTESTI_CHECK_MSG(cb2 >= 16 && cb2 <= 128, ("cb2=%zu pv2=%p pvPrev=%p iAlloca=%d\n", cb2, pv2, pvPrev, iItr)); 146 151 memset(pv2, 0xff, cb2);
Note:
See TracChangeset
for help on using the changeset viewer.