@@ -237,14 +237,14 @@ validate_fixed_field(
237237 } while (0)
238238
239239/*
240- * Each list below must include every offset that is later dereferenced against
241- * a local buffer or local object view. The validator checks that each field
242- * stays within both the remote table's reported section size and the local
243- * buffer size we use when reading that section. If a new dereferenced field is
244- * added to the offset tables, add it to the matching list here.
245- *
246- * Sections not listed here are present in the offset tables but not used by
247- * the unwinder, so no validation is needed for them.
240+ * Each list below must include every offset that is later dereferenced against
241+ * a local buffer or local object view. The validator checks that each field
242+ * stays within both the remote table's reported section size and the local
243+ * buffer size we use when reading that section. If a new dereferenced field is
244+ * added to the offset tables, add it to the matching list here.
245+ *
246+ * Sections not listed here are present in the offset tables but not used by
247+ * the unwinder, so no validation is needed for them.
248248 */
249249#define PY_REMOTE_DEBUG_RUNTIME_STATE_FIELDS (APPLY , buffer_size ) \
250250 APPLY(runtime_state, interpreters_head, sizeof(uintptr_t), _Alignof(uintptr_t), buffer_size)
@@ -330,11 +330,11 @@ validate_fixed_field(
330330static inline int
331331_PyRemoteDebug_ValidateDebugOffsetsLayout (struct _Py_DebugOffsets * debug_offsets )
332332{
333- /* Validate every field the unwinder dereferences against a local buffer
334- * or local object view. Fields used only for remote address arithmetic
335- * (e.g. runtime_state.interpreters_head) are also checked as a sanity
336- * bound on the offset value. */
337- PY_REMOTE_DEBUG_VALIDATE_SECTION (runtime_state );
333+ /* Validate every field the unwinder dereferences against a local buffer
334+ * or local object view. Fields used only for remote address arithmetic
335+ * (e.g. runtime_state.interpreters_head) are also checked as a sanity
336+ * bound on the offset value. */
337+ PY_REMOTE_DEBUG_VALIDATE_SECTION (runtime_state );
338338 PY_REMOTE_DEBUG_RUNTIME_STATE_FIELDS (
339339 PY_REMOTE_DEBUG_VALIDATE_FIELD ,
340340 sizeof (_PyRuntimeState ));
0 commit comments