Page MenuHomeFreeBSD

D48854.1786530049.diff
No OneTemporary

Size
600 B
Referenced Files
None
Subscribers
None

D48854.1786530049.diff

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

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)

Event Timeline