commit:     acc53371016060ea87dcd3cea27552a295d56e6a
Author:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Thu Feb 12 14:56:46 2015 +0000
Commit:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Thu Feb 12 14:56:46 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=acc53371

added files/freebsd-lib-10.1-cve-2014-8611.patch

---
 .../files/freebsd-lib-10.1-cve-2014-8611.patch     | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-10.1-cve-2014-8611.patch 
b/sys-freebsd/freebsd-lib/files/freebsd-lib-10.1-cve-2014-8611.patch
new file mode 100644
index 0000000..e225042
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-10.1-cve-2014-8611.patch
@@ -0,0 +1,22 @@
+Index: lib/libc/stdio/fflush.c
+===================================================================
+--- lib/libc/stdio/fflush.c.orig
++++ lib/libc/stdio/fflush.c
+@@ -124,11 +124,13 @@
+               t = _swrite(fp, (char *)p, n);
+               if (t <= 0) {
+                       /* Reset _p and _w. */
+-                      if (p > fp->_p) /* Some was written. */
++                      if (p > fp->_p) {
++                              /* Some was written. */
+                               memmove(fp->_p, p, n);
+-                      fp->_p += n;
+-                      if ((fp->_flags & (__SLBF | __SNBF)) == 0)
+-                              fp->_w -= n;
++                              fp->_p += n;
++                              if ((fp->_flags & (__SLBF | __SNBF)) == 0)
++                                      fp->_w -= n;
++                      }
+                       fp->_flags |= __SERR;
+                       return (EOF);
+               }

Reply via email to