You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Zha0Chan <no...@github.com> on 2020/07/06 08:14:27 UTC
[apache/incubator-teaclave-sgx-sdk] Repair "write_vectored "caused
segmentfault (#257)
` let f = File::create("foo.txt");
assert!(f.is_ok());
let send = b"Hello, World!";
let vecs = [IoSlice::new(&send[..]),
IoSlice::new(&send[..])];
let result = f.unwrap().write_vectored(&vecs);`
Using this test case will result in a segmentfault, which is caused by the "**copy_nonoverlapping**" parameter error in the "**writev**" or "**pwritev64**" in the SDK
You can view, comment on, or merge this pull request online at:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/257
-- Commit Summary --
* Repair "write_vectored "caused segment error
-- File Changes --
M sgx_libc/src/linux/x86_64/ocall.rs (30)
-- Patch Links --
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/257.patch
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/257.diff
--
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/pull/257
Re: [apache/incubator-teaclave-sgx-sdk] fix "write_vectored "caused
segmentfault (#257)
Posted by Yu Ding <no...@github.com>.
Merged #257 into master.
--
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/pull/257#event-3516835010
Re: [apache/incubator-teaclave-sgx-sdk] fix "write_vectored "caused
segmentfault (#257)
Posted by Yu Ding <no...@github.com>.
thanks!!
--
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/pull/257#issuecomment-654352403