summaryrefslogtreecommitdiff
path: root/AK/Traits.h
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2019-10-20 08:24:42 -0600
committerAndreas Kling <awesomekling@gmail.com>2019-10-20 16:24:42 +0200
commit138abb909808747f8f3f5cbb2dcb1ecf5503a6e0 (patch)
tree9a4a979bb781b60cca4ec0770cb800f7e3fcc547 /AK/Traits.h
parenteb77e680ed615e9daf5b165359b4a45541b4e6f3 (diff)
downloadserenity-138abb909808747f8f3f5cbb2dcb1ecf5503a6e0.zip
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 :)
Diffstat (limited to 'AK/Traits.h')
0 files changed, 0 insertions, 0 deletions