SabaEskandarian/Fidelius

The result of malloc is not checked, which risks privacy leakage.

jmp0x7c00 opened this issue · 0 comments

data_to_store may be NULL but its value is not checked:

uint8_t* data_to_store = (uint8_t*)malloc(len+1);

the content of data_to_store will be sealed, so it is sensitive:

sgx_status_t ret = sgx_seal_data(

if data_to_store is NULL, the data it stores will be leaked by memcpy:

memcpy(data_to_store, data_to_s.c_str(), len+1);