Undo 'fix off by one' part of r365360.

Noted by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	6 days
This commit is contained in:
Konstantin Belousov 2020-09-05 22:48:27 +00:00
parent 500433057e
commit 12cb97fb37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365370

View file

@ -49,7 +49,7 @@ int __getosreldate(void);
static bool
phdr_in_zero_page(const Elf_Ehdr *hdr)
{
return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <
return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <=
(size_t)PAGE_SIZE);
}