Commit 3f3e641
committed
zend_async_API: honor the NULL-coroutine contract in context_destroy, lock key_name
zend_async_context_destroy is documented with its siblings as resolving a
NULL coroutine to the current one but dereferenced the argument directly.
zend_async_internal_context_key_name read the process-wide key registry
without the mutex every writer takes, racing a concurrent rehash.1 parent 2ada86e commit 3f3e641
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| |||
383 | 390 | | |
384 | 391 | | |
385 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
386 | 401 | | |
387 | 402 | | |
388 | 403 | | |
| |||
0 commit comments