Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102626857
D32474.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
766 B
Referenced Files
None
Subscribers
None
D32474.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D32474: crt_malloc: Be more persistent when handling mmap() failure
Attached
Detach File
Event Timeline
Log In to Comment