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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user