id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4286,regex - making a pointer to an invalid dereferenced iterator.,CharlesPenny@…,John Maddock,"in function w32_transform in libs/regex/src/w32_regex_traits.cpp LCMapStringA() is called with parameter &*result.begin() In this case the std::string is created with std::string result(++bytes, '\0'), so I would have thought that *result.begin() would return result.end() as the length of the string is zero, even though a chunk of memory has been allocated. In my case, the iterator returns 0xccccccc and the subsequent LCMapStringA() call fails spectacularly in debug mode. I have _HAS_ITERATOR_DEBUGGING and _SECURE_SCL turned off. I switched to using &(result[0]) instead and that was fine.",Bugs,closed,Boost 1.43.0,regex,Boost 1.44.0,Problem,invalid,,