diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-12 14:45:01 +0100 |
---|---|---|
committer | Dmitry V. Levin <github.dl@altlinux.org> | 2023-11-14 18:35:57 +0000 |
commit | d686b51a7c58a3fc288030384d1de3e4bc0ebeee (patch) | |
tree | 1e93321ef14c3188a172a06535fc98ce70603f71 /modules/pam_shells | |
parent | e8bda3c78ef2df5d71f6f247dc81d8e953659803 (diff) | |
download | pam-d686b51a7c58a3fc288030384d1de3e4bc0ebeee.tar.gz pam-d686b51a7c58a3fc288030384d1de3e4bc0ebeee.tar.bz2 pam-d686b51a7c58a3fc288030384d1de3e4bc0ebeee.zip |
libpam: avoid infinite recursion with includes
When there's a loop of configuration files consisting solely of includes
the recursion depth level is never incremented and thus no upper limit is
enforced. This leads to a crash caused by a stack overflow.
This patch updates the logic to track both the number of includes as well
as the number of substacks we are on; ultimately adding a new parameter
to track this information.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'modules/pam_shells')
0 files changed, 0 insertions, 0 deletions