From owner-cvs-all@FreeBSD.ORG Fri Jul 14 17:45:35 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B15A416A4DF; Fri, 14 Jul 2006 17:45:35 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C070643D5A; Fri, 14 Jul 2006 17:45:33 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6EHjXbF018572; Fri, 14 Jul 2006 17:45:33 GMT (envelope-from maxim@repoman.freebsd.org) Received: (from maxim@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6EHjXuH018570; Fri, 14 Jul 2006 17:45:33 GMT (envelope-from maxim) Message-Id: <200607141745.k6EHjXuH018570@repoman.freebsd.org> From: Maxim Konovalov Date: Fri, 14 Jul 2006 17:45:33 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/gen getgrent.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 17:45:35 -0000 maxim 2006-07-14 17:45:33 UTC FreeBSD src repository Modified files: lib/libc/gen getgrent.c Log: o compat_group() and files_group() are more complicated than I thought in rev. 1.34. Mainly I missed the fact that the buffer is used for two purposes: 1) storing a group line from the group file; 2) __gr_parse_entry() parses the buffer and tries to put the group members to the remaining part of the buffer and can fail if there is no enough room for them. Re-arrange the buffer size checks to account the latter case. Submitted by: Kirk R Webb MFC after: 2 weeks Revision Changes Path 1.35 +6 -4 src/lib/libc/gen/getgrent.c