cpython/Modules/_remote_debugging
Pablo Galindo Salgado 289fd2c97a
gh-148178: Validate remote debug offset tables on load (#148187)
Treat the debug offset tables read from a target process as untrusted input
and validate them before the unwinder uses any reported sizes or offsets.

Add a shared validator in debug_offsets_validation.h and run it once when
_Py_DebugOffsets is loaded and once when AsyncioDebug is loaded. The checks
cover section sizes used for fixed local buffers and every offset that is
later dereferenced against a local buffer or local object view. This keeps
the bounds checks out of the sampling hot path while rejecting malformed
tables up front.
2026-04-13 22:22:23 +00:00
..
clinic gh-138122: Add blocking mode for accurate stack traces in Tachyon (#142998) 2025-12-23 10:49:47 +00:00
_remote_debugging.h gh-148178: Validate remote debug offset tables on load (#148187) 2026-04-13 22:22:23 +00:00
asyncio.c gh-148178: Validate remote debug offset tables on load (#148187) 2026-04-13 22:22:23 +00:00
binary_io.h gh-146308: Fix error handling issues in _remote_debugging module (#146309) 2026-03-22 21:12:02 +00:00
binary_io_reader.c gh-146308: Fix error handling issues in _remote_debugging module (#146309) 2026-03-22 21:12:02 +00:00
binary_io_writer.c gh-140739: Fix missing exception on allocation failure in BinaryWriter (#143204) 2025-12-27 01:39:21 +00:00
code_objects.c gh-146308: Fix error handling issues in _remote_debugging module (#146309) 2026-03-22 21:12:02 +00:00
debug_offsets_validation.h gh-148178: Validate remote debug offset tables on load (#148187) 2026-04-13 22:22:23 +00:00
frame_cache.c gh-138122: Add blocking mode for accurate stack traces in Tachyon (#142998) 2025-12-23 10:49:47 +00:00
frames.c gh-148178: Validate remote debug offset tables on load (#148187) 2026-04-13 22:22:23 +00:00
module.c gh-148178: Validate remote debug offset tables on load (#148187) 2026-04-13 22:22:23 +00:00
object_reading.c gh-146308: Fix error handling issues in _remote_debugging module (#146309) 2026-03-22 21:12:02 +00:00
subprocess.c gh-144648: Improve libproc usage in _remote_debugging (#144649) 2026-02-10 08:29:55 +00:00
threads.c Fix format string mismatch for uint64_t in _remote_debugging/threads.c (#148360) 2026-04-11 09:10:02 +01:00