Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-06-19 06:57:54 +02:00
bytevector: don't deadlock on operator<<
operator<< was a friend class that locked the ByteVector, then invoked hexdump on the bytevector, which used ByteVector::operator[]...which locked the ByteVector, resulting in a deadlock. operator<< shouldn't be a friend class anyway. Make hexdump use the normal public access methods for ByteVector. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
@@ -183,7 +183,6 @@ namespace crucible {
|
||||
|
||||
ostream&
|
||||
operator<<(ostream &os, const ByteVector &bv) {
|
||||
unique_lock<mutex> lock(bv.m_mutex);
|
||||
hexdump(os, bv);
|
||||
return os;
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren