[Bug libstdc++/28759] stringbuf writes beyond external buffer given via pubsetbuf()

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Thu Aug 17 01:08:00 GMT 2006



------- Comment #1 from pcarlini at suse dot de  2006-08-17 01:07 -------
Fixed already for gcc4.0.0 with the below: time to update your compiler, the
3.4.x branch is old and not maintained anymore...

2004-10-06  Paolo Carlini  <pcarlini@suse.de>

        * include/std/std_sstream.h (_M_sync): When the caller is
        setbuf, don't trust _M_string.capacity() to be the size of
        the buffer area, use _M_string.size() in this case.
        * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
        * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.0.0
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28759



More information about the Gcc-bugs mailing list