Commit 6c5f25e
committed
Fix potential race condition on
Reading and writing in the same time to a unique_ptr is not thread safe.
So the first read in `getDirent` (not lock protected) is a potential
race condition as we can also write to it (lock protected).
This is sad but we have to always get a lock to get the direntLookup.
Fix #945m_direntLookup initialization.1 parent 98ded1f commit 6c5f25e
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
297 | 298 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
| |||
0 commit comments