提交 7443dd27 编写于 作者: R Rich Felker

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.
上级 38f44d69
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册