diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-08 19:54:52 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-08 18:54:52 +0000 |
commit | f19736ae30dfd68ac3f818c93e27a45655089a74 (patch) | |
tree | c9509c6c3c8e74de832ba62f7caf7556f88aa151 /modules/pam_access | |
parent | d0a4ed1cb5e28af841378369b2505282eed087a0 (diff) | |
download | pam-f19736ae30dfd68ac3f818c93e27a45655089a74.tar.gz pam-f19736ae30dfd68ac3f818c93e27a45655089a74.tar.bz2 pam-f19736ae30dfd68ac3f818c93e27a45655089a74.zip |
pam_limits: prevent overflow with very long line
The strcpy is not safe anymore because input lines can be very long.
Use strdup instead. If allocation fails, treat the error exactly
like a memory allocation issue in pam_modutil functions.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_access')
0 files changed, 0 insertions, 0 deletions