Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2020 22:48:27 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365370 - head/libexec/rtld-elf
Message-ID:  <202009052248.085MmRPd060988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009052248.085MmRPd060988>