LibELF: perror on failed mmap in load_program_headers (#5159)

This commit is contained in:
Jorropo 2021-01-29 08:50:43 +01:00 committed by GitHub
commit c33d50872e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 22:46:42 +09:00

View file

@ -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);