]> git.ipfire.org Git - thirdparty/shadow.git/commit
faillog: check for overflows
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 28 Feb 2023 16:24:22 +0000 (17:24 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 29 Sep 2023 07:20:43 +0000 (09:20 +0200)
commit247a869ccdc442d39cd1d0d2a53014e3af26516c
tree3f78328ef094c7be54716d221ec2d6ae7890a4d9
parent5178f8c5afb612f6ddf5363823547e080e7f546b
faillog: check for overflows

Check for arithmetic overflows when computing offsets to avoid file
corruptions for huge UIDs.

Refactor the file lookup into a separate function.
src/faillog.c