gh-92888: Fix memoryview bad `__index__` use after free (GH-92946)


Co-authored-by: chilaxan <35645806+chilaxan@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
(cherry picked from commit 11190c4ad0d3722b8d263758ac802985131a5462)

Co-authored-by: Ken Jin <kenjin@python.org>
3 files changed