- Timestamp:
- Aug 9, 2024 9:38:35 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/memsafer.h
r99739 r105643 76 76 * suspend-to-disk. */ 77 77 #define RTMEMSAFER_F_REQUIRE_NOT_PAGABLE RT_BIT_32(0) 78 /** Do not use the SUPLib allocator. 79 * The SUPLib allocator may be terminated earlier than IPRT, 80 * automatically rendering the allocations inaccessible. */ 81 #define RTMEMSAFER_F_NO_SUPLIB_ALLOC RT_BIT_32(1) 78 82 /** Mask of valid bits. */ 79 #define RTMEMSAFER_F_VALID_MASK UINT32_C(0x0000000 1)83 #define RTMEMSAFER_F_VALID_MASK UINT32_C(0x00000003) 80 84 /** @} */ 81 85 -
trunk/src/VBox/Runtime/r3/memsafer-r3.cpp
r100442 r105643 422 422 * falling back on the less safe one. 423 423 */ 424 rc = rtMemSaferSupR3AllocPages(pThis); 424 if (!(fFlags & RTMEMSAFER_F_NO_SUPLIB_ALLOC)) 425 rc = rtMemSaferSupR3AllocPages(pThis); 426 else 427 rc = VERR_NO_PAGE_MEMORY; 425 428 if (RT_SUCCESS(rc)) 426 429 pThis->enmAllocator = RTMEMSAFERALLOCATOR_SUPR3; -
trunk/src/libs/openssl-3.1.5/crypto/mem_sec.c
r104078 r105643 175 175 #else 176 176 RT_NOREF(line); 177 return RTMemSaferAllocZTag(num, file); 177 void *pvRet = NULL; 178 int rc = RTMemSaferAllocZExTag(&pvRet, num, RTMEMSAFER_F_NO_SUPLIB_ALLOC, file); 179 AssertRCReturn(rc, NULL); 180 return pvRet; 178 181 #endif /* VBOX */ 179 182 } … … 190 193 #else 191 194 RT_NOREF(line); 192 return RTMemSaferAllocZTag(num, file); 195 void *pvRet = NULL; 196 int rc = RTMemSaferAllocZExTag(&pvRet, num, RTMEMSAFER_F_NO_SUPLIB_ALLOC, file); 197 AssertRCReturn(rc, NULL); 198 return pvRet; 193 199 #endif 194 200 }
Note:
See TracChangeset
for help on using the changeset viewer.