[Bug 181127] [libc] [patch] set{domain,host}name doesn't permit NUL terminated strings that are MAXHOSTNAMELEN long

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 10 19:19:38 UTC 2014


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

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: ngie
Date: Fri Oct 10 19:18:53 UTC 2014
New revision: 272905
URL: https://svnweb.freebsd.org/changeset/base/272905

Log:
  FreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 in
  {get,set}{domain,host}name. Adjust the tests to not exceed that
  value when testing out the code

  Add a positive and negative test for MAXHOSTNAMELEN-1 and
  MAXHOSTNAMELEN, respectively

  PR: 181127
  In collaboration with: pho
  Sponsored by: EMC / Isilon Storage Division

Changes:
  head/contrib/netbsd-tests/lib/libc/gen/t_setdomainname.c
  head/contrib/netbsd-tests/lib/libc/gen/t_sethostname.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list