You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
labyrinth-ssr
changed the title
session_ptr and p_ret_ql_config may be leaked if overwrites to
*session_ptr and *pp_quote_config may be leaked if overwrites to
Jul 28, 2023
incubator-teaclave-sgx-sdk/samplecode/localattestation/attestation/src/func.rs
Lines 144 to 145 in 3c903bd
incubator-teaclave-sgx-sdk/samplecode/dcap-pckretrieval/qpl/src/lib.rs
Lines 138 to 142 in 3c903bd
with
Box::into_raw()
, the pointee is on the heap. Multiple assignments will cause leak of the old value.Probable fix is like:
If
session_request_safe
should only be called once, adding an Atomic to guarantee assigning only once.Otherwise add the else branch:
The text was updated successfully, but these errors were encountered: