Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2015 23:19:35 +0000 (UTC)
From:      "Simon J. Gerraty" <sjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278729 - head/sys/sys
Message-ID:  <201502132319.t1DNJZuP057045@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



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