git: ps - Fix longstanding bug in initial populating loop

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 15 17:01:55 PST 2011


commit bff1850cbe94ff3900efb21c70f33d614f3059ef
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 15 16:58:51 2011 -0800

    ps - Fix longstanding bug in initial populating loop
    
    * Fix the populating loop to not try to load KInfo[nentries],
      overflowing the array.
    
    * Fixes a seg-fault which can occur when the allocated array is right on
      a page boundary.

Summary of changes:
 bin/ps/ps.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list