[pkg-boost-commits] r14503 - in boost/branches/1.39.0/debian: . patches

Steven Michael Robbins smr at alioth.debian.org
Sun Sep 27 06:50:09 UTC 2009


Author: smr
Date: 2009-09-27 06:50:08 +0000 (Sun, 27 Sep 2009)
New Revision: 14503

Added:
   boost/branches/1.39.0/debian/patches/boost-test-invalid-read.patch
Modified:
   boost/branches/1.39.0/debian/changelog
   boost/branches/1.39.0/debian/patches/series
Log:
Fix invalid read error in Boost.Test.

Modified: boost/branches/1.39.0/debian/changelog
===================================================================
--- boost/branches/1.39.0/debian/changelog	2009-09-22 04:08:08 UTC (rev 14502)
+++ boost/branches/1.39.0/debian/changelog	2009-09-27 06:50:08 UTC (rev 14503)
@@ -1,3 +1,10 @@
+boost1.39 (1.39.0-6) unstable; urgency=low
+
+  * patches/boost-test-invalid-read.patch: New.  Fix invalid read error
+    detected by valgrind.  Closes: #538946.
+
+ -- Steve M. Robbins <smr at debian.org>  Sun, 27 Sep 2009 01:49:33 -0500
+
 boost1.39 (1.39.0-5) unstable; urgency=low
 
   * rules: Rule $(bjam) needs to depend on $(QUILT_STAMPFN) because

Added: boost/branches/1.39.0/debian/patches/boost-test-invalid-read.patch
===================================================================
--- boost/branches/1.39.0/debian/patches/boost-test-invalid-read.patch	                        (rev 0)
+++ boost/branches/1.39.0/debian/patches/boost-test-invalid-read.patch	2009-09-27 06:50:08 UTC (rev 14503)
@@ -0,0 +1,32 @@
+Fix for #538946
+Reported upstream as https://svn.boost.org/trac/boost/ticket/2647
+Patch taken from http://www.nabble.com/-Boost.Test--valgrind-complains-about-invalid-reads-td20500154.html
+
+
+--- boost1.39-1.39.0.orig/boost/test/impl/framework.ipp
++++ boost1.39-1.39.0/boost/test/impl/framework.ipp
+@@ -125,12 +125,8 @@
+     {
+         while( !m_test_units.empty() ) {
+             test_unit_store::value_type const& tu = *m_test_units.begin();
+-
+             // the delete will erase this element from map
+-            if( test_id_2_unit_type( tu.second->p_id ) == tut_suite )
+-                delete  (test_suite const*)tu.second;
+-            else
+-                delete  (test_case const*)tu.second;
++	    delete tu.second;
+         }
+     }
+ 
+--- boost1.39-1.39.0.orig/boost/test/unit_test_suite_impl.hpp
++++ boost1.39-1.39.0/boost/test/unit_test_suite_impl.hpp
+@@ -72,7 +72,7 @@
+     void                                increase_exp_fail( unsigned num );
+ 
+ protected:
+-    ~test_unit();
++    virtual ~test_unit();
+ 
+ private:
+     // Data members

Modified: boost/branches/1.39.0/debian/patches/series
===================================================================
--- boost/branches/1.39.0/debian/patches/series	2009-09-22 04:08:08 UTC (rev 14502)
+++ boost/branches/1.39.0/debian/patches/series	2009-09-27 06:50:08 UTC (rev 14503)
@@ -1,3 +1,4 @@
+boost-test-invalid-read.patch
 mips-asm.patch
 python-enum-same-value.patch
 python-generic-call.patch




More information about the pkg-boost-commits mailing list