This repository was archived by the owner on Aug 19, 2021. It is now read-only.
Commit da9a966
committed
Fixed equeue_cancel behaviour on null id
If no event allocation has been performed, an id of zero maps to
uninitialized space. Since this may reside in bss, there is a high
chance the id of zero is incorrectly matched against the uninitialized
slab, causing quick memory corruption as the "event" is unqueued.1 parent 4d63870 commit da9a966
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
344 | 348 | | |
345 | 349 | | |
346 | 350 | | |
| |||
0 commit comments