mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
LibELF: Fix busted validation of section header location
This commit is contained in:
parent
e85aad6acc
commit
6ec9901d1b
Notes:
sideshowbarker
2024-07-19 01:07:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6ec9901d1ba
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ bool validate_elf_header(const Elf32_Ehdr& elf_header, size_t file_size, bool ve
|
|||
return false;
|
||||
}
|
||||
|
||||
if (end_of_last_program_header < elf_header.e_shoff) {
|
||||
if (elf_header.e_shoff < end_of_last_program_header) {
|
||||
if (verbose) {
|
||||
dbgprintf("SHENANIGANS! Section header table begins at file offset %d, which is within program headers [ %d - %zu ]!\n",
|
||||
elf_header.e_shoff, elf_header.e_phoff, end_of_last_program_header);
|
||||
|
|
Loading…
Reference in a new issue