Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153669399
D50230.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
475 B
Referenced Files
None
Subscribers
None
D50230.diff
View Options
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -5472,8 +5472,8 @@
for (i = 0; i < dtv[1]; i++) {
if (dtv[i + 2] >= (uintptr_t)oldtcb &&
dtv[i + 2] < (uintptr_t)oldtcb + tls_static_space) {
- dtv[i + 2] = dtv[i + 2] - (uintptr_t)oldtcb +
- (uintptr_t)tcb;
+ dtv[i + 2] = (uintptr_t)((char *)tcb +
+ ((char *)dtv[i + 2] - (char *)oldtcb));
}
}
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 7:21 PM (12 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32040572
Default Alt Text
D50230.diff (475 B)
Attached To
Mode
D50230: rtld-elf: Use clear pointer provenance when updating DTV pointer
Attached
Detach File
Event Timeline
Log In to Comment