Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d845c3e
AVRO-4296: [python] Validate available bytes before allocating for le…
iemejia Jul 11, 2026
957d180
AVRO-4296: [python] Avoid self-import of io; compare via division
iemejia Jul 11, 2026
f415f1f
AVRO-4296: [python] Make bytes_remaining resilient; compute collectio…
iemejia Jul 11, 2026
83b416a
AVRO-4296: [python] Drop unreachable isinstance guard in bytes_remaining
iemejia Jul 11, 2026
b891ac3
AVRO-4296: [python] Restore reader position in a finally block
iemejia Jul 11, 2026
1020612
AVRO-4296: [python] Catch AttributeError in the restore finally; drop…
iemejia Jul 12, 2026
b10b4c2
AVRO-4296: [python] Cap zero-byte collection element allocation
iemejia Jul 12, 2026
f8f220c
AVRO-4296: [python] Annotate collection accumulators for mypy
iemejia Jul 12, 2026
7dbcc7c
AVRO-4296: [python] Test INT64_MIN block count is bounded
iemejia Jul 12, 2026
babb050
AVRO-4296: [python] Bound negative-count skip blocks; make env test h…
iemejia Jul 12, 2026
483ed68
AVRO-4296: [python] Reject negative union and enum indices
iemejia Jul 12, 2026
f545296
AVRO-4296: [python] Reject overlong varints in read_long
iemejia Jul 12, 2026
d1a65c2
AVRO-4296: [python] Fall back to None on TypeError in bytes_remaining
iemejia Jul 12, 2026
c711ef1
AVRO-4296: [python] Count decoded map pairs cumulatively, not unique …
iemejia Jul 12, 2026
8279901
AVRO-4296: [python] Fix structural cap off-by-one to match Integer.MA…
iemejia Jul 13, 2026
051be17
AVRO-4296: [python] Reject 10-byte varints that overflow the 64-bit r…
iemejia Jul 13, 2026
e4727f1
AVRO-4296: [python] Validate sized-block byte-size before skipping
iemejia Jul 13, 2026
36dc0ef
AVRO-4296: [python] Compute union minimum on-wire size precisely
iemejia Jul 13, 2026
3f2e721
AVRO-4296: [python] Clamp bytes_remaining to non-negative
iemejia Jul 13, 2026
0a3dcf0
AVRO-4296: [python] Check sized skip block can hold the declared elem…
iemejia Jul 13, 2026
09dbd4f
AVRO-4296: [python] Bound skip_long to 10 bytes
iemejia Jul 13, 2026
d1c6243
AVRO-4296: [python] Enforce 10th-byte varint validity in skip_long
iemejia Jul 13, 2026
67eb0af
AVRO-4296: [python] Apply ruff format to _skip_block_bytes error mess…
iemejia Jul 13, 2026
3eb04ed
AVRO-4296: [python] Wrap sized-block skip seek errors as InvalidAvroB…
iemejia Jul 13, 2026
27dafe6
AVRO-4296: [python] Also catch AttributeError/TypeError when skipping…
iemejia Jul 13, 2026
010a389
AVRO-4296: [python] Clarify AvroCollectionSizeException docstring cov…
iemejia Jul 13, 2026
152b60b
AVRO-4296: [python] Clarify AVRO_MAX_COLLECTION_ITEMS caps both limits
iemejia Jul 13, 2026
a1920ee
AVRO-4296: [python] Treat recursive records as >=1 byte, not zero-byt…
iemejia Jul 13, 2026
25eb3ab
AVRO-4296: [python] Require empty sized block for zero-byte element t…
iemejia Jul 13, 2026
597164a
AVRO-4296: [python] Validate length before skipping bytes/string and …
iemejia Jul 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lang/py/avro/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ class InvalidAvroBinaryEncoding(AvroException):
"""For invalid numbers of bytes read."""


class AvroCollectionSizeException(AvroException):
"""Raised when a decoded array or map would exceed a collection size limit.

This covers both the zero-byte-element cap (the cumulative number of
zero-byte elements such as ``null``) and the structural cap on the total
number of elements in any collection.
"""


class SchemaParseException(AvroException):
"""Raised when a schema failed to parse."""

Expand Down
Loading
Loading