We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was playing with a TA built with teaclave SDK and got a panic when using the optional session_ctx parameter with a Vec inside of it.
It seems the mem::forget(b) call at https://github.com/apache/incubator-teaclave-trustzone-sdk/blob/master/optee-utee/macros/src/lib.rs#L393 also apply to the Err path and doing so indeed fixes the panic.
mem::forget(b)
I am not sure if my logic is air tight. It would be great if someone could confirm.
The text was updated successfully, but these errors were encountered:
Hi @a21152 , could you provide the code for reproducing the error? thanks!
Sorry, something went wrong.
I don't have the code off my hand, but you will be able to reproduce the problem with the following simple steps.
impl Drop for DiffieHellman { fn drop(&mut self) { trace_println!("Dropping DiffieHellman!"); } }
fn invoke_command
The following PR adds an example, test, and fix.
#127
No branches or pull requests
I was playing with a TA built with teaclave SDK and got a panic when using the optional session_ctx parameter with a Vec inside of it.
It seems the
mem::forget(b)
call at https://github.com/apache/incubator-teaclave-trustzone-sdk/blob/master/optee-utee/macros/src/lib.rs#L393 also apply to the Err path and doing so indeed fixes the panic.I am not sure if my logic is air tight. It would be great if someone could confirm.
The text was updated successfully, but these errors were encountered: