Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163644127
D12796.id34961.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
791 B
Referenced Files
None
Subscribers
None
D12796.id34961.diff
View Options
Index: head/sys/kern/sys_process.c
===================================================================
--- head/sys/kern/sys_process.c
+++ head/sys/kern/sys_process.c
@@ -504,6 +504,7 @@
struct ptrace_lwpinfo32 *pl32)
{
+ bzero(pl32, sizeof(*pl32));
pl32->pl_lwpid = pl->pl_lwpid;
pl32->pl_event = pl->pl_event;
pl32->pl_flags = pl->pl_flags;
@@ -1323,6 +1324,7 @@
} else
#endif
pl = addr;
+ bzero(pl, sizeof(*pl));
pl->pl_lwpid = td2->td_tid;
pl->pl_event = PL_EVENT_NONE;
pl->pl_flags = 0;
@@ -1343,8 +1345,6 @@
pl->pl_siginfo = td2->td_si;
}
}
- if ((pl->pl_flags & PL_FLAG_SI) == 0)
- bzero(&pl->pl_siginfo, sizeof(pl->pl_siginfo));
if (td2->td_dbgflags & TDB_SCE)
pl->pl_flags |= PL_FLAG_SCE;
else if (td2->td_dbgflags & TDB_SCX)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 26, 3:17 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35511313
Default Alt Text
D12796.id34961.diff (791 B)
Attached To
Mode
D12796: Zero uninitialized part of struct ptrace_lwpinfo.
Attached
Detach File
Event Timeline
Log In to Comment