Page MenuHomeFreeBSD

D5588.diff
No OneTemporary

D5588.diff

Index: libprocstat.c
===================================================================
--- libprocstat.c
+++ libprocstat.c
@@ -2494,6 +2494,8 @@
}
if (error == -1)
return (NULL);
+ if (len <= SIZE_T_MAX / 2)
+ len *= 2; /* allow for rapid thread creation */
kkstp = malloc(len);
if (kkstp == NULL) {
warn("malloc(%zu)", len);
@@ -2500,7 +2502,7 @@
return (NULL);
}
if (sysctl(name, 4, kkstp, &len, NULL, 0) == -1) {
- warn("sysctl: kern.proc.pid: %d", pid);
+ warn("sysctl: kern.proc.kstack: %d", pid);
free(kkstp);
return (NULL);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 28, 11:30 PM (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39841957
Default Alt Text
D5588.diff (568 B)

Event Timeline