]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix problem detected by address sanitizer 2860/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 25 Jul 2016 14:12:00 +0000 (16:12 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 25 Jul 2016 14:12:00 +0000 (16:12 +0200)
include/deal.II/base/aligned_vector.h

index 7040bace72d0b7763754b843001156dfc945ef1c..cec47169f63cd37838e1c0cf6a8d4f7ca04a44b6 100644 (file)
@@ -348,6 +348,9 @@ namespace internal
     virtual void apply_to_subrange (const std::size_t begin,
                                     const std::size_t end) const
     {
+      if (end == begin)
+        return;
+
       // for classes trivial assignment can use memcpy. cast element to
       // (void*) to silence compiler warning for virtual classes (they will
       // never arrive here because they are non-trivial).

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.