summaryrefslogtreecommitdiff
path: root/packages/glibc/2.14/106-dl-open-array-bounds.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-26 23:29:58 (GMT)
committerGitHub <noreply@github.com>2017-08-26 23:29:58 (GMT)
commitf627e740ffd38a02ccb43848d875a4d36cf91d9c (patch)
tree89278e74a7b37674bb2b340f6cc040d3c288659b /packages/glibc/2.14/106-dl-open-array-bounds.patch
parent5494335c03d096b33e6d82aa2aaad2c51b5c3a37 (diff)
parenteba1a826862d875e6163315029839fd3de192c8b (diff)
Merge pull request #814 from stilor/issue-802
Issue 802
Diffstat (limited to 'packages/glibc/2.14/106-dl-open-array-bounds.patch')
-rw-r--r--packages/glibc/2.14/106-dl-open-array-bounds.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/packages/glibc/2.14/106-dl-open-array-bounds.patch b/packages/glibc/2.14/106-dl-open-array-bounds.patch
deleted file mode 100644
index bdb5c19..0000000
--- a/packages/glibc/2.14/106-dl-open-array-bounds.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-commit 328c44c3670ebf6c1bd790acddce65a12998cd6c
-Author: Roland McGrath <roland@hack.frob.com>
-Date: Fri Apr 17 12:11:58 2015 -0700
-
- Fuller check for invalid NSID in _dl_open.
-
-diff --git a/elf/dl-open.c b/elf/dl-open.c
-index 0dbe07f..2d0e082 100644
---- a/elf/dl-open.c
-+++ b/elf/dl-open.c
-@@ -619,8 +619,14 @@ no more namespaces available for dlmopen()"));
- /* Never allow loading a DSO in a namespace which is empty. Such
- direct placements is only causing problems. Also don't allow
- loading into a namespace used for auditing. */
-- else if (__builtin_expect (nsid != LM_ID_BASE && nsid != __LM_ID_CALLER, 0)
-- && (GL(dl_ns)[nsid]._ns_nloaded == 0
-+ else if ((nsid != LM_ID_BASE && nsid != __LM_ID_CALLER)
-+ && ((nsid < 0 || nsid >= GL(dl_nns))
-+ /* This prevents the [NSID] index expressions from being
-+ evaluated, so the compiler won't think that we are
-+ accessing an invalid index here in the !SHARED case where
-+ DL_NNS is 1 and so any NSID != 0 is invalid. */
-+ || DL_NNS == 1
-+ || GL(dl_ns)[nsid]._ns_nloaded == 0
- || GL(dl_ns)[nsid]._ns_loaded->l_auditing))
- _dl_signal_error (EINVAL, file, NULL,
- N_("invalid target namespace in dlmopen()"));