[sudo-commits] sudo changeset 14175:7620f3dceac4
Todd C. Miller
Todd.Miller at sudo.ws
Mon Aug 29 12:51:20 MDT 2022
changeset: 14175:7620f3dceac4 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/7620f3dceac4
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Mon Aug 29 12:47:42 2022 -0600
Log Message:
Realloc the buffer used to store argv and envp as needed.
We now store the vector immediately after the string table.
It is possible for argv and its contents to be invalidated
by realloc() when reading envp so we store the pointers as
offsets until we are done allocating.
diffstat:
src/exec_ptrace.c | 363 ++++++++++++++++++++++++++++++-----------------------
1 files changed, 208 insertions(+), 155 deletions(-)
More information about the sudo-commits
mailing list