[arrayfire] 402/408: d/p: add upstream fix for memory corruption in assign

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 211c64e2969976dc49ba03e2a1650b1917246633
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Sep 15 16:29:23 2015 +0100

    d/p: add upstream fix for memory corruption in assign
---
 debian/patches/bugfix-in-assign.patch | 25 +++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/bugfix-in-assign.patch b/debian/patches/bugfix-in-assign.patch
new file mode 100644
index 0000000..5fde9d9
--- /dev/null
+++ b/debian/patches/bugfix-in-assign.patch
@@ -0,0 +1,25 @@
+From 4698f12a7ac5209c6e25e3d97f15fe803fdf585c Mon Sep 17 00:00:00 2001
+From: Shehzan Mohammed <shehzan at arrayfire.com>
+Date: Tue, 8 Sep 2015 17:19:36 -0400
+Subject: [PATCH] BUGFIX in assign
+
+---
+ src/api/c/assign.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/api/c/assign.cpp b/src/api/c/assign.cpp
+index 3c93ca2..c990889 100644
+--- a/src/api/c/assign.cpp
++++ b/src/api/c/assign.cpp
+@@ -231,7 +231,7 @@ af_err af_assign_gen(af_array *out,
+         ARG_ASSERT(2, (ndims == 1) || (ndims == (dim_t)lInfo.ndims()));
+ 
+         if (ndims == 1 && ndims != (dim_t)lInfo.ndims()) {
+-            af_array tmp_in, tmp_out;
++            af_array tmp_in = 0, tmp_out = 0;
+             AF_CHECK(af_flat(&tmp_in, lhs));
+             AF_CHECK(af_assign_gen(&tmp_out, tmp_in, ndims, indexs, rhs_));
+             AF_CHECK(af_moddims(out, tmp_out, lInfo.ndims(), lInfo.dims().get()));
+-- 
+2.5.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 09eaf69..933baad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix-doxygen-settings.patch
 disable-privacy-breach-doc.patch
+bugfix-in-assign.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list