]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/: Make line number overflows less likely
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 12 Jan 2025 18:19:39 +0000 (19:19 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 15 Jan 2025 23:46:40 +0000 (00:46 +0100)
commit4c7aa8cf3c7e7919622aa7c20760f121d95bbde9
tree3e5954eee18683aaded1ade99b80e21c25716f74
parent872325b1d3d0e89aeea9dd229ca1e0444f900bd3
src/: Make line number overflows less likely

Huge files could trigger signed integer overflows if enough lines are
within the file. Use intmax_t which is at least 64 bit to move this
event far into the future.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/chgpasswd.c
src/chpasswd.c
src/login_nopam.c
src/newusers.c
src/suauth.c