[sudo-commits] sudo changeset 14918:d257e01240c1

Todd C. Miller Todd.Miller at sudo.ws
Mon Jul 24 11:52:19 MDT 2023


changeset:	14918:d257e01240c1 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/d257e01240c1
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Jul 24 11:07:45 2023 -0600

Log Message:
	Merge sudo_module_register_loghandler and sudo_module_set_default_loghandler.

	We now create the LogHandler class for each interpreter in
	python_plugin_init() instead of just once in sudo_module_init().
	This fixes the crash seen in Py_EndInterpreter() with Python 3.12
	and significantly reduces the number of leaked objects tracked by
	MemorySanitizer.

diffstat:

 plugins/python/python_loghandler.c    |  70 +++++++++++++----------------------
 plugins/python/python_plugin_common.c |   3 +-
 plugins/python/sudo_python_module.c   |   3 -
 plugins/python/sudo_python_module.h   |   3 -
 4 files changed, 28 insertions(+), 51 deletions(-)



More information about the sudo-commits mailing list