userland - sysctl - Fix stack overflow
authorSamuel J. Greear <sjg@thesjg.com>
Tue, 7 Sep 2010 03:09:25 +0000 (03:09 +0000)
committerSamuel J. Greear <sjg@thesjg.com>
Tue, 7 Sep 2010 03:09:25 +0000 (03:09 +0000)
commitaa25ccfaa7de73dd1331329e34cdf8ef1f25e9c9
treeb35160fb3f4b96c67fdefecaa3abca1d69602894
parent98198f3dbc558be52151644bcabaaf31bcdf952c
userland - sysctl - Fix stack overflow

* alloca(3) was being used to allocate space for a call to sysctl(3) that
  returned data. This could occasionally be on the order of 50-100MB
  (net.inet.tcp.pcblist) resulting in a segfault.
sbin/sysctl/sysctl.c