]> git.ipfire.org Git - thirdparty/shadow.git/commit
Don't crash on bogus keys in login.defs if PAM is enabled
authorBernhard Rosenkränzer <bero@lindev.ch>
Thu, 26 Jan 2017 15:48:48 +0000 (16:48 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sun, 29 Jan 2017 20:47:24 +0000 (14:47 -0600)
commitc33ceddc263514440dc49605fd22658eaaae38c0
treee5a7f8fc279037379b057e8c7d7cee6e121a4d60
parent6a750c7a50318a4549dd4b071d73ec56df64d778
Don't crash on bogus keys in login.defs if PAM is enabled

Without this patch, PAM enabled builds crash when encountering an
invalid key in login.defs or key overrides because of array overflows

To reproduce, simply
useradd -K Windows=broken

Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
Signed-off-by: Serge Hallyn <serge@hallyn.com>
lib/getdef.c