aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_shells
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-12 14:45:01 +0100
committerDmitry V. Levin <github.dl@altlinux.org>2023-11-14 18:35:57 +0000
commitd686b51a7c58a3fc288030384d1de3e4bc0ebeee (patch)
tree1e93321ef14c3188a172a06535fc98ce70603f71 /modules/pam_shells
parente8bda3c78ef2df5d71f6f247dc81d8e953659803 (diff)
downloadpam-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