diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-09-02 20:43:08 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-09-02 20:43:08 +0000 |
| commit | 97bdc65f27dcd07f9f6eb967d31789436ff6ee01 (patch) | |
| tree | b5c8434f356f943d67fc0a51042a78e8fedc03fe /lib/libc/gen | |
| parent | 1a4531bc98da1de16bed68ecba051d6bf3a4764f (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen')
| -rw-r--r-- | lib/libc/gen/elf_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/elf_utils.c b/lib/libc/gen/elf_utils.c index 0d32c18ed34c3..fbf3bf17082c3 100644 --- a/lib/libc/gen/elf_utils.c +++ b/lib/libc/gen/elf_utils.c @@ -65,7 +65,7 @@ __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr) #endif if (phdr_info->dlpi_addr + ph->p_vaddr <= (uintptr_t)addr && - (uintptr_t)addr + sizeof(addr) < phdr_info->dlpi_addr + + (uintptr_t)addr < phdr_info->dlpi_addr + ph->p_vaddr + ph->p_memsz) break; } |
