summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-02 09:25:12 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-02 09:25:12 -0400
commit7443dd271c09e8209a9478388fcd64a633b485e7 (patch)
tree3a2601286557d6630a83f8db471bde1e4b0b4d52 /src/ldso/dynlink.c
parent38f44d692310dd669ad9ee13a2993c91e81d2721 (diff)
downloadmusl-7443dd271c09e8209a9478388fcd64a633b485e7.tar.gz
musl-7443dd271c09e8209a9478388fcd64a633b485e7.tar.bz2
musl-7443dd271c09e8209a9478388fcd64a633b485e7.tar.xz
musl-7443dd271c09e8209a9478388fcd64a633b485e7.zip
fix uninitialized dyn variable in map_library
this can only happen for invalid library files, but they were not detected reliably because the variable was uninitialized.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 2f399a57..63a25548 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -313,7 +313,7 @@ static void *map_library(int fd, struct dso *dso)
Phdr *ph, *ph0;
unsigned prot;
unsigned char *map, *base;
- size_t dyn;
+ size_t dyn=0;
size_t tls_image=0;
size_t i;