Closed GoogleCodeExporter closed 8 years ago
This line: m_buffer[m_pos] = '\0'; segfaults when the m_buffer had a zero length. # ostream_wrapper.h const char *str() const { if(m_pStream) { return 0; } else { if(m_buffer.size() <= m_pos){ m_buffer.resize(m_pos+1); <<<<<< } m_buffer[m_pos] = '\0'; return &m_buffer[0]; } }
Original issue reported on code.google.com by dgalli...@gmail.com on 20 Mar 2014 at 6:21
dgalli...@gmail.com
Original comment by jbe...@gmail.com on 20 Mar 2014 at 10:08
jbe...@gmail.com
Fixed, r78d442a31d59.
Original comment by jbe...@gmail.com on 23 Mar 2014 at 12:28
Original issue reported on code.google.com by
dgalli...@gmail.com
on 20 Mar 2014 at 6:21