diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-04-17 14:29:40 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-04-17 14:29:40 -0700 |
commit | 2bd2cad9e8a410643e80efa0b15f6f2882e1271b (patch) | |
tree | fa939126506e51673f782d01ca439e5f6080f64d /ChangeLog | |
parent | 328c44c3670ebf6c1bd790acddce65a12998cd6c (diff) | |
download | glibc-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-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |