Open Enclave  0.13.0

◆ oe_is_outside_enclave()

bool oe_is_outside_enclave ( const void *  ptr,
size_t  size 
)

Check whether the given buffer is strictly outside the enclave.

Check whether the buffer given by the ptr and size parameters is strictly outside the enclave's memory. If so, return true. If any portion of the buffer lies within the enclave's memory, return false.

Parameters
[in]ptrThe pointer to buffer.
[in]sizeThe size of buffer.
Return values
trueThe buffer is strictly outside the enclave.
falseAt least some part of the buffer is inside the enclave, or the arguments are invalid. For example, if ptr is null or size causes arithmetic operations to wrap.