diff -Naur boost_1_50_0_beta1/libs/regex/src/regex_raw_buffer.cpp boost_1_50_0_beta1_regexpatch/libs/regex/src/regex_raw_buffer.cpp --- boost_1_50_0_beta1/libs/regex/src/regex_raw_buffer.cpp 2005-01-21 22:58:42.000000000 +0530 +++ boost_1_50_0_beta1_regexpatch/libs/regex/src/regex_raw_buffer.cpp 2012-06-27 12:22:26.000000000 +0530 @@ -45,6 +45,7 @@ // allocate and copy data: register pointer ptr = static_cast(::operator new(newsize)); BOOST_REGEX_NOEH_ASSERT(ptr) + BOOST_REGEX_NOEH_ASSERT(start || !datasize) std::memcpy(ptr, start, datasize); // get rid of old buffer: