Date: Mon, 15 May 2017 17:57:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192528] pwd_mkdb fails if /etc/shells contains duplicates Message-ID: <bug-192528-8-uep1ZcIFIO@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-192528-8@https.bugs.freebsd.org/bugzilla/> References: <bug-192528-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192528 --- Comment #8 from commit-hook@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@ksu.edu> Reviewed by: cem, jilles Differential Revision: https://reviews.freebsd.org/D10690 Changes: head/lib/libc/gen/getusershell.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192528-8-uep1ZcIFIO>