aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinis Danne <rei4dan@gmail.com>2012-03-04 00:10:39 +0200
committerReinis Danne <rei4dan@gmail.com>2012-03-04 00:10:39 +0200
commit6e85ac6190aef7fb4919df1878bfd262265d10d9 (patch)
tree79a13e4a09306c133e47e53101e368db298407a3 /sci-chemistry
parentMerge branch 'master' of git://git.overlays.gentoo.org/proj/sci; github.com:g... (diff)
downloadsci-6e85ac6190aef7fb4919df1878bfd262265d10d9.tar.gz
sci-6e85ac6190aef7fb4919df1878bfd262265d10d9.tar.bz2
sci-6e85ac6190aef7fb4919df1878bfd262265d10d9.zip
sci-chemistry/ambertools: Add another buffer overflow patch
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/ambertools/ChangeLog4
-rw-r--r--sci-chemistry/ambertools/ambertools-1.5-r3.ebuild3
-rw-r--r--sci-chemistry/ambertools/files/ambertools-1.5-overflow.patch30
3 files changed, 36 insertions, 1 deletions
diff --git a/sci-chemistry/ambertools/ChangeLog b/sci-chemistry/ambertools/ChangeLog
index 0945272d5..09fcfa633 100644
--- a/sci-chemistry/ambertools/ChangeLog
+++ b/sci-chemistry/ambertools/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ambertools/ChangeLog,v 1.2 2011/08/02 14:42:37 alexxy Exp $
+ 03 Mar 2012; Reinis Danne <rei4dan@gmail.com> ambertools-1.5-r3.ebuild,
+ +files/ambertools-1.5-overflow.patch:
+ Add another buffer overflow patch.
+
*ambertools-1.5-r3 (03 Mar 2012)
03 Mar 2012; Reinis Danne <rei4dan@gmail.com> +ambertools-1.5-r3.ebuild,
diff --git a/sci-chemistry/ambertools/ambertools-1.5-r3.ebuild b/sci-chemistry/ambertools/ambertools-1.5-r3.ebuild
index bebf36c15..44bd0599a 100644
--- a/sci-chemistry/ambertools/ambertools-1.5-r3.ebuild
+++ b/sci-chemistry/ambertools/ambertools-1.5-r3.ebuild
@@ -53,7 +53,8 @@ src_prepare() {
epatch \
"${FILESDIR}/${P}-bugfix_1-21.patch" \
"${FILESDIR}/${P}-bugfix_22-27.patch" \
- "${FILESDIR}/${P}-gentoo2.patch"
+ "${FILESDIR}/${P}-gentoo2.patch" \
+ "${FILESDIR}/${P}-overflow.patch"
cd "${S}"/AmberTools/src
rm -r \
arpack \
diff --git a/sci-chemistry/ambertools/files/ambertools-1.5-overflow.patch b/sci-chemistry/ambertools/files/ambertools-1.5-overflow.patch
new file mode 100644
index 000000000..14455f1ba
--- /dev/null
+++ b/sci-chemistry/ambertools/files/ambertools-1.5-overflow.patch
@@ -0,0 +1,30 @@
+diff -urN amber11.orig/AmberTools/src/nab/database.c amber11/AmberTools/src/nab/database.c
+--- amber11.orig/AmberTools/src/nab/database.c 2011-03-10 20:12:15.000000000 +0200
++++ amber11/AmberTools/src/nab/database.c 2012-03-03 23:59:25.225368331 +0200
+@@ -671,7 +671,7 @@
+
+ static Bool zbDBReadLine( db, sLine )
+ DATABASE db;
+-char* sLine;
++char sLine[MAXDATALINELEN];
+ {
+
+
+@@ -706,7 +706,7 @@
+
+ static Bool zbDBReadDataLine( db, sLine )
+ DATABASE db;
+-char* sLine;
++char sLine[MAXDATALINELEN];
+ {
+
+
+@@ -1135,7 +1135,7 @@
+ char* PBuffer;
+ int iBufferInc;
+ {
+-String sLine;
++String sLine[MAXDATALINELEN];
+
+
+