- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi folk,
Today I found that I fail to malloc(1600000) in enclave (the return value is NULL). Obviously, 1600000 bytes is just about 1.5M.
void printf(const char *fmt, ...)
{
const int size = 1600000;
char* bytearray = NULL;
bytearray = (char*)malloc(size);
std::string buf = "OK!\n";
if (bytearray == NULL) buf = "Fail!\n";
ocall_print_string(buf.c_str());
}
Many thanks,
Caihua
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you tell what was the maximum heap size that you set on the config.xml file?
Regards,
Rodolfo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page