diff options
author | Szabolcs Nagy <nsz@port70.net> | 2016-11-01 02:44:56 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-11-07 11:59:58 -0500 |
commit | 86e8cc0fd46f5789e80a16d68ae86f7358f64705 (patch) | |
tree | e2c4576574a006c7a59c69555572254ae4c62f4b /ldso | |
parent | c8fdcfe550997243daba0814a95f42890dc60e45 (diff) | |
download | musl-86e8cc0fd46f5789e80a16d68ae86f7358f64705.tar.gz musl-86e8cc0fd46f5789e80a16d68ae86f7358f64705.tar.bz2 musl-86e8cc0fd46f5789e80a16d68ae86f7358f64705.tar.xz musl-86e8cc0fd46f5789e80a16d68ae86f7358f64705.zip |
fix accidental global static pointer in ldso
this was harmless as load_library is not called concurrently,
but it used one word of bss.
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/dynlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index e458f386..d11776dc 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -905,8 +905,9 @@ static struct dso *load_library(const char *name, struct dso *needed_by) /* Catch and block attempts to reload the implementation itself */ if (name[0]=='l' && name[1]=='i' && name[2]=='b') { - static const char *rp, reserved[] = + static const char reserved[] = "c\0pthread\0rt\0m\0dl\0util\0xnet\0"; + const char *rp; char *z = strchr(name, '.'); if (z) { size_t l = z-name; |