Skip to content
Commit 6f32336b authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix read-after-free in CollectionStatistics

CollectionStatistics lives in a separate thread. Returning the Statistics
structure as a reference to other threads than means that the structure
can be deleted in the CollectionStatistics thread while other threads
are still holding a reference. We now return a copy of the Statistics
struct instead, it's just four ints.

Thanks to Andreas Schneider for pointing out the issue.
parent f8b7f950
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment