[sudo-commits] sudo changeset 15121:9cb4400fe76c
Todd C. Miller
Todd.Miller at sudo.ws
Sun Oct 22 09:56:20 MDT 2023
changeset: 15121:9cb4400fe76c in /raid/repos/sudo
tags: tip
details: https://www.sudo.ws/repos/sudo/rev/9cb4400fe76c
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Sun Oct 22 09:56:16 2023 -0600
files: plugins/sudoers/env.c plugins/sudoers/sudoers.c plugins/sudoers/sudoers.h
Log Message:
Avoid a double-free in fuzz_policy caused by the early env_init(NULL).
This adds an env_free() function to explicitly free both the old
and new copies of the environment. It is really only needed by
fuzz_policy, which calls the policy module multiple times.
diffstat:
plugins/sudoers/env.c | 19 ++++++++++++++++++-
plugins/sudoers/sudoers.c | 2 +-
plugins/sudoers/sudoers.h | 1 +
3 files changed, 20 insertions(+), 2 deletions(-)
More information about the sudo-commits
mailing list