1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +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

@ -68,7 +68,7 @@ static Optional<String> elf_details(String description, const String& path)
return {};
StringBuilder interpreter_path_builder;
auto result_or_error = ELF::validate_program_headers(*(const ElfW(Ehdr)*)elf_data.data(), elf_data.size(), (const u8*)elf_data.data(), elf_data.size(), &interpreter_path_builder);
auto result_or_error = ELF::validate_program_headers(*(const ElfW(Ehdr)*)elf_data.data(), elf_data.size(), elf_data, &interpreter_path_builder);
if (result_or_error.is_error() || !result_or_error.value())
return {};
auto interpreter_path = interpreter_path_builder.string_view();