You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address review feedback: use fixtures, RST roles, and modern type syntax
- Use `any_multidict_class` fixture instead of manual `@pytest.mark.parametrize`
- Use modern type annotations (`type[]` instead of `Type[]`, `|` instead of `Union`)
- Add explanatory comments to empty except clauses (CodeQL feedback)
- Use RST roles in changelog (`:class:`, `:c:func:`) for highlighted identifiers
- Remove manual pure-python skip (fixture handles both variants)
- Use `MutableMultiMapping` for internal type hints
Fixed a memory-safety race condition resulting in segmentation faults (Use-After-Free) when iterating and modifying a ``MultiDict`` concurrently in CPython free-threaded mode (3.13t+). Read/Write accesses to the internal ``keys`` buffer are now wrapped in ``Py_BEGIN_CRITICAL_SECTION``
1
+
Fixed a memory-safety race condition resulting in segmentation faults (Use-After-Free) when iterating and modifying a :class:`MultiDict` concurrently in CPython free-threaded mode (3.13t+). Read/Write accesses to the internal ``keys`` buffer are now wrapped in :c:func:`Py_BEGIN_CRITICAL_SECTION`
0 commit comments