Date: Mon, 26 Feb 2001 01:07:55 -0800 (PST) From: Alfred Perlstein <alfred@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_media.c Message-ID: <200102260907.f1Q97tj33559@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <dron@infosec.ru> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102260907.f1Q97tj33559>