summaryrefslogtreecommitdiff
path: root/Userland/Utilities/file.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-13 20:54:53 +0200
committerAndreas Kling <kling@serenityos.org>2022-01-13 22:40:25 +0100
commitcfb9f889ac92383c527b578797241469f3d5f8d1 (patch)
tree211b7b8040a8ef2a46b1da8df5a01eb86a54ff7b /Userland/Utilities/file.cpp
parent3e959618c3b3989228d6ba849f5c9e85a6b6a604 (diff)
downloadserenity-cfb9f889ac92383c527b578797241469f3d5f8d1.zip
LibELF: Accept Span instead of Pointer+Size in validate_program_headers
Diffstat (limited to 'Userland/Utilities/file.cpp')
-rw-r--r--Userland/Utilities/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/file.cpp b/Userland/Utilities/file.cpp
index 212dfc2a5e..b529434ab0 100644
--- a/Userland/Utilities/file.cpp
+++ b/Userland/Utilities/file.cpp
@@ -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();