File boost-no_segfault_in_Regex_filter.patch of Package boost

--- boost/iostreams/filter/regex.hpp
+++ boost/iostreams/filter/regex.hpp
@@ -58,7 +58,7 @@
                 return;
             iterator first(&src[0], &src[0] + src.size(), re_, flags_);
             iterator last;
-            const Ch* suffix = 0;
+            const Ch* suffix = &src[0];
             for (; first != last; ++first) {
                 dest.insert( dest.end(), 
                              first->prefix().first,
openSUSE Build Service is sponsored by