Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173286252
D48854.id150526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
D48854.id150526.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
@@ -337,14 +337,14 @@
struct utrace_rtld ut;
static const char rtld_utrace_sig[RTLD_UTRACE_SIG_SZ] = RTLD_UTRACE_SIG;
+ memset(&ut, 0, sizeof(ut)); /* clear holes */
memcpy(ut.sig, rtld_utrace_sig, sizeof(ut.sig));
ut.event = event;
ut.handle = handle;
ut.mapbase = mapbase;
ut.mapsize = mapsize;
ut.refcnt = refcnt;
- bzero(ut.name, sizeof(ut.name));
- if (name)
+ if (name != NULL)
strlcpy(ut.name, name, sizeof(ut.name));
utrace(&ut, sizeof(ut));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 26, 12:01 AM (2 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39621188
Default Alt Text
D48854.id150526.diff (600 B)
Attached To
Mode
D48854: rtld: clear any holes in the struct utrace_rtld passed to kernel logger
Attached
Detach File
Event Timeline
Log In to Comment