aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/unix_chkpwd.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-12-04 22:23:57 +0100
committerTobias Stoeckmann <tobias@stoeckmann.org>2023-12-04 22:41:44 +0100
commit40d87993dfbaf098f4b266e4f373d01dbd216314 (patch)
treeca6db5b3726ee8fd6b8c5a7b5a9b1e46c60e392c /modules/pam_unix/unix_chkpwd.c
parent12e829094b0ee4f16b716285684e1a0df4541910 (diff)
downloadpam-40d87993dfbaf098f4b266e4f373d01dbd216314.tar.gz
pam-40d87993dfbaf098f4b266e4f373d01dbd216314.tar.bz2
pam-40d87993dfbaf098f4b266e4f373d01dbd216314.zip
pam_echo: handle short reads
If the file parsed by pam_echo is larger than INT_MAX, then it is possible that uninitialized memory is printed on screen. The return value of pam_modutil_read is not negative if the size argument (casted to an int) is negative. Instead 0 is returned. This can also happen with any other file if a short read is triggered. Check if file is fully parsed or not. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_unix/unix_chkpwd.c')
0 files changed, 0 insertions, 0 deletions