[Bug testsuite/67583] New: libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc:92 erroneous call to sputn

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 15 09:57:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67583

            Bug ID: 67583
           Summary: libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/c
                    har/1.cc:92 erroneous call to sputn
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

libstdc++-v3/testsuite/27_io/basic_stringbuf/seekoff/char/1.cc:92

strmsz_2 = strb_01.sputn(" ravi shankar meets carlos santana in LoHa", 90);

is erroneous, in my opinion, because it tries to transfer 90 bytes
while the string contains 43 characters, including null.



More information about the Gcc-bugs mailing list