From owner-cvs-all@FreeBSD.ORG Thu Jan 19 02:11:06 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 3C79D16A41F; Thu, 19 Jan 2006 02:11:06 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D7B43D49; Thu, 19 Jan 2006 02:11:05 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0J2B5YS017485; Thu, 19 Jan 2006 02:11:05 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0J2B5Wk017484; Thu, 19 Jan 2006 02:11:05 GMT (envelope-from jasone) Message-Id: <200601190211.k0J2B5Wk017484@repoman.freebsd.org> From: Jason Evans Date: Thu, 19 Jan 2006 02:11:05 +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/stdlib malloc.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: Thu, 19 Jan 2006 02:11:06 -0000 jasone 2006-01-19 02:11:05 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Return NULL if there is an OOM error during initialization, rather than allowing the error to be fatal. Move a label in order to make sure to properly handle errors in malloc(0). Reported by: Alastair D'Silva, Saneto Takanori Revision Changes Path 1.96 +50 -35 src/lib/libc/stdlib/malloc.c