13
0

potential mem corruption at session close:

ARDOUR::Session::~Session()
ARDOUR::Route::~Route()
ARDOUR::InternalReturn::~InternalReturn()
ARDOUR::Return::~Return()
ARDOUR::Session::unmark_return_id(unsigned int)
boost::dynamic_bitset<unsigned int, std::allocator<unsigned int> >::reference::do_assign(bool)

-> Invalid write of size 4
-> 0 bytes inside a block of size 4 free'd

Thanks to The_CLA for valgrinding this.
This commit is contained in:
Robin Gareus 2016-02-24 23:36:15 +01:00
parent 8d81f121e5
commit a6af411af7

View File

@ -5501,6 +5501,7 @@ Session::unmark_aux_send_id (uint32_t id)
void
Session::unmark_return_id (uint32_t id)
{
if (_state_of_the_state & Deletion) { return; }
if (id < return_bitset.size()) {
return_bitset[id] = false;
}