Yes, because sgx_ocalloc allocates memory on the outside stack. Therefore, the 
size of the transfer buffer between enclave and untrusted memory using ocall is 
limited by the outside stack size.

I think, when using ocall file IO in encalve, checking the buffer size is to 
solve this problem. If the size exceeds the set constant, use ocall to allocate 
memory on the outside heap, otherwise use sgx_ocalloc to allocate memory on the 
outside stack.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/77#issuecomment-594602349

Reply via email to