Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148377841
D48854.1786530049.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
D48854.1786530049.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
Wed, Aug 12, 10:20 AM (6 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29399138
Default Alt Text
D48854.1786530049.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