From 7443dd271c09e8209a9478388fcd64a633b485e7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 2 Aug 2013 09:25:12 -0400 Subject: [PATCH] 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. --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1