Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

calloc in

zhi_h_
ビギナー
1,017件の閲覧回数

Hi,I am learning SGX and doing some experiments on it.

I have a question about calloc in enclave. For example ,there is a enclave function like this:

void* FuncAlloc (unsigned long size)
{
    void* pv = calloc(size, sizeof(char));

    if (pv)

        return pv;

    return NULL;
}

I found when the parameter size is a big number,this function return NULL .

I want to know is there any size limitation on calloc in enclave? 

0 件の賞賛
1 返信
Surenthar_S_Intel
従業員
1,017件の閲覧回数
返信