boostorg/iostreams

Incorrect base pointer after sync operation

atlantisjk opened this issue · 0 comments

In the else condition of indirect_streambuf::sync_impl(), pbase is not correctly set if data has been left in the out buffer during previous sync operations. I suggest to use setp(pbase() + amt, out().end()); instead.