svn commit: r279930 - stable/10/sys/sys

Simon J. Gerraty sjg at FreeBSD.org
Thu Mar 12 17:07:46 UTC 2015


Author: sjg
Date: Thu Mar 12 17:07:45 2015
New Revision: 279930
URL: https://svnweb.freebsd.org/changeset/base/279930

Log:
  MFC r278729
  
  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:
  stable/10/sys/sys/sockbuf.h

Modified: stable/10/sys/sys/sockbuf.h
==============================================================================
--- stable/10/sys/sys/sockbuf.h	Thu Mar 12 17:07:24 2015	(r279929)
+++ stable/10/sys/sys/sockbuf.h	Thu Mar 12 17:07:45 2015	(r279930)
@@ -175,8 +175,7 @@ static __inline
 long
 sbspace(struct sockbuf *sb)
 {
-	long bleft;
-	long mleft;
+	int bleft, mleft;		/* size should match sockbuf fields */
 
 	if (sb->sb_flags & SB_STOP)
 		return(0);


More information about the svn-src-all mailing list