Date: Thu, 12 Mar 2015 17:07:46 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r279930 - stable/10/sys/sys Message-ID: <201503121707.t2CH7kQQ005370@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503121707.t2CH7kQQ005370>