public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Fangrui Song <maskray@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/google/grte/v5-2.27/master] For b/12342355, remove inappropriate assert in EXEC_ORIGIN support.
Date: Sat, 28 Aug 2021 00:40:22 +0000 (GMT)	[thread overview]
Message-ID: <20210828004022.DEF263857C7B@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=496eb9854c095800af66036938fbc052eb9efaac

commit 496eb9854c095800af66036938fbc052eb9efaac
Author: Brooks Moses <bmoses@google.com>
Date:   Fri Apr 11 13:37:15 2014 -0700

    For b/12342355, remove inappropriate assert in EXEC_ORIGIN support.

Diff:
---
 elf/rtld.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index 4491f1a6b0..79351e53ed 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2867,10 +2867,6 @@ get_directory (const char *file_path)
     dest = __mempcpy (dest, file_path, path_len);
   *dest = '\0';
 
-  /* Confirm that the constructed path is valid.  */
-  struct stat64 st;
-  assert (__xstat64 (_STAT_VER, full_dir_path, &st) == 0);
-
   return full_dir_path;
 }


                 reply	other threads:[~2021-08-28  0:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210828004022.DEF263857C7B@sourceware.org \
    --to=maskray@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).