[sudo-commits] sudo changeset 10340:8458bcb165d8
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jan 27 15:44:36 MST 2016
changeset: 10340:8458bcb165d8 in /media/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/8458bcb165d8
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Jan 27 15:37:15 2016 -0700
Log Message:
Add support for garbage collecting info passed to the plugin before
exit to appease address sanitizer's leak detector (and valgrind's
leak checker). We can't free these sooner since the plugin may be
using the memory. For plugin API 2.0 it should be make clear that
the plugin must make a copy of the data in the arrays passed in to
the plugin's open() function. Only enabled if NO_LEAKS is defined.
diffstat:
src/sudo.c | 117 +++++++++++++++++++++++++++++++++++++++++++++++--
src/sudo_plugin_int.h | 2 +-
src/ttyname.c | 2 +-
3 files changed, 112 insertions(+), 9 deletions(-)
More information about the sudo-commits
mailing list