mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Put back a test for binaries with no PT_LOAD entries I over-jealosly
removed in r1.69. Apploved by: re (rwatson)
This commit is contained in:
parent
8fea899f6b
commit
999d9d2bd4
1 changed files with 4 additions and 0 deletions
|
|
@ -712,6 +712,10 @@ digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry, const char *path)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (nsegs < 1) {
|
||||
_rtld_error("%s: too few PT_LOAD segments", path);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
obj->entry = entry;
|
||||
return obj;
|
||||
|
|
|
|||
Loading…
Reference in a new issue