Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 1997 10:05:54 -0800 (PST)
From:      Garrett Wollman <wollman>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/kern uipc_socket2.c
Message-ID:  <199702131805.KAA27667@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702131805.KAA27667>