doc/share/security/patches/SA-20:03/thrmisc.patch
2020-01-28 19:12:55 +00:00

11 lines
360 B
Diff

--- sys/kern/imgact_elf.c.orig
+++ sys/kern/imgact_elf.c
@@ -2211,7 +2211,7 @@
td = (struct thread *)arg;
if (sb != NULL) {
KASSERT(*sizep == sizeof(thrmisc), ("invalid size"));
- bzero(&thrmisc._pad, sizeof(thrmisc._pad));
+ bzero(&thrmisc, sizeof(thrmisc));
strcpy(thrmisc.pr_tname, td->td_name);
sbuf_bcat(sb, &thrmisc, sizeof(thrmisc));
}