Bugzilla – Bug 633
Crash running with close-from option
Last modified: 2014-02-04 10:24:00 MST
sudo-1.8.9p4 crashes with option -C , if closefrom_override enabled in sudoers: Defaults:root closefrom_override # sudo -C 9 -u user /usr/bin/command sudo: internal error, tried to ecalloc(0) sudo-1.8.8 works normally. Tested on latest Arch Linux, builds i686 and armv7h
UPD: sudo-1.8.9p3 works too.
UPD: sudo-1.8.10b1 crashes. The bug is between 1.8.9p3 and 1.8.9p4 versions.
Created attachment 395 [details] Fix for ecalloc(0) failure with -C option. I've attached a trivial fix. I need to do a bit more checking to make sure something more complicated is not needed.
It works for me, thanks!
Created attachment 396 [details] Better fix for ecalloc(0) failure with -C option. Updated fix with what I just checked in to the source tree.
It works. Is it final patch?
Yes, sudo 1.8.9p5 will be released today with that patch.
Thank you!
Fixed in sudo 1.8.9p5, available now.