mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibELF: Move validation methods to their own file
These validate_elf_* methods really had no business being static methods of ELF::Image. Now that the ELF namespace exists, it makes sense to just move them to be free functions in the namespace.
This commit is contained in:
parent
21b5909dc6
commit
61acca223f
Notes:
sideshowbarker
2024-07-19 07:42:04 +09:00
Author: https://github.com/ADKaster
Commit: 61acca223f
Pull-request: https://github.com/SerenityOS/serenity/pull/1750
7 changed files with 234 additions and 163 deletions
|
@ -203,9 +203,6 @@ public:
|
|||
|
||||
VirtualAddress entry() const { return VirtualAddress(header().e_entry); }
|
||||
|
||||
static bool validate_elf_header(const Elf32_Ehdr& elf_header, size_t file_size);
|
||||
static bool validate_program_headers(const Elf32_Ehdr& elf_header, size_t file_size, u8* buffer, size_t buffer_size, String& interpreter_path);
|
||||
|
||||
private:
|
||||
bool parse_header();
|
||||
const char* raw_data(unsigned offset) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue