diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 3c963e22..59ec5b79 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -318,7 +318,7 @@ static void *map_library(int fd, struct dso *dso) size_t i; ssize_t l = read(fd, buf, sizeof buf); - if (le_phentsize * eh->e_phnum; if (phsize + sizeof *eh > l) return 0;