Race condition in `VisitQueue::pop`
Boscop opened this issue · comments
Boscop commented
If 2 (or more) threads call pop
at the same time and last > 0
, they both find that last > 0
and both decrement last
, then last
underflows, (and then it does unsafe { self.data.get_unchecked(last - 1) }
with that value):
HVM/src/runtime/data/visit_queue.rs
Lines 54 to 58 in 9a6f6ff