Skip to content

Commit

Permalink
Fix buffer check error of p_decrypted_text_length
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Ding <dingelish@gmail.com>
  • Loading branch information
dingelish committed Sep 17, 2018
1 parent 371d48e commit b38e0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/tseal/tSeal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ extern "C" sgx_status_t sgx_unseal_data(const sgx_sealed_data_t *p_sealed_data,
{
return SGX_ERROR_INVALID_PARAMETER;
}
if (!sgx_is_within_enclave(p_decrypted_text_length, sizeof(p_decrypted_text_length)))
if (!sgx_is_within_enclave(p_decrypted_text_length, sizeof(*p_decrypted_text_length)))
{
return SGX_ERROR_INVALID_PARAMETER;
}
Expand Down

0 comments on commit b38e0d8

Please sign in to comment.