aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_motd
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-12-15 13:30:06 +0100
committerDmitry V. Levin <ldv@strace.io>2023-12-19 12:22:59 +0000
commitb4a989962b6f5eb1f5a88c02782517f00b29621d (patch)
treefa3db1eec8c5b7cf87772b5c8128b6a1e2f32aeb /modules/pam_motd
parent2a3a6462c55b344ea66cdd8bbfb621387e2568be (diff)
downloadpam-b4a989962b6f5eb1f5a88c02782517f00b29621d.tar.gz
pam-b4a989962b6f5eb1f5a88c02782517f00b29621d.tar.bz2
pam-b4a989962b6f5eb1f5a88c02782517f00b29621d.zip
libpam: reduce memory usage of _pam_mkargv
The input string "s" is duplicated into "sbuf" and tokens copied from there into target memory "our_argv". Since "our_argv" is allocated to be always large enough to keep the whole string "s" (plus pointers) in it, we can skip "sbuf" entirely. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_motd')
0 files changed, 0 insertions, 0 deletions