diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-04 22:33:19 +0100 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-04 22:42:38 +0100 |
commit | 9082c6c2754b72b2146c6e6e3011b4920a491b3f (patch) | |
tree | 0f5c9bdc8968ae07c1f7c52d0334967d82995447 /libpam_misc/misc_conv.c | |
parent | 54e411335f6ce59c5c4b2e7a4588a1ca655e1e70 (diff) | |
download | pam-9082c6c2754b72b2146c6e6e3011b4920a491b3f.tar.gz pam-9082c6c2754b72b2146c6e6e3011b4920a491b3f.tar.bz2 pam-9082c6c2754b72b2146c6e6e3011b4920a491b3f.zip |
libpam: check for INT_MAX limit in ioloop
The size arguments to pam_modutil_read and pam_modutil_write are of
type int. If a negative value is specified, fail with -1 instead of
returning 0, indicating "just" a short read or write.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'libpam_misc/misc_conv.c')
0 files changed, 0 insertions, 0 deletions