Demystifying the Secure Enclave Processor
LytVKz
LytVKz
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Heap Corruptions: malloc()<br />
• Runtime allocator leveraged by SEP applications<br />
▫ K&R implementation<br />
• Singly linked free list (ordered by size) with<br />
header that includes pointer and block size<br />
▫ struct Header { void * ptr, size_t size };<br />
▫ Coalesces adjacent elements on free()<br />
• Size of heap determined on initialization<br />
▫ malloc_init( malloc_base, malloc_top );<br />
▫ Non-expandable