diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-15 00:01:09 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-18 09:10:08 +0000 |
commit | fe6287140bc4d37e6ef36ca1387ce1403b6dd742 (patch) | |
tree | 47a1b35902f0c881ba1b636dd5d1ad84adfd7e6b /libpam | |
parent | e07917e98ca1303c4329f3d556e2ea402720a0bb (diff) | |
download | pam-fe6287140bc4d37e6ef36ca1387ce1403b6dd742.tar.gz pam-fe6287140bc4d37e6ef36ca1387ce1403b6dd742.tar.bz2 pam-fe6287140bc4d37e6ef36ca1387ce1403b6dd742.zip |
pam_namespace: handle huge namespace.conf lines
If a lot of arguments are found in a namespace.conf file, argc might
overflow, which is an undefined behavior.
In most cases, the realloc will instantly fail due to a wrap around.
Protect properly by avoiding the calculation in the first place.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'libpam')
0 files changed, 0 insertions, 0 deletions