Ticket #7032: regex_raw_buffer.cpp_patch

File regex_raw_buffer.cpp_patch, 608 bytes (added by g.gupta@…, 10 years ago)

Patch file for the reported Bug.

Line 
1diff -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
2--- boost_1_50_0_beta1/libs/regex/src/regex_raw_buffer.cpp 2005-01-21 22:58:42.000000000 +0530
3+++ boost_1_50_0_beta1_regexpatch/libs/regex/src/regex_raw_buffer.cpp 2012-06-27 12:22:26.000000000 +0530
4@@ -45,6 +45,7 @@
5 // allocate and copy data:
6 register pointer ptr = static_cast<pointer>(::operator new(newsize));
7 BOOST_REGEX_NOEH_ASSERT(ptr)
8+ BOOST_REGEX_NOEH_ASSERT(start || !datasize)
9 std::memcpy(ptr, start, datasize);
10
11 // get rid of old buffer: