diff options
author | Bram <bug_rh@spam.wizbit.be> | 2013-04-18 16:50:49 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-25 15:12:10 +1000 |
commit | 9317ea653afc26402387cac67042f9890af6add2 (patch) | |
tree | baff3493a2fc6472db20b8cd5fad7c2612e81b01 /elf | |
parent | bea58013607c6507108bc73744a0bf63d735f259 (diff) | |
download | glibc-9317ea653afc26402387cac67042f9890af6add2.tar.gz glibc-9317ea653afc26402387cac67042f9890af6add2.tar.xz glibc-9317ea653afc26402387cac67042f9890af6add2.zip |
Fix segmentation fault when LD_LIBRARY_PATH contains only non-existings paths
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 73174aa424..41b91fcc86 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1889,9 +1889,9 @@ open_path (const char *name, size_t namelen, int mode, if (sps->malloced) free (sps->dirs); - /* rtld_search_dirs is attribute_relro, therefore avoid writing - into it. */ - if (sps != &rtld_search_dirs) + /* rtld_search_dirs and env_path_list are attribute_relro, therefore + avoid writing into it. */ + if (sps != &rtld_search_dirs && sps != &env_path_list) sps->dirs = (void *) -1; } |