mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 03:02:27 -05:00
7d667b9f69
While profiling I realized that this member is unused, so the StringBuilder and String allocation are completely un-necessary.
18 lines
519 B
C++
18 lines
519 B
C++
/*
|
|
* Copyright (c) 2020, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/StringBuilder.h>
|
|
#include <LibC/elf.h>
|
|
#include <limits.h>
|
|
|
|
namespace ELF {
|
|
|
|
bool validate_elf_header(ElfW(Ehdr) const& elf_header, size_t file_size, bool verbose = true);
|
|
ErrorOr<bool> validate_program_headers(ElfW(Ehdr) const& elf_header, size_t file_size, ReadonlyBytes buffer, StringBuilder* interpreter_path_builder = nullptr, bool verbose = true);
|
|
|
|
} // end namespace ELF
|