Improved some ELF header checks.

committer: mfx <mfx> 978099239 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-29 14:13:59 +00:00
parent 65ad79d727
commit 11ee8627b8
2 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -183,8 +183,11 @@ bool PackLinuxI386elf::canPack()
if (j >= 14)
return false;
if (phdr->PT_LOAD == phdr->p_type) {
if (phdr->p_offset!=0)
if (phdr->p_offset != 0)
{
throwCantPack("invalid Phdr p_offset; try `--force-execve'");
return false;
}
exetype = 1;
break;
}