From owner-cvs-src-old@FreeBSD.ORG Thu Sep 2 22:27:09 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBCA81065755 for ; Thu, 2 Sep 2010 22:27:09 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AEB508FC13 for ; Thu, 2 Sep 2010 22:27:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o82MR9TF061282 for ; Thu, 2 Sep 2010 22:27:09 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o82MR9jZ061281 for cvs-src-old@freebsd.org; Thu, 2 Sep 2010 22:27:09 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Message-Id: <201009022227.o82MR9jZ061281@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to nwhitehorn@repoman.freebsd.org using -f From: Nathan Whitehorn Date: Thu, 2 Sep 2010 22:26:49 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/boot/ofw/libofw ofw_copy.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 22:27:09 -0000 nwhitehorn 2010-09-02 22:26:49 UTC FreeBSD src repository Modified files: sys/boot/ofw/libofw ofw_copy.c Log: SVN rev 212165 on 2010-09-02 22:26:49Z by nwhitehorn In the case of non-sequential mappings, ofw_mapmem() could ask Open Firmware to map a memory region with negative length, causing crashes and Undefined Behavior. Add the appropriate check to make the behavior defined. Revision Changes Path 1.17 +1 -1 src/sys/boot/ofw/libofw/ofw_copy.c