[med-svn] [ismrmrd] 08/11: d/p: add patch fixing failing tests due to buggy ptr check

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Sep 22 07:43:22 UTC 2015


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

ghisvail-guest pushed a commit to branch master
in repository ismrmrd.

commit 8508f757b9f7ec9e9b1e23e9bc5fadb8dcf67946
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 18 15:14:44 2015 +0100

    d/p: add patch fixing failing tests due to buggy ptr check
---
 .../fixing-check-after-free-in-unit-tests.patch    | 39 ++++++++++++++++++++++
 debian/patches/series                              |  2 +-
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/debian/patches/fixing-check-after-free-in-unit-tests.patch b/debian/patches/fixing-check-after-free-in-unit-tests.patch
new file mode 100644
index 0000000..f3346cb
--- /dev/null
+++ b/debian/patches/fixing-check-after-free-in-unit-tests.patch
@@ -0,0 +1,39 @@
+From 4bbea526d1b5c1e057dd1b379dc892b2eb025c3b Mon Sep 17 00:00:00 2001
+From: Joseph Naegele <joseph.naegele at gmail.com>
+Date: Fri, 18 Sep 2015 09:02:52 -0400
+Subject: [PATCH] fixing check after free in unit tests
+
+---
+ tests/test_acquisitions.cpp | 2 --
+ tests/test_images.cpp       | 2 --
+ 2 files changed, 4 deletions(-)
+
+diff --git a/tests/test_acquisitions.cpp b/tests/test_acquisitions.cpp
+index 7cc5532..1fc37f2 100644
+--- a/tests/test_acquisitions.cpp
++++ b/tests/test_acquisitions.cpp
+@@ -59,8 +59,6 @@ BOOST_AUTO_TEST_CASE(test_acquisition_create_free)
+     // Check cleanup
+     BOOST_CHECK_EQUAL(ismrmrd_free_acquisition(NULL), ISMRMRD_RUNTIMEERROR);
+     BOOST_CHECK_EQUAL(ismrmrd_free_acquisition(cacqp), ISMRMRD_NOERROR);
+-    BOOST_CHECK(!cacqp->traj);
+-    BOOST_CHECK(!cacqp->data);
+ }
+ 
+ BOOST_AUTO_TEST_CASE(test_acquisition_copy)
+diff --git a/tests/test_images.cpp b/tests/test_images.cpp
+index 374c603..7c6a908 100644
+--- a/tests/test_images.cpp
++++ b/tests/test_images.cpp
+@@ -59,8 +59,6 @@ BOOST_AUTO_TEST_CASE(test_image_create_free)
+     // Check cleanup
+     BOOST_CHECK_EQUAL(ismrmrd_free_image(NULL), ISMRMRD_RUNTIMEERROR);
+     BOOST_CHECK_EQUAL(ismrmrd_free_image(cimgp), ISMRMRD_NOERROR);
+-    BOOST_CHECK(!cimgp->attribute_string);
+-    BOOST_CHECK(!cimgp->data);
+ }
+ 
+ BOOST_AUTO_TEST_CASE(test_image_copy)
+-- 
+2.5.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 90b8471..231952f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,2 @@
-#001-fix-segfault-in-c-demo.diff
 make-build-reproducible.patch
+fixing-check-after-free-in-unit-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ismrmrd.git



More information about the debian-med-commit mailing list