Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107623117
D30479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
331 B
Referenced Files
None
Subscribers
None
D30479.diff
View Options
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -878,6 +878,8 @@
if (__predict_false(curthread->td_pflags & TDP_INKTRACE))
return;
+ if (num_items < 0)
+ return;
/* Trim array length to genio size. */
max_items = ktr_geniosize / struct_size;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 7:44 PM (19 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15842651
Default Alt Text
D30479.diff (331 B)
Attached To
Mode
D30479: ktrace: Handle negative array sizes in ktrstructarray
Attached
Detach File
Event Timeline
Log In to Comment