diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2019-10-20 08:24:42 -0600 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-20 16:24:42 +0200 |
commit | 138abb909808747f8f3f5cbb2dcb1ecf5503a6e0 (patch) | |
tree | 9a4a979bb781b60cca4ec0770cb800f7e3fcc547 /AK/Traits.h | |
parent | eb77e680ed615e9daf5b165359b4a45541b4e6f3 (diff) | |
download | serenity-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