Page MenuHomeFreeBSD

D32474.diff
No OneTemporary

D32474.diff

diff --git a/libexec/rtld-elf/rtld_malloc.c b/libexec/rtld-elf/rtld_malloc.c
--- a/libexec/rtld-elf/rtld_malloc.c
+++ b/libexec/rtld-elf/rtld_malloc.c
@@ -259,7 +259,7 @@
int offset;
if (pagepool_end - pagepool_start > pagesz) {
- addr = (caddr_t)roundup2((long)pagepool_start, pagesz);
+ addr = roundup2(pagepool_start, pagesz);
if (munmap(addr, pagepool_end - addr) != 0) {
#ifdef IN_RTLD
rtld_fdprintf(STDERR_FILENO, _BASENAME_RTLD ": "
@@ -269,8 +269,8 @@
}
}
- offset = (long)pagepool_start - rounddown2((long)pagepool_start,
- pagesz);
+ offset = (uintptr_t)pagepool_start - rounddown2(
+ (uintptr_t)pagepool_start, pagesz);
pagepool_start = mmap(0, n * pagesz, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE, -1, 0);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 12:39 AM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14650022
Default Alt Text
D32474.diff (766 B)

Event Timeline