From owner-cvs-all@FreeBSD.ORG Tue Oct 25 12:49:57 2005 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 152B516A41F; Tue, 25 Oct 2005 12:49:57 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C498543D4C; Tue, 25 Oct 2005 12:49:56 +0000 (GMT) (envelope-from marius@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 j9PCnuvv018666; Tue, 25 Oct 2005 12:49:56 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9PCnusA018665; Tue, 25 Oct 2005 12:49:56 GMT (envelope-from marius) Message-Id: <200510251249.j9PCnusA018665@repoman.freebsd.org> From: Marius Strobl Date: Tue, 25 Oct 2005 12:49:56 +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/sys/boot/ofw/libofw devicename.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: Tue, 25 Oct 2005 12:49:57 -0000 marius 2005-10-25 12:49:56 UTC FreeBSD src repository Modified files: sys/boot/ofw/libofw devicename.c Log: In ofw_parsedev() check the return value of malloc() and protect against a NULL pointer dereference when ofw_parsedev() is called with a NULL path argument. Tested on: powerpc (grehan), sparc64 Revision Changes Path 1.16 +5 -1 src/sys/boot/ofw/libofw/devicename.c