[Bug 192528] pwd_mkdb fails if /etc/shells contains duplicates
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 15 17:57:51 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192528
--- Comment #8 from commit-hook at freebsd.org ---
A commit references this bug:
Author: emaste
Date: Mon May 15 17:57:09 UTC 2017
New revision: 318304
URL: https://svnweb.freebsd.org/changeset/base/318304
Log:
getusershell: don't write past end of line buffer reading local shells
_local_initshells did not reset cp to the beginning of the line buffer
for every iteration that it called fgets(3), leading to writing past the
end of line with fairly long /etc/shells or excessively long line
lengths. Correct this by properly resetting cp.
PR: 192528
Submitted by: Kyle Evans <kevans91 at ksu.edu>
Reviewed by: cem, jilles
Differential Revision: https://reviews.freebsd.org/D10690
Changes:
head/lib/libc/gen/getusershell.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list