svn commit: r278729 - head/sys/sys
Simon J. Gerraty
sjg at FreeBSD.org
Fri Feb 13 23:19:36 UTC 2015
Author: sjg
Date: Fri Feb 13 23:19:35 2015
New Revision: 278729
URL: https://svnweb.freebsd.org/changeset/base/278729
Log:
sbspace: size of bleft, mleft must match sockbuf fields to avoid
overflow on amd64
Submitted by: anshukla at juniper.net
Obtained from: Juniper Networks
Modified:
head/sys/sys/sockbuf.h
Modified: head/sys/sys/sockbuf.h
==============================================================================
--- head/sys/sys/sockbuf.h Fri Feb 13 22:55:25 2015 (r278728)
+++ head/sys/sys/sockbuf.h Fri Feb 13 23:19:35 2015 (r278729)
@@ -212,7 +212,7 @@ sbused(struct sockbuf *sb)
static inline long
sbspace(struct sockbuf *sb)
{
- long bleft, mleft;
+ int bleft, mleft; /* size should match sockbuf fields */
#if 0
SOCKBUF_LOCK_ASSERT(sb);
More information about the svn-src-head
mailing list