streambuf.tcc (__copy_streambufs): verify __sbin->gptr() + __bufsize < __sbin->egptr...
authorJonathan Lennox <lennox@cs.columbia.edu>
Mon, 18 Nov 2002 22:42:35 +0000 (22:42 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 18 Nov 2002 22:42:35 +0000 (22:42 +0000)
commit5bdb1440a1e11b17ed56abdf15fb302064345565
treeedf898092def4d7c35d3378fd2bf0d5592a37073
parent8c9aa0cba995b8db154e154161a9d1c8fc9753ee
streambuf.tcc (__copy_streambufs): verify __sbin->gptr() + __bufsize < __sbin->egptr() before using.

2002-11-18  Jonathan Lennox  <lennox@cs.columbia.edu>

* include/bits/streambuf.tcc (__copy_streambufs): verify
__sbin->gptr() + __bufsize < __sbin->egptr() before using.
* testsuite/27_io/ostream_inserter_other.cc (test_buffer_4): Add.
(test05): Use test_buffer_4.  Delete unused ostringstream
variables.

From-SVN: r59234
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/streambuf.tcc
libstdc++-v3/testsuite/27_io/ostream_inserter_other.cc