Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 14:34:25 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.sbin/sysinstall dispatch.c
Message-ID:  <201011211434.oALEYnqs041963@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

brucec      2010-11-21 14:34:25 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/sysinstall  dispatch.c 
  Log:
  SVN rev 215637 on 2010-11-21 14:34:25Z by brucec
  
  dispatch_add_command:
  Modify the logic so there's only one exit point instead of two.
  Only insert valid (non-NULL) values into the queue.
  
  dispatch_free_command:
  Ensure that item is not NULL before removing it from the queue and
  dereferencing the pointer.
  NULL out free'd pointers to catch any use-after-free bugs.
  
  PR:     bin/146855
  Submitted by:   gcooper
  MFC after: 3 days
  
  Revision  Changes    Path
  1.56      +23 -9     src/usr.sbin/sysinstall/dispatch.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011211434.oALEYnqs041963>