aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_shells
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-11-11 20:42:56 +0100
committerDmitry V. Levin <github.dl@altlinux.org>2023-11-13 10:11:35 +0000
commit32e4039784ba32a54406688b5bb71d3069381648 (patch)
treea8fbf39631ba7fefb3f406b0bc8130779d7b8ffd /modules/pam_shells
parentc8a2829b3b4c50b25c00f2b0a739cf330dad99a2 (diff)
downloadpam-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