diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-11-11 20:42:56 +0100 |
---|---|---|
committer | Dmitry V. Levin <github.dl@altlinux.org> | 2023-11-13 10:11:35 +0000 |
commit | 32e4039784ba32a54406688b5bb71d3069381648 (patch) | |
tree | a8fbf39631ba7fefb3f406b0bc8130779d7b8ffd /modules/pam_shells | |
parent | c8a2829b3b4c50b25c00f2b0a739cf330dad99a2 (diff) | |
download | pam-32e4039784ba32a54406688b5bb71d3069381648.tar.gz pam-32e4039784ba32a54406688b5bb71d3069381648.tar.bz2 pam-32e4039784ba32a54406688b5bb71d3069381648.zip |
pam_securetty: protect against invalid input files
If fgets encounters a file with a \0 at the beginning of a line, then
strlen()-1 would turn negative. Check if line has at least one
character in it.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_shells')
0 files changed, 0 insertions, 0 deletions