mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibELF: Accept Span instead of Pointer+Size in validate_program_headers
This commit is contained in:
parent
3e959618c3
commit
cfb9f889ac
8 changed files with 17 additions and 17 deletions
|
@ -167,7 +167,7 @@ bool Emulator::load_elf()
|
|||
}
|
||||
|
||||
StringBuilder interpreter_path_builder;
|
||||
auto result_or_error = ELF::validate_program_headers(*(Elf32_Ehdr const*)elf_image_data.data(), elf_image_data.size(), (u8 const*)elf_image_data.data(), elf_image_data.size(), &interpreter_path_builder);
|
||||
auto result_or_error = ELF::validate_program_headers(*(Elf32_Ehdr const*)elf_image_data.data(), elf_image_data.size(), elf_image_data, &interpreter_path_builder);
|
||||
if (result_or_error.is_error() || !result_or_error.value()) {
|
||||
reportln("failed to validate ELF file");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue