1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

LibELF: Accept Span instead of Pointer+Size in validate_program_headers

This commit is contained in:
Idan Horowitz 2022-01-13 20:54:53 +02:00 committed by Andreas Kling
parent 3e959618c3
commit cfb9f889ac
8 changed files with 17 additions and 17 deletions

View file

@ -299,7 +299,7 @@ int main(int argc, char** argv)
}
StringBuilder interpreter_path_builder;
auto result_or_error = ELF::validate_program_headers(*(const ElfW(Ehdr)*)elf_image_data.data(), elf_image_data.size(), (const u8*)elf_image_data.data(), elf_image_data.size(), &interpreter_path_builder);
auto result_or_error = ELF::validate_program_headers(*(const ElfW(Ehdr)*)elf_image_data.data(), elf_image_data.size(), elf_image_data, &interpreter_path_builder);
if (result_or_error.is_error() || !result_or_error.value()) {
warnln("Invalid ELF headers");
return -1;