This is an automated email from the ASF dual-hosted git repository.
dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git
The following commit(s) were added to refs/heads/master by this push:
new d57c484 Wrap next_code_point in unsafe block
new 4b64a24 Merge pull request #370 from cschramm/next_code_point
d57c484 is described below
commit d57c48480f30ff6f72100176d73834f2ea7e6a96
Author: Christopher Schramm <[email protected]>
AuthorDate: Tue Feb 1 11:00:40 2022 +0100
Wrap next_code_point in unsafe block
Fixes #368
---
sgx_tstd/src/sys_common/wtf8.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sgx_tstd/src/sys_common/wtf8.rs b/sgx_tstd/src/sys_common/wtf8.rs
index d37342a..dca7415 100644
--- a/sgx_tstd/src/sys_common/wtf8.rs
+++ b/sgx_tstd/src/sys_common/wtf8.rs
@@ -825,7 +825,9 @@ impl<'a> Iterator for Wtf8CodePoints<'a> {
#[inline]
fn next(&mut self) -> Option<CodePoint> {
- next_code_point(&mut self.bytes).map(|c| CodePoint { value: c })
+ unsafe {
+ next_code_point(&mut self.bytes).map(|c| CodePoint { value: c })
+ }
}
#[inline]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]