From a8a1269d8814fe54d5d25619ca138849bca29b78 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Sep 1998 17:19:00 +0000 Subject: Update. 1998-09-01 15:36 Ulrich Drepper * malloc/Makefile: Include Makeconfig before testing config-sysdirs. * malloc/mtrace.c: Add bug report address. Update email address. Add more @XXX@ to print correct address size. * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is really initialized. * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info for munmap call instead of examining phdr again. Free all malloc()ed strings and arrays. --- elf/dl-addr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'elf/dl-addr.c') diff --git a/elf/dl-addr.c b/elf/dl-addr.c index f88f749b8a..2c9a9dd84e 100644 --- a/elf/dl-addr.c +++ b/elf/dl-addr.c @@ -34,7 +34,9 @@ _dl_addr (const void *address, Dl_info *info) /* Find the highest-addressed object that ADDRESS is not below. */ match = NULL; for (l = _dl_loaded; l; l = l->l_next) - if (addr >= l->l_addr && (!match || match->l_addr < l->l_addr)) + if (l->l_addr != 0 /* Make sure we do not currently set this map up + in this moment. */ + && addr >= l->l_addr && (!match || match->l_addr < l->l_addr)) match = l; if (match) -- cgit v1.2.3