From owner-freebsd-bugs Wed Oct 18 13:40:07 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA20881 for bugs-outgoing; Wed, 18 Oct 1995 13:40:07 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA20875 ; Wed, 18 Oct 1995 13:40:04 -0700 Resent-Date: Wed, 18 Oct 1995 13:40:04 -0700 Resent-Message-Id: <199510182040.NAA20875@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, scotte@center.uscs.com 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/786: Problem with NIS and large group maps Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 786 >Category: bin >Synopsis: Problem with NIS and large group maps >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 18 13:40:02 PDT 1995 >Last-Modified: >Originator: L. Scott Emmons >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. << >Release: FreeBSD 2.0-BUILT-19950603 i386 >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: >Audit-Trail: >Unformatted: