Date: Tue, 3 Apr 2001 15:20:04 -0700 (PDT) From: WATANABE Kiyoshi <aab10490@pop16.odn.ne.jp> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/26261: silo overflow problem in sio driver Message-ID: <200104032220.f33MK4053063@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/26261; it has been noted by GNATS.
From: WATANABE Kiyoshi <aab10490@pop16.odn.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org, richw@webcom.com
Cc:
Subject: Re: i386/26261: silo overflow problem in sio driver
Date: Wed, 04 Apr 2001 00:12:32 +0900
try this patch.
--- /usr/src/sys/isa/sio.c.orig Tue Oct 10 19:08:12 2000
+++ /usr/src/sys/isa/sio.c Wed Apr 4 00:08:54 2001
@@ -2480,6 +2480,7 @@
* but a bit less for CS5-CS7 modes).
*/
cp4ticks = speed / 10 / hz * 4;
+ cp4ticks *= 10; /* to avoid buffer overflow */
for (ibufsize = 128; ibufsize < cp4ticks;)
ibufsize <<= 1;
if (ibufsize == com->ibufsize) {
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104032220.f33MK4053063>
