https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192528

--- Comment #8 from [email protected] ---
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 <[email protected]>
  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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to