You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ismaël Mejía (Jira)" <ji...@apache.org> on 2026/08/07 15:02:00 UTC

[jira] [Created] (AVRO-4328) [python] Bound decode recursion depth

Ismaël Mejía created AVRO-4328:
----------------------------------

             Summary: [python] Bound decode recursion depth
                 Key: AVRO-4328
                 URL: https://issues.apache.org/jira/browse/AVRO-4328
             Project: Apache Avro
          Issue Type: Sub-task
          Components: python
            Reporter: Ismaël Mejía
            Assignee: Ismaël Mejía


Python SDK implementation of AVRO-4302.

Bound the decode nesting depth by counting structural descents into records, arrays, maps and unions in DatumReader.read_data, rejecting input that nests deeper than the limit with a bounded AvroException instead of a RecursionError / interpreter crash. Default 100, configurable via the AVRO_MAX_DECODE_DEPTH environment variable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)