Date: Sat, 14 Feb 2004 16:15:44 -0800 (PST) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm vchan.c Message-ID: <200402150015.i1F0Fiu7064925@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
truckman 2004/02/14 16:15:44 PST FreeBSD src repository Modified files: (Branch: RELENG_5_2) sys/dev/sound/pcm vchan.c Log: Partial MFC of revision 1.16. Change KASSERT() in feed_vchan16() into an explicit test and call to panic() so that the buffer overflow just beyond this point is always caught, even when the code is not compiled with INVARIANTS. This will cause a deterministic panic if a particular combination of sound hardware and client software triggers the buffer overflow in the vchan code. This is better than letting the system panic in some unrelated part of the kernel because of heap corruption. Revision Changes Path 1.13.2.1 +3 -1 src/sys/dev/sound/pcm/vchan.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402150015.i1F0Fiu7064925>