[sudo-commits] sudo changeset 9295:a11206a31f28
Todd C. Miller
Todd.Miller at courtesan.com
Tue Feb 4 06:25:51 MST 2014
changeset: 9295:a11206a31f28 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/a11206a31f28
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
diffstat:
src/preserve_fds.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
More information about the sudo-commits
mailing list