summaryrefslogtreecommitdiff
path: root/Userland/Utilities/readelf.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/readelf.cpp
parent3e959618c3b3989228d6ba849f5c9e85a6b6a604 (diff)
downloadserenity-cfb9f889ac92383c527b578797241469f3d5f8d1.zip
LibELF: Accept Span instead of Pointer+Size in validate_program_headers
Diffstat (limited to 'Userland/Utilities/readelf.cpp')
-rw-r--r--Userland/Utilities/readelf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/readelf.cpp b/Userland/Utilities/readelf.cpp
index 473b4a216a..66a99ba958 100644
--- a/Userland/Utilities/readelf.cpp
+++ b/Userland/Utilities/readelf.cpp
@@ -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;