> @ClawSeven Hi, I notice two issues with your PR: > > 1. your `emm` sample code cannot be built with `BUILD_STD=cargo` > 2. I merged your commits in this PR into the current `v2.0.0-preview` branch > to support the latest rust toolchain as this [fork > branch](https://gitlab.com/dexlabs/incubator-teaclave-sgx-sdk/-/tree/v2.0.0-sgx-emm?ref_type=heads), > however, I see problems with `httpreq` sample code, it will have pointer > alignment issues while doing ocall "u_getaddrinfo_ocall", the pointer address > of the argument and the return value is misaligned, which will cause panic in > the repo. It seems that your implementation has some conflicts with the > recent Rust toolchain. > Please take a look, thank you!
The second issue has an easy fix, essentially, all problems are due to the alignment checks in dereference of raw pointers. We just need to use `read_unaligned` or `write_unaligned` -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/436#issuecomment-1952851066 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave-sgx-sdk/pull/436/c1952851...@github.com>