mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 12:17:36 +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;
|
break;
|
||||||
default:
|
default:
|
||||||
// Not handling other program header types in other code so... let's not surprise them
|
// 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);
|
dbgprintf("Found program header (%d) of unrecognized type %x!\n", header_index, program_header.p_type);
|
||||||
ASSERT_NOT_REACHED();
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue