Changeset 93273 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jan 17, 2022 12:34:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r93251 r93273 2529 2529 uint32_t uRva; 2530 2530 uint32_t cb; 2531 } aRegions[ 16];2531 } aRegions[20]; 2532 2532 } SUPDRVNTEXCLREGIONS; 2533 2533 … … 2668 2668 && pCfg->SecurityCookie != NULL) 2669 2669 supdrvNtAddExclRegion(&ExcludeRegions, (uintptr_t)pCfg->SecurityCookie - (uintptr_t)pImage->pvImage, sizeof(void *)); 2670 2671 /* Also exclude the GuardCFCheckFunctionPointer and GuardCFDispatchFunctionPointer pointer variables. */ 2672 if ( pCfg->Size >= RT_UOFFSET_AFTER(IMAGE_LOAD_CONFIG_DIRECTORY, GuardCFCheckFunctionPointer) 2673 && pCfg->GuardCFCheckFunctionPointer != NULL) 2674 supdrvNtAddExclRegion(&ExcludeRegions, (uintptr_t)pCfg->GuardCFCheckFunctionPointer - (uintptr_t)pImage->pvImage, sizeof(void *)); 2675 if ( pCfg->Size >= RT_UOFFSET_AFTER(IMAGE_LOAD_CONFIG_DIRECTORY, GuardCFDispatchFunctionPointer) 2676 && pCfg->GuardCFDispatchFunctionPointer != NULL) 2677 supdrvNtAddExclRegion(&ExcludeRegions, (uintptr_t)pCfg->GuardCFDispatchFunctionPointer - (uintptr_t)pImage->pvImage, sizeof(void *)); 2678 2679 /* Ditto for the XFG variants: */ 2680 if ( pCfg->Size >= RT_UOFFSET_AFTER(IMAGE_LOAD_CONFIG_DIRECTORY, GuardXFGCheckFunctionPointer) 2681 && pCfg->GuardXFGCheckFunctionPointer != NULL) 2682 supdrvNtAddExclRegion(&ExcludeRegions, (uintptr_t)pCfg->GuardXFGCheckFunctionPointer - (uintptr_t)pImage->pvImage, sizeof(void *)); 2683 if ( pCfg->Size >= RT_UOFFSET_AFTER(IMAGE_LOAD_CONFIG_DIRECTORY, GuardXFGDispatchFunctionPointer) 2684 && pCfg->GuardXFGDispatchFunctionPointer != NULL) 2685 supdrvNtAddExclRegion(&ExcludeRegions, (uintptr_t)pCfg->GuardXFGDispatchFunctionPointer - (uintptr_t)pImage->pvImage, sizeof(void *)); 2686 2687 /** @todo What about GuardRFVerifyStackPointerFunctionPointer and 2688 * GuardRFFailureRoutineFunctionPointer? Ignore for now as the compiler we're 2689 * using (19.26.28805) sets them to zero from what I can tell. */ 2670 2690 2671 2691 /*
Note:
See TracChangeset
for help on using the changeset viewer.