mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 23:48:19 +00:00
[Pal/Linux-SGX] Sanity check the boundary between exec and libpal
This commit is contained in:
committed by
Dmitrii Kuvaiskii
parent
7a12bce7c9
commit
046673728a
@@ -407,7 +407,7 @@ int initialize_enclave (struct pal_enclave * enclave)
|
||||
enclave_entry_addr += pal_area->addr;
|
||||
|
||||
if (exec_area) {
|
||||
if (exec_area->addr + exec_area->size > pal_area->addr) {
|
||||
if (exec_area->addr + exec_area->size > pal_area->addr - MEMORY_GAP) {
|
||||
SGX_DBG(DBG_E, "Application binary overlaps with Pal binary\n");
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user