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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to