From scotte@queasy.center.uscs.com  Wed Oct 18 13:37:48 1995
Received: from queasy.center.uscs.com (queasy.center.uscs.com [165.79.32.31])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA20793
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Oct 1995 13:37:37 -0700
Received: (from scotte@localhost) by queasy.center.uscs.com (8.6.11/8.6.9) id NAA01085; Wed, 18 Oct 1995 13:36:50 -0700
Message-Id: <199510182036.NAA01085@queasy.center.uscs.com>
Date: Wed, 18 Oct 1995 13:36:50 -0700
From: scotte@center.uscs.com
Reply-To: scotte@center.uscs.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Problem with NIS and large group maps
X-Send-Pr-Version: 3.2

>Number:         786
>Category:       bin
>Synopsis:       Problem with NIS and large group maps
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    wpaul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 18 13:40:02 PDT 1995
>Closed-Date:    Mon Oct 1 23:32:59 PDT 2001
>Last-Modified:  Mon Oct 01 23:34:48 PDT 2001
>Originator:     L. Scott Emmons
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:
__________________________________________________________________________
  L. Scott Emmons       | CableData R&D Center - El Dorado Hills, CA, USA
   (916)939-6088        |  >> Standard disclaimer applies. Views are my <<
scotte@center.uscs.com  |  >> own, not those of U.S. Computer Services. <<
>Environment:
FreeBSD 2.0.5 running as an NIS client.

	

>Description:
When the groups NIS map contains entries with very long lines the system
becomes unstable as login, cron, and many other programs get segmentation
faults attempting to read the groups file from NIS.

My guess is that a strcpy() or the like is used without checking that no
more bytes are copied than the size of the destination area.

	

>How-To-Repeat:
Create a group on an NIS server with a very, very long line. On the FreeBSD
client, add the "+" magic cookie into the "/etc/groups" file. Now try
to log into the system.

In this case, the offending groups line is about 850 bytes long.

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->wpaul 
Responsible-Changed-By: pst 
Responsible-Changed-When: Thu Feb 8 11:43:43 PST 1996 
Responsible-Changed-Why:  
YO 
(oops,,, YP) 

From: Rod Taylor <junk@zort.on.ca>
To: freebsd-gnats-submit@FreeBSD.org, scotte@center.uscs.com
Cc:  
Subject: Re: bin/786: Problem with NIS and large group maps
Date: Mon, 28 Feb 2000 22:49:09 -0500

 Hey.. is this fixed yet :)
 
 
 -- 
 Rod Taylor
 
    microsoft: where do you want to go today?
    linux:     where do you want to go tomorrow?
    BSD:       are you guys coming, or what?
 --
 

From: murray@stokely.org
To: freebsd-gnats-submit@FreeBSD.org, scotte@center.uscs.com,
	wpaul@FreeBSD.org
Cc:  
Subject: Re: bin/786: Problem with NIS and large group maps
Date: Thu, 27 Sep 2001 02:45:25 -0700

   This is one of the oldest open PRs in the database, but I think it
 can finally be closed.  I can put a 1k group entry on my Solaris 8 NIS
 server and use login just fine with FreeBSD 4.4.  Can we close this
 pr?
 
 $ ypcat group
 ...
 test::31337:murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,mur ray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin,sys,adm,daemon,uucp,murray,bin
 ...
 
       - Murray
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Mon Oct 1 23:32:59 PDT 2001 
State-Changed-Why:  
A test on a FreeBSD 4.4 client machine allows me to login just fine 
with a huge group map from my Solaris 8 NIS server.  The submitter 
agrees that this PR can be closed. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=786 
>Unformatted:
