void * ISL_GetReturnAddress()
void ISL_GetReturnAddress(void *Address)
This function facilitates validating that a caller's return address is inside an authorized, verified module.
If function A calls function B at address R and function B calls ISL_GetReturnAddress, ISL_GetReturnAddress returns value R. Function B can validate that address R is within a verified module which should contain function A using ISL_CheckAddressWithinModule.
This function is platform and compiler dependent. The second form may be substituted on platforms and compilers where the first form cannot be realized.
- Address (output)
If the first form cannot be realized, the value is returned in the Address argument of the second form.
Pointer to a return address if successful, or NULL if unsuccessful. No value is returned in the second form.