From owner-freebsd-bugs Tue Apr 3 15:20: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A66837B718 for ; Tue, 3 Apr 2001 15:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f33MK4053063; Tue, 3 Apr 2001 15:20:04 -0700 (PDT) (envelope-from gnats) Date: Tue, 3 Apr 2001 15:20:04 -0700 (PDT) Message-Id: <200104032220.f33MK4053063@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: WATANABE Kiyoshi Subject: Re: i386/26261: silo overflow problem in sio driver Reply-To: WATANABE Kiyoshi Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/26261; it has been noted by GNATS. From: WATANABE Kiyoshi 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