mirror of git://git.musl-libc.org/musl
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.
This commit is contained in:
parent
38f44d6923
commit
7443dd271c
|
@ -313,7 +313,7 @@ static void *map_library(int fd, struct dso *dso)
|
||||||
Phdr *ph, *ph0;
|
Phdr *ph, *ph0;
|
||||||
unsigned prot;
|
unsigned prot;
|
||||||
unsigned char *map, *base;
|
unsigned char *map, *base;
|
||||||
size_t dyn;
|
size_t dyn=0;
|
||||||
size_t tls_image=0;
|
size_t tls_image=0;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue