cpp-channel icon indicating copy to clipboard operation
cpp-channel copied to clipboard

Possible Race Condition in push

Open fennewald opened this issue 1 year ago • 1 comments

In the push implementation, closed is checked before the mutex to the channel is locked. This means a could check that the queue is not closed, but have it be closed while it acquires the mutex, pushing to a closed channel.

fennewald avatar May 25 '23 14:05 fennewald

Thanks for taking a look! I will leave the issue open until I get to it.

andreiavrammsd avatar May 25 '23 15:05 andreiavrammsd