DemesneGH commented on code in PR #179:
URL:
https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/179#discussion_r2046540649
##########
optee-teec/src/context.rs:
##########
@@ -57,11 +57,7 @@ impl Context {
/// ```
pub fn new() -> Result<Context> {
// define an empty TEEC_Context
- let mut raw_ctx = raw::TEEC_Context {
- fd: 0,
- reg_mem: false,
- memref_null: false,
- };
+ let mut raw_ctx = unsafe { std::mem::zeroed() };
Review Comment:
Let's have a SAFETY mark above this line, the format is:
// SAFETY:
// explaination:xxxx
let mut raw_ctx = unsafe { std::mem::zeroed() };
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]