private-yusuke opened a new pull request, #463: URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/463
When a program calls `sgx_tprotected_fs::write`, the following error occurs during the execution: ``` thread 'main' panicked at rust-sgx-sdk/sgx_urts/src/ocall/sgxfile.rs:56:5: misaligned pointer dereference: address must be a multiple of 0x8 but is 0x7ffeb7fdbd25 ``` To avoid this panic happening while writing a value into a variable on an unaligned memory region, we can use an unsafe method `write_unaligned`. I checked this patch works well with my own program based on Automata SGX SDK which is based on the customized version of Teaclave SGX SDK with this patch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org For additional commands, e-mail: notifications-h...@teaclave.apache.org