8000 gh-130052: Fix some exceptions on error paths in _testexternalinspection by sergey-miryanov · Pull Request #130053 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-130052: Fix some exceptions on error paths in _testexternalinspection #130053

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
Next Next commit
Set exception in read_memory if not supported on the platform
  • Loading branch information
sergey-miryanov committed Feb 12, 2025
commit 23fdc5fd48105993cb3e8c1ff3a3384f09b008b3
3 changes: 3 additions & 0 deletions Modules/_testexternalinspection.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ read_memory(pid_t pid, uintptr_t remote_address, size_t len, void* dst)
}
total_bytes_read = len;
#else
PyErr_SetString(
PyExc_RuntimeError,
"Memory reading is not supported on this platform");
return -1;
#endif
return total_bytes_read;
Expand Down
Loading
0