Marshall Clow found this memory problem in strstream using -fsanitize=address on the test suite.