From owner-cvs-sys Thu Feb 13 10:05:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA27676 for cvs-sys-outgoing; Thu, 13 Feb 1997 10:05:58 -0800 (PST) Received: (from wollman@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA27667; Thu, 13 Feb 1997 10:05:54 -0800 (PST) Date: Thu, 13 Feb 1997 10:05:54 -0800 (PST) From: Garrett Wollman Message-Id: <199702131805.KAA27667@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern uipc_socket2.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 97/02/13 10:05:51 Modified: sys/kern uipc_socket2.c Log: For large values of sb_max or MCLBYTES, it was possible for the expression sb_max * MCLBYTES / (MSIZE + MCLBYTES) used in sbreserve() to overflow, causing all socket creation attempts to fail. Force the calculation to use u_quad_t's, which makes overflow less likely. Revision Changes Path 1.19 +1 -2 src/sys/kern/uipc_socket2.c