mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibELF: perror on failed mmap in load_program_headers (#5159)
This commit is contained in:
parent
3f5532d43e
commit
c33d50872e
Notes:
sideshowbarker
2024-07-18 22:46:42 +09:00
Author: https://github.com/Jorropo
Commit: c33d50872e
Pull-request: https://github.com/SerenityOS/serenity/pull/5159
1 changed files with 1 additions and 0 deletions
|
@ -298,6 +298,7 @@ void DynamicLoader::load_program_headers()
|
|||
region->offset(),
|
||||
String::formatted("{}: .text", m_filename).characters());
|
||||
if (MAP_FAILED == text_segment_begin) {
|
||||
perror("mmap text / initial segment");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
ASSERT(requested_load_address == nullptr || requested_load_address == text_segment_begin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue