Page MenuHomeFreeBSD

D30479.diff
No OneTemporary

D30479.diff

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

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)

Event Timeline