serenity/AK/ELF
Andrew Kaster 138abb9098 ELF: Fail layout when program header hooks return nullptr (#673)
ELFLoader::layout() had a "failed" variable that was never set. This
patch checks the return value of each hook (alloc/map section and tls)
and fails the load if they return null.

I also needed to patch Process so that the alloc_section_hook and 
map_section_hook actually return nullptr when allocating a region fails.

Fixes #664 :)
2019-10-20 16:24:42 +02:00
..
ELFImage.cpp ELF: Make code a little more buildable on other platforms 2019-09-27 13:30:23 +02:00
ELFImage.h ELF: Make code a little more buildable on other platforms 2019-09-27 13:30:23 +02:00
ELFLoader.cpp ELF: Fail layout when program header hooks return nullptr (#673) 2019-10-20 16:24:42 +02:00
ELFLoader.h Kernel: Make Region single-owner instead of ref-counted 2019-09-27 14:25:42 +02:00
exec_elf.h ELF: Run clang-format on everything. 2019-06-07 17:12:30 +02:00