]> granicus.if.org Git - sudo/commit
Fix incorrect strncmp() lengths. The check for USERNAME was only
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 17:25:59 +0000 (11:25 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 17:25:59 +0000 (11:25 -0600)
commitdbd52527983857281423ae5c1123c67ca433b999
treed3afa5f3424fe1d1ce13166541fac24ae689dc6d
parent4c8988d4833f79c5179c3fb22d5e3051bb84e526
Fix incorrect strncmp() lengths.  The check for USERNAME was only
looking at the first 5 characters (copy and paste error).  The check
for SUDO_PS1 was not checking the trailing '=' character (off by
one error).  Found by PVS-Studio.
plugins/sudoers/env.c