forked from boostorg/beast
Fix ostream flush:
fix #1853, close #1859, close #1866 After calling the DynamicBuffer commit() function the buffer returned from prepare() can be invalidated but the ostream kept using it.
This commit is contained in:
1 parent
fc01de736f
commit
75da7a522e
3 files changed
+28
No files matched your search
@@ -100,6 +100,7 @@ public:
|
||||
b_.commit(
|
||||
(this->pptr() - this->pbase()) *
|
||||
sizeof(CharT));
|
||||
this->setp(nullptr, nullptr);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
@@ -169,6 +170,7 @@ public:
|
||||
b_.commit(
|
||||
(this->pptr() - this->pbase()) *
|
||||
sizeof(CharT));
|
||||
this->setp(nullptr, nullptr);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user