Kaynağa Gözat

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.
Rich Felker 11 yıl önce
ebeveyn
işleme
7443dd271c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/ldso/dynlink.c

+ 1 - 1
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;