From owner-cvs-all Mon Feb 26 1: 8: 3 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B383A37B4EC; Mon, 26 Feb 2001 01:07:55 -0800 (PST) (envelope-from alfred@FreeBSD.org) Received: (from alfred@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1Q97tj33559; Mon, 26 Feb 2001 01:07:55 -0800 (PST) (envelope-from alfred) Message-Id: <200102260907.f1Q97tj33559@freefall.freebsd.org> From: Alfred Perlstein Date: Mon, 26 Feb 2001 01:07:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_media.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alfred 2001/02/26 01:07:55 PST Modified files: sys/net if_media.c Log: Santize a size variable passed to kernel malloc. Since we know there's always an upper bound we force that bound, otherwise users can cause a panic via malloc getting hit with a odd (huge or negative) amount of memory to allocate. Tested by: kris Pointed out by: Andrey Valyaev Revision Changes Path 1.12 +21 -11 src/sys/net/if_media.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message