8000 gh-92888: Fix memoryview bad `__index__` use after free by Fidget-Spinner · Pull Request #92946 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92888: Fix memoryview bad __index__ use after free #92946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 17, 2022
Prev Previous commit
Next Next commit
Fix whitespace
  • Loading branch information
Fidget-Spinner committed May 21, 2022
commit 2f3c04f8f2f969c92977a00bd8e5dd0a147e32d2
2 changes: 1 addition & 1 deletion Lib/test/test_memoryview.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def test_memoryview_bad_index_uaf(self):
uaf_backing = bytearray(bytearray.__basicsize__)
uaf_view = memoryview(uaf_backing).cast('n') # ssize_t format
memory_backing = None

class weird_index:
def __index__(self):
nonlocal memory_backing
Expand Down
0