aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-04-17 14:29:40 -0700
committerRoland McGrath <roland@hack.frob.com>2015-04-17 14:29:40 -0700
commit2bd2cad9e8a410643e80efa0b15f6f2882e1271b (patch)
treefa939126506e51673f782d01ca439e5f6080f64d /ChangeLog
parent328c44c3670ebf6c1bd790acddce65a12998cd6c (diff)
downloadglibc-2bd2cad9e8a410643e80efa0b15f6f2882e1271b.tar
glibc-2bd2cad9e8a410643e80efa0b15f6f2882e1271b.tar.gz
glibc-2bd2cad9e8a410643e80efa0b15f6f2882e1271b.tar.bz2
glibc-2bd2cad9e8a410643e80efa0b15f6f2882e1271b.zip
Avoid confusing compiler with dynamically impossible statically invalid dereference in _dl_close_worker.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 967a8c85ea..0b648bfb11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-04-17 Roland McGrath <roland@hack.frob.com>
+ * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
+ IMAP->l_prev cannot be null, and #if out the code for the contrary
+ case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
+ believe that NS (&_dl_ns[NSID]) could point outside the array.
+
* elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
check. Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
before using NSID as an index.