Browse Source

Merge pull request #49 from jovanbulck/memset-bugfix

Bugfix to prevent infinite hanging.
Don Porter 7 years ago
parent
commit
4d8eacdd44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Pal/src/host/Linux-SGX/db_memory.c

+ 1 - 1
Pal/src/host/Linux-SGX/db_memory.c

@@ -86,7 +86,7 @@ int _DkVirtualMemoryAlloc (void ** paddr, uint64_t size, int alloc_type, int pro
     if (!mem)
         return addr ? -PAL_ERROR_DENIED : -PAL_ERROR_NOMEM;
 
-    //memset(mem, 0, size);
+    memset(mem, 0, size);
 
     if (alloc_type & PAL_ALLOC_INTERNAL) {
         SGX_DBG(DBG_M, "pal allocates %p-%p for internal use\n", mem, mem + size);