projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8fdcfe
)
fix accidental global static pointer in ldso
author
Szabolcs Nagy
<nsz@port70.net>
Tue, 1 Nov 2016 01:44:56 +0000
(
02:44
+0100)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 7 Nov 2016 16:59:58 +0000
(11:59 -0500)
this was harmless as load_library is not called concurrently,
but it used one word of bss.
ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/ldso/dynlink.c
b/ldso/dynlink.c
index e458f38673d761315914fa488cf2d83ed0e210e9..d11776dcd049e6bbdd483eb1c9912c916daf3dde 100644
(file)
--- 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;