diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-13 23:58:15 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-14 15:07:56 +0000 |
commit | 4130bc323f9ce99a97aa4566e170725415556060 (patch) | |
tree | 96c34a47888cf480c146a48e8f4409b969a28fb4 /modules/pam_unix/support.h | |
parent | 539816e4a0a277dbb632412be91e482fff9d9d09 (diff) | |
download | pam-4130bc323f9ce99a97aa4566e170725415556060.tar.gz pam-4130bc323f9ce99a97aa4566e170725415556060.tar.bz2 pam-4130bc323f9ce99a97aa4566e170725415556060.zip |
pam_succeed_if: allow very long field values
Fields are currently written to stack buffer, even if they already
exist in heap. Just reference them in this case. If numbers have to be
stored as a string, use a stack buffer sufficiently large for the
long long conversion (64 bit).
Also adjust the "left != buf" check to allow this change. It is simply
the else-statement to previous if-else-if-block, because in every other
case left is set to buf.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_unix/support.h')
0 files changed, 0 insertions, 0 deletions