diff options
author | Yuta SATOH <nigoro@gentoo.gr.jp> | 2015-02-12 23:56:46 +0900 |
---|---|---|
committer | Yuta SATOH <nigoro@gentoo.gr.jp> | 2015-02-12 23:56:46 +0900 |
commit | acc53371016060ea87dcd3cea27552a295d56e6a (patch) | |
tree | 47123ab3e7f1f8e6eeb93c5c705eff17f7e92453 | |
parent | Remove 9.3 and 10.0 profiles. (diff) | |
download | gentoo-bsd-acc53371016060ea87dcd3cea27552a295d56e6a.tar.gz gentoo-bsd-acc53371016060ea87dcd3cea27552a295d56e6a.tar.bz2 gentoo-bsd-acc53371016060ea87dcd3cea27552a295d56e6a.zip |
added files/freebsd-lib-10.1-cve-2014-8611.patch
-rw-r--r-- | sys-freebsd/freebsd-lib/files/freebsd-lib-10.1-cve-2014-8611.patch | 22 |
1 files changed, 22 insertions, 0 deletions
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); + } |