mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:27:46 +00:00
LibELF: Return false instead of assert on unrecognized program header
This commit is contained in:
parent
c199b0e1aa
commit
f809231718
1 changed files with 2 additions and 3 deletions
|
@ -407,9 +407,8 @@ bool ELFImage::validate_program_headers(const Elf32_Ehdr& elf_header, size_t fil
|
|||
break;
|
||||
default:
|
||||
// Not handling other program header types in other code so... let's not surprise them
|
||||
dbgprintf("Found program header (%d) of unrecognized type %d!\n", header_index, program_header.p_type);
|
||||
ASSERT_NOT_REACHED();
|
||||
break;
|
||||
dbgprintf("Found program header (%d) of unrecognized type %x!\n", header_index, program_header.p_type);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue