From: Rich Felker Date: Fri, 2 Aug 2013 13:25:12 +0000 (-0400) Subject: fix uninitialized dyn variable in map_library X-Git-Tag: v0.9.13~104 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7443dd271c09e8209a9478388fcd64a633b485e7;p=oweals%2Fmusl.git 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. --- 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;