From owner-cvs-src@FreeBSD.ORG Tue Apr 20 07:43:26 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5D8A16A4CE; Tue, 20 Apr 2004 07:43:26 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8B8443D3F; Tue, 20 Apr 2004 07:43:26 -0700 (PDT) (envelope-from kensmith@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3KEhQGe095982; Tue, 20 Apr 2004 07:43:26 -0700 (PDT) (envelope-from kensmith@repoman.freebsd.org) Received: (from kensmith@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3KEhQxP095981; Tue, 20 Apr 2004 07:43:26 -0700 (PDT) (envelope-from kensmith) Message-Id: <200404201443.i3KEhQxP095981@repoman.freebsd.org> From: Ken Smith Date: Tue, 20 Apr 2004 07:43:26 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/lib/libc/stdlib malloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 14:43:26 -0000 kensmith 2004/04/20 07:43:26 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) lib/libc/stdlib malloc.c Log: This is a partial MFC of 1.74. From the CVS log for that: revision 1.74 date: 2003/01/30 15:00:17; author: phk; state: Exp; lines: +4 -0 Catch some cases where asking for ridiculously large allocations could result in a segfault. Instead just return NULL. Requested by: JINMEI Tatuya and so@ Reviewed by: phk (but he's not responsible if this makes 4.10 go boom :-) Approved by: re (scottl) Revision Changes Path 1.49.2.5 +2 -0 src/lib/libc/stdlib/malloc.c