From owner-cvs-all@FreeBSD.ORG Mon Sep 29 11:35:18 2003 Return-Path: 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 864C616A4B3; Mon, 29 Sep 2003 11:35:18 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 051F843FD7; Mon, 29 Sep 2003 11:35:18 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8TIZHXJ090994; Mon, 29 Sep 2003 11:35:17 -0700 (PDT) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8TIZH9V090993; Mon, 29 Sep 2003 11:35:17 -0700 (PDT) (envelope-from rwatson) Message-Id: <200309291835.h8TIZH9V090993@repoman.freebsd.org> From: Robert Watson Date: Mon, 29 Sep 2003 11:35:17 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_mac.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 29 Sep 2003 18:35:18 -0000 rwatson 2003/09/29 11:35:17 PDT FreeBSD src repository Modified files: sys/kern kern_mac.c Log: If the struct mac copied into the kernel has a negative length, return EINVAL rather than failing the following malloc due to the value being too large. Revision Changes Path 1.99 +2 -1 src/sys/kern/kern_mac.c