@gaojunjie03 刚才那个issue里也有人提到,主线程就是不行,新创建的线程(创建时指定更大的stack size)就可以 https://github.com/apache/incubator-teaclave-sgx-sdk/issues/77#issuecomment-469200138
如果真的一直解决不了,那就用`usercheck`传递一个指针回到enclave,再传一个长度回来。然后在enclave里手工使用memcpy把那个buffer复制进来就好。记得做好指针的有效性检测(必须是enclave外的指针,使用`rsgx_raw_is_outside_enclave`)。 https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/sgx_trts/src/trts.rs#L171 -- 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/issues/435#issuecomment-729494029
