d686b51...
by
Benny Baumann <email address hidden>
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.
e8bda3c...
by
"Dmitry V. Levin" <email address hidden>
ci: add --enable-debug jobs to the ci matrix
ea5722f...
by
Benny Baumann <email address hidden>
libpam: mark debug output functions as potentially unused
Marking the functions _pam_output_debug and _pam_output_debug_info as
potentially unused reduces the noise when compiling in debug mode.
The warning is produced whenever _pam_macros.h is included, but no
debug output is produced by the module. Just marking the function
as static inline, which would have a similar effect, does not work
for various reasons and instead produces new issues instead.
Thus silencing this warning by telling the compiler about our intentions
with these functions is the better approach.
a3cef68...
by
Benny Baumann <email address hidden>
libpam: mark _pam_output_debug as printf-style function
Marking _pam_output_debug as printf-style function allows the compiler to
check for potential errors at places where this function is called, like
mismatches in the argument types or insufficient number of arguments.
e5e0985...
by
Benny Baumann <email address hidden>
pam_unix: avoid integer truncation in debug output
When printing the current day and when the password was last changed,
a truncation of the value could happen due to incorrect data types used
in the format string.
320fd5f...
by
Benny Baumann <email address hidden>
pam_time: ensure correct argument type when printing debug output
While the underlying type for setting the service was correct, the
additional output neglected to include the type cast necessary when
actually printing the data. This is rectified here.