svn commit: r365370 - head/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Sat Sep 5 22:48:28 UTC 2020
Author: kib
Date: Sat Sep 5 22:48:27 2020
New Revision: 365370
URL: https://svnweb.freebsd.org/changeset/base/365370
Log:
Undo 'fix off by one' part of r365360.
Noted by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 6 days
Modified:
head/libexec/rtld-elf/map_object.c
Modified: head/libexec/rtld-elf/map_object.c
==============================================================================
--- head/libexec/rtld-elf/map_object.c Sat Sep 5 22:44:38 2020 (r365369)
+++ head/libexec/rtld-elf/map_object.c Sat Sep 5 22:48:27 2020 (r365370)
@@ -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);
}
More information about the svn-src-all
mailing list