hi @longtomjr ! we are aware of this UB since the first day we started this 
project. so by design, we do not allow any cross FFI-boundary unwinding. and we 
support Rust `catch_unwind` to handle exceptions within the Rust space.

https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/samplecode/unit-test/enclave/src/test_exception.rs#L65

Intel SGX SDK never throw exceptions outside, so we're good and we don't catch 
Intel SGX SDK's C++ exceptions.

I'm not clear if you are confusing between "the panic generated by CPU", and 
"panic generated by unwrap". please elaborate.

-- 
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/341#issuecomment-849096081

Reply via email to