cpython
cpython copied to clipboard
gh-142665: fix UAF when accessing a `memoryview` concurrently mutates the underlying buffer
This fix actually changes the existing behavior but messing up with the memoryview while still being accessed is honestly a poor design choice and I don't know when it'd be legitimate to support bad slicing.
- Issue: gh-142665