diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-11-10 23:51:19 +0100 |
---|---|---|
committer | Dmitry V. Levin <github.dl@altlinux.org> | 2023-11-12 16:53:22 +0000 |
commit | 67e8f426ec7123eb50f3f8f907811a6f0d4e161a (patch) | |
tree | 87214ae7414a31c2572ed3d8d0c939d3ce8db588 /modules/pam_unix/pam_unix_acct.c | |
parent | 9952e5fb5cce0e9d040729edfbc296b26b66b49a (diff) | |
download | pam-67e8f426ec7123eb50f3f8f907811a6f0d4e161a.tar.gz pam-67e8f426ec7123eb50f3f8f907811a6f0d4e161a.tar.bz2 pam-67e8f426ec7123eb50f3f8f907811a6f0d4e161a.zip |
libpam: avoid endless loop on long config line
An endless loop with fgets can be triggered if exactly one free byte
is left in buffer, because fgets will fill this byte with \0 without
reading any further data from file.
This requires an invalid system configuration.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
0 files changed, 0 insertions, 0 deletions