Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170886749
D58558.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
448 B
Referenced Files
None
Subscribers
None
D58558.diff
View Options
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c
--- a/lib/libc/gen/tls.c
+++ b/lib/libc/gen/tls.c
@@ -435,6 +435,10 @@
for (i = 0; (unsigned) i < phnum; i++) {
if (phdr[i].p_type == PT_TLS) {
+ if (phdr[i].p_memsz < phdr[i].p_filesz) {
+ tls_msg("_init_tls: invalid PT_TLS segment.\n");
+ abort();
+ }
libc_tls_static_space = roundup2(phdr[i].p_memsz,
phdr[i].p_align);
libc_tls_init_size = phdr[i].p_filesz;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 8, 7:56 AM (9 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35823993
Default Alt Text
D58558.diff (448 B)
Attached To
Mode
D58558: libc: Reject static ELF exectables with PT_TLS segments were filesz > memsz
Attached
Detach File
Event Timeline
Log In to Comment