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(&quot;foo.txt&quot;);
        assert!(f.is_ok());
        let send = b&quot;Hello, World!&quot;;
        let vecs = [IoSlice::new(&amp;send[..]),
        IoSlice::new(&amp;send[..])];
        let result = f.unwrap().write_vectored(&amp;vecs);`

Using this test case will result in a segmentfault, which is caused by the &quot;**copy_nonoverlapping**&quot; parameter error in the &quot;**writev**&quot; or &quot;**pwritev64**&quot; 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 &quot;write_vectored &quot;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