[sudo-commits] sudo changeset 9301:74edc1fb146e

Todd C. Miller Todd.Miller at courtesan.com
Tue Feb 4 10:24:58 MST 2014

changeset:	9301:74edc1fb146e in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/74edc1fb146e
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Tue Feb 04 06:22:19 2014 -0700

Log Message:
	When the closefrom limit is greater than any of the preserved fds,
	the pfds list will be non-empty but lastfd will be -1 triggering
	an ecalloc(0) assertion.  Instead, test for lastfd being -1 and
	make sure we always update it, even if dup() fails.
	Also restore initial value of lowfd after we are done relocating.
	Fixes bug #633


 src/preserve_fds.c |  18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

More information about the sudo-commits mailing list