540N/A# Patch for CR 7088072 and 7088065
540N/A--- stdcxx-4.2.1/include/string.cc 2011-07-10 13:09:53.630466602 -0700
540N/A+++ stdcxx-4.2.1/include/string.cc 2011-09-10 13:20:30.199451960 -0700
540N/A@@ -415,6 +415,12 @@
540N/A "size_type, size_type, value_type)"),
540N/A __size0 - __xlen, max_size () - __count));
540N/A
540N/A+ _RWSTD_REQUIRES (__count < (max_size () - __pos),
540N/A+ (_RWSTD_ERROR_LENGTH_ERROR,
540N/A+ _RWSTD_FUNC ("basic_string::replace (size_type, "
540N/A+ "size_type, size_type, value_type)"),
540N/A+ __count, (max_size () - __pos)));
540N/A+
540N/A // compute the resulting string size
540N/A const size_type __size1 = __size0 - __xlen + __count;
540N/A