DragonFly BSD
DragonFly commits List (threaded) for 2010-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: userland - sysctl - Fix stack overflow


From: Samuel Greear <sjg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 6 Sep 2010 20:12:29 -0700 (PDT)

commit aa25ccfaa7de73dd1331329e34cdf8ef1f25e9c9
Author: Samuel J. Greear <sjg@thesjg.com>
Date:   Tue Sep 7 03:09:25 2010 +0000

    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.

Summary of changes:
 sbin/sysctl/sysctl.c |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aa25ccfaa7de73dd1331329e34cdf8ef1f25e9c9


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]